Skip to content

Commit

Permalink
fix(effects): fix immunity checking
Browse files Browse the repository at this point in the history
  • Loading branch information
rudnovd committed Aug 7, 2022
1 parent 6eac211 commit 830a58f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const Effects = {
if (target.effects.find((effect) => effect.id === Spells.AntiMagic)) return false

// if target has immunity to effect
if (target.special?.immunity?.find((spell) => spell.id === effect.id)) return false
if (target.special?.immunity?.find((spell) => spell === effect.id)) return false

const undeadImmunitySpells = [
Spells.Bless,
Expand Down

0 comments on commit 830a58f

Please sign in to comment.