*Do not check power and stun for triggered spells. This fix the bug that bg mark is not casted on stunned target and that devastate needs extra rage.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-12-30 22:22:56 -06:00
parent 1d800d912c
commit e92364df80
+3 -2
View File
@@ -3638,14 +3638,15 @@ uint8 Spell::CanCast(bool strict)
if(uint8 castResult = CheckRange(strict)) if(uint8 castResult = CheckRange(strict))
return castResult; return castResult;
if(!m_IsTriggeredSpell)
{ {
if(uint8 castResult = CheckPower()) if(uint8 castResult = CheckPower())
return castResult; return castResult;
}
if(!m_triggeredByAuraSpell) // triggered spell not affected by stun/etc //if(!m_triggeredByAuraSpell) // triggered spell not affected by stun/etc
if(uint8 castResult = CheckCasterAuras()) if(uint8 castResult = CheckCasterAuras())
return castResult; return castResult;
}
for (int i = 0; i < 3; i++) for (int i = 0; i < 3; i++)
{ {