*Fix the bug that counterspell can affect shapeshift

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-25 16:20:21 -05:00
parent 4827f7fd3e
commit 554128861c
+3
View File
@@ -16957,6 +16957,9 @@ void Player::ProhibitSpellScholl(SpellSchoolMask idSchoolMask, uint32 unTimeMs )
if (spellInfo->Attributes & SPELL_ATTR_DISABLED_WHILE_ACTIVE) if (spellInfo->Attributes & SPELL_ATTR_DISABLED_WHILE_ACTIVE)
continue; continue;
if(spellInfo->PreventionType != SPELL_PREVENTION_TYPE_SILENCE)
continue;
if((idSchoolMask & GetSpellSchoolMask(spellInfo)) && GetSpellCooldownDelay(unSpellId) < unTimeMs ) if((idSchoolMask & GetSpellSchoolMask(spellInfo)) && GetSpellCooldownDelay(unSpellId) < unTimeMs )
{ {
data << unSpellId; data << unSpellId;