Skip to content

Commit

Permalink
fix(effects): fix Bless formula
Browse files Browse the repository at this point in the history
  • Loading branch information
rudnovd committed Apr 1, 2022
1 parent cb2fa4f commit e9618cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ export const Effects = {

// if battle side has hero with Bless specialty then add damageBonus value
if (initiator.hero && initiator.hero.specialtySpell === Spells.Bless) {
damageBonus += (0.03 * initiator.hero.level) / initiator.hero.level
damageBonus += (0.03 * initiator.hero.level) / target.level
}

if (!initiator.hero || initiator.hero.skills.water <= 1) {
if (!initiator.hero || !initiator.hero.skills.water || initiator.hero.skills.water <= 1) {
minDamage = maxDamage
} else if (initiator.hero.skills.water >= 2) {
maxDamage++
Expand Down

0 comments on commit e9618cb

Please sign in to comment.