Skip to content

Commit

Permalink
Creature school immunity should not apply to positive spells.
Browse files Browse the repository at this point in the history
Gelkis Rumbler was seen being healed by Healing Wave which is a Nature spell in sniff.
  • Loading branch information
ratkosrb committed Dec 16, 2023
1 parent 363ef19 commit d4f951e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Objects/Creature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2230,7 +2230,7 @@ bool Creature::IsImmuneToSpell(SpellEntry const* spellInfo, bool castOnSelf) con
if (spellInfo->Mechanic && GetCreatureInfo()->mechanic_immune_mask & (1 << (spellInfo->Mechanic - 1)))
return true;

if (GetCreatureInfo()->school_immune_mask & (1 << spellInfo->School))
if ((GetCreatureInfo()->school_immune_mask & (1 << spellInfo->School)) && !spellInfo->IsPositiveSpell())
return true;
}

Expand Down

0 comments on commit d4f951e

Please sign in to comment.