mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
Merge commit 'origin/master' into 310
Conflicts: src/game/SpellAuras.cpp src/game/SpellEffects.cpp
This commit is contained in:
commit
afd82229d7
34 changed files with 357 additions and 344 deletions
|
|
@ -1577,6 +1577,20 @@ bool Creature::IsImmunedToSpellEffect(SpellEntry const* spellInfo, uint32 index)
|
|||
if (GetCreatureInfo()->MechanicImmuneMask & (1 << (spellInfo->EffectMechanic[index] - 1)))
|
||||
return true;
|
||||
|
||||
// Taunt immunity special flag check
|
||||
if (GetCreatureInfo()->flags_extra & CREATURE_FLAG_EXTRA_NOT_TAUNTABLE)
|
||||
{
|
||||
// Taunt aura apply check
|
||||
if (spellInfo->Effect[index] == SPELL_EFFECT_APPLY_AURA)
|
||||
{
|
||||
if (spellInfo->EffectApplyAuraName[index] == SPELL_AURA_MOD_TAUNT)
|
||||
return true;
|
||||
}
|
||||
// Spell effect taunt check
|
||||
else if (spellInfo->Effect[index] == SPELL_EFFECT_ATTACK_ME)
|
||||
return true;
|
||||
}
|
||||
|
||||
return Unit::IsImmunedToSpellEffect(spellInfo, index);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue