aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-25 16:20:21 -0500
committermegamage <none@none>2009-04-25 16:20:21 -0500
commit554128861c006bef5371932baf5698c234ae1219 (patch)
tree3ca033a8877de986945811ad8b7beb3dfe80f491 /src
parent4827f7fd3e1827f2d1cccbd34e3499d04ad5cc68 (diff)
*Fix the bug that counterspell can affect shapeshift
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Player.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 7837a0186eb..ef047c7dfc2 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -16957,6 +16957,9 @@ void Player::ProhibitSpellScholl(SpellSchoolMask idSchoolMask, uint32 unTimeMs )
if (spellInfo->Attributes & SPELL_ATTR_DISABLED_WHILE_ACTIVE)
continue;
+ if(spellInfo->PreventionType != SPELL_PREVENTION_TYPE_SILENCE)
+ continue;
+
if((idSchoolMask & GetSpellSchoolMask(spellInfo)) && GetSpellCooldownDelay(unSpellId) < unTimeMs )
{
data << unSpellId;