@@ -1818,12 +1818,16 @@ void Player::RemoveFromWorld()
|
||||
|
||||
bool Player::IsImmunedToSpellEffect(SpellInfo const* spellInfo, uint32 index) const
|
||||
{
|
||||
SpellEffectInfo const* effect = spellInfo->GetEffect(GetMap()->GetDifficultyID(), index);
|
||||
if (!effect || !effect->IsEffect())
|
||||
return false;
|
||||
|
||||
// players are immune to taunt (the aura and the spell effect).
|
||||
if (spellInfo->GetEffect(index)->IsAura(SPELL_AURA_MOD_TAUNT))
|
||||
return true;
|
||||
if (spellInfo->GetEffect(index)->IsEffect(SPELL_EFFECT_ATTACK_ME))
|
||||
return true;
|
||||
|
||||
|
||||
return Unit::IsImmunedToSpellEffect(spellInfo, index);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user