aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellEffects.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-07-27 17:32:56 +0200
committerQAston <none@none>2009-07-27 17:32:56 +0200
commite8f8b66636cbcd5d9995ce8b3bb64afb5a835851 (patch)
tree1409cf41ef5e567aa1b41d5623054d4f4a087f27 /src/game/SpellEffects.cpp
parente3ef5da919bc88e851cb7fc878f118f127270954 (diff)
*Implement immunity removal part for Shattering Throw ability - by thenecromancer.
--HG-- branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r--src/game/SpellEffects.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index f36d7048efe..25ea3015f41 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -5480,6 +5480,19 @@ void Spell::EffectScriptEffect(uint32 effIndex)
}
break;
}
+ case SPELLFAMILY_WARRIOR:
+ {
+ // Shattering Throw
+ if ( m_spellInfo->SpellFamilyFlags[1] & 0x1 )
+ {
+ if(!unitTarget)
+ return;
+ // remove shields, will still display immune to damage part
+ unitTarget->RemoveAurasWithMechanic(1<<MECHANIC_IMMUNE_SHIELD);
+ return;
+ }
+ break;
+ }
}
// normal DB scripted effect