[8940] Make players and totems always immune to taunt.

This commit is contained in:
VladimirMangos 2009-12-07 17:25:15 +03:00
parent 17e9cafecf
commit 1f7163f449
4 changed files with 29 additions and 1 deletions

View file

@ -21241,3 +21241,22 @@ void Player::SendDuelCountdown(uint32 counter)
data << uint32(counter); // seconds
GetSession()->SendPacket(&data);
}
bool Player::IsImmunedToSpellEffect(SpellEntry const* spellInfo, uint32 index) const
{
switch(spellInfo->Effect[index])
{
case SPELL_EFFECT_ATTACK_ME:
return true;
default:
break;
}
switch(spellInfo->EffectApplyAuraName[index])
{
case SPELL_AURA_MOD_TAUNT:
return true;
default:
break;
}
return Unit::IsImmunedToSpellEffect(spellInfo, index);
}