diff options
author | Shauren <shauren.trinity@gmail.com> | 2016-10-19 00:25:07 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2016-10-19 00:25:07 +0200 |
commit | 142bf9d5f6f75b98d1c8075e4c5580052614571b (patch) | |
tree | 2d98b3f18f9849469a1eac248d992c055c4d0176 | |
parent | c7f73f6876f92bd40d694eed9829347792bc159e (diff) |
Core/Spells: Fixed a crash happening when casting a spell with effects that only exist on some difficulties but not on others (for example, effect 2 of 98175)
-rw-r--r-- | src/server/game/Entities/Player/Player.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index 469bc289345..e2b38a50603 100644 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -1781,9 +1781,9 @@ bool Player::IsImmunedToSpellEffect(SpellInfo const* spellInfo, uint32 index) co return false; // players are immune to taunt (the aura and the spell effect). - if (spellInfo->GetEffect(index)->IsAura(SPELL_AURA_MOD_TAUNT)) + if (effect->IsAura(SPELL_AURA_MOD_TAUNT)) return true; - if (spellInfo->GetEffect(index)->IsEffect(SPELL_EFFECT_ATTACK_ME)) + if (effect->IsEffect(SPELL_EFFECT_ATTACK_ME)) return true; return Unit::IsImmunedToSpellEffect(spellInfo, index); |