aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none.none>2011-10-07 18:16:32 -0400
committermegamage <none@none.none>2011-10-07 18:16:32 -0400
commit341d22ff9184c1988c87a2badc28f15126da414e (patch)
treee0ab0cd01990a8c05ec82df11d88ee6a3497fb8a /src
parent24b5ec1e397e8cd23264bcd45cf848c0f5ee9814 (diff)
Fix incorrect logic in Unit::IsNonMeleeSpellCasted
Author: kerhong
Diffstat (limited to 'src')
-rwxr-xr-xsrc/server/game/Entities/Unit/Unit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
index 3d51cbe5255..a30b91dcfa0 100755
--- a/src/server/game/Entities/Unit/Unit.cpp
+++ b/src/server/game/Entities/Unit/Unit.cpp
@@ -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