Fix incorrect logic in Unit::IsNonMeleeSpellCasted
Author: kerhong
This commit is contained in:
1 parent
24b5ec1e39
commit
341d22ff91
1 file changed
+2
-2
@@ -3043,8 +3043,8 @@ bool Unit::IsNonMeleeSpellCasted(bool withDelayed, bool skipChanneled, bool skip
|
||||
// We don't do loop here to explicitly show that melee spell is excluded.
|
||||
// Maybe later some special spells will be excluded too.
|
||||
|
||||
// if checkInstant then instant spells shouldn't count as being casted
|
||||
if (!skipInstant && m_currentSpells[CURRENT_GENERIC_SPELL] && !m_currentSpells[CURRENT_GENERIC_SPELL]->CalcCastTime())
|
||||
// if skipInstant then instant spells shouldn't count as being casted
|
||||
if (skipInstant && m_currentSpells[CURRENT_GENERIC_SPELL] && !m_currentSpells[CURRENT_GENERIC_SPELL]->CalcCastTime())
|
||||
return false;
|
||||
|
||||
// generic spells are casted when they are not finished and not delayed
|
||||
|
||||
Reference in new issue
Block a user