Backported from TC2: allow Water Elemental to cast Freeze while casting Water Bolt
--HG-- branch : trunk
This commit is contained in:
1 parent
85b68d886a
commit
65598fe233
2 files changed
+5
-2
No files matched your search
+1
-1
@@ -4269,7 +4269,7 @@ int16 Spell::PetCanCast(Unit* target)
|
||||
if(!m_caster->isAlive())
|
||||
return SPELL_FAILED_CASTER_DEAD;
|
||||
|
||||
if(m_caster->IsNonMeleeSpellCasted(false)) //prevent spellcast interruption by another spellcast
|
||||
if(m_caster->IsNonMeleeSpellCasted(false) && !m_IsTriggeredSpell) //prevent spellcast interruption by another spellcast
|
||||
return SPELL_FAILED_SPELL_IN_PROGRESS;
|
||||
if(m_caster->isInCombat() && IsNonCombatSpell(m_spellInfo))
|
||||
return SPELL_FAILED_AFFECTING_COMBAT;
|
||||
|
||||
Reference in new issue
Block a user