From 554128861c006bef5371932baf5698c234ae1219 Mon Sep 17 00:00:00 2001 From: megamage Date: Sat, 25 Apr 2009 16:20:21 -0500 Subject: [PATCH] *Fix the bug that counterspell can affect shapeshift --HG-- branch : trunk --- src/game/Player.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 7837a0186e..ef047c7dfc 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;