Skip to content

Commit

Permalink
fix(Battle): fix positive effects list
Browse files Browse the repository at this point in the history
  • Loading branch information
rudnovd committed Apr 2, 2022
1 parent cf89a2b commit 72206e9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/models/Battle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ export class Battle {
id: Spells.Bloodlust,
effectFunction: Effects.bloodlust,
},
{
id: Spells.Frenzy,
effectFunction: Effects.frenzy,
},
{
id: Spells.Prayer,
effectFunction: Effects.prayer,
Expand All @@ -180,7 +184,7 @@ export class Battle {
}
})

if (target.effects.find((effect) => effect.id === Spells.Frenzy)) {
if (target.effects.find((effect) => effect.id === Spells.Slayer)) {
target = Effects.slayer(attacker, this.defender, target)
}

Expand Down

0 comments on commit 72206e9

Please sign in to comment.