aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellAuras.cpp
diff options
context:
space:
mode:
authorXanadu <none@none>2010-03-26 22:21:33 +0100
committerXanadu <none@none>2010-03-26 22:21:33 +0100
commit180651d95ef37acd043872e089b1b2fec05ac579 (patch)
treebc2220fe2bcce3f7c450d6a759c7dbd422a10d86 /src/game/SpellAuras.cpp
parentec72846da42e47f4dfdd593137291ea5f9755de9 (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.cpp12
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;
}
}