diff options
author | Xanadu <none@none> | 2010-03-26 22:21:33 +0100 |
---|---|---|
committer | Xanadu <none@none> | 2010-03-26 22:21:33 +0100 |
commit | 180651d95ef37acd043872e089b1b2fec05ac579 (patch) | |
tree | bc2220fe2bcce3f7c450d6a759c7dbd422a10d86 /src/game/SpellAuras.cpp | |
parent | ec72846da42e47f4dfdd593137291ea5f9755de9 (diff) |
A visually better way to handle Avenger Wrath blocking of immunity shields.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellAuras.cpp')
-rw-r--r-- | src/game/SpellAuras.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 1732656b8b1..3a91bcffe58 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -1043,6 +1043,11 @@ void Aura::HandleAuraSpecificMods(AuraApplication const * aurApp, Unit * caster, } switch(GetSpellProto()->SpellFamilyName) { + case SPELLFAMILY_GENERIC: + // Remove the immunity shield marker on Avenging Wrath removal if Forbearance is not present + if (GetId() == 61987 && target->HasAura(61988) && !target->HasAura(25771)) + target->RemoveAura(61988); + break; case SPELLFAMILY_MAGE: switch(GetId()) { @@ -1217,6 +1222,11 @@ void Aura::HandleAuraSpecificMods(AuraApplication const * aurApp, Unit * caster, break; } break; + case SPELLFAMILY_PALADIN: + // Remove the immunity shield marker on Forbearance removal if AW marker is not present + if (GetId() == 25771 && target->HasAura(61988) && !target->HasAura(61987)) + target->RemoveAura(61988); + break; case SPELLFAMILY_DEATHKNIGHT: // Blood of the North // Reaping @@ -1241,7 +1251,7 @@ void Aura::HandleAuraSpecificMods(AuraApplication const * aurApp, Unit * caster, target->CastSpell(target, GetEffect(0)->GetAmount(), true, NULL, GetEffect(0)); break; } - break; + break; } } |