Skip to content

Commit

Permalink
Fix damage calculation for skills with fixdamage
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaioru committed Oct 14, 2023
1 parent b7996eb commit f9c464c
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@ IAttackMobEntry attackMob
result[i] = new Damage(0);
continue;
}

if (skillLevel?.FixDamage > 0)
{
result[i] = new Damage(skillLevel.FixDamage);
continue;
}

if (attack.SkillID is
Skill.HeroRush or
Expand Down Expand Up @@ -523,6 +529,12 @@ Skill.BmageFinishAttack4 or
continue;
}

if (skillLevel?.FixDamage > 0)
{
result[i] = new Damage(skillLevel.FixDamage);
continue;
}

var damage = GetRandomInRange(random.Next(), stats.DamageMin, stats.DamageMax);
var critical = false;

Expand Down

0 comments on commit f9c464c

Please sign in to comment.