*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:
+3
-2
@@ -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++)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user