Skip to content

Commit

Permalink
Merge pull request #47 from sakan811/dev
Browse files Browse the repository at this point in the history
Refactor TheHerta skill mechanics to introduce variable hit counts
  • Loading branch information
sakan811 authored Jan 18, 2025
2 parents 258b7fc + 111cf21 commit 0db5e62
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hsr_simulation/erudition/the_herta.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,9 @@ def _use_normal_skill(self) -> None:
primary_target = self._get_priority_target()
hit_enemies = set()

# Skill hits 2 times
for _ in range(2):
num_hits = random.randint(1, 2)
# Skill may hits 2 times at most
for _ in range(num_hits):
# Primary target hit
total_dmg += self._calculate_damage(
skill_multiplier=self.SKILL_MULTIPLIER,
Expand Down

0 comments on commit 0db5e62

Please sign in to comment.