Created
October 7, 2010 22:15
-
-
Save vermie/616013 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp | |
index 8281729..da7e3e0 100644 | |
--- a/src/game/Spell.cpp | |
+++ b/src/game/Spell.cpp | |
@@ -4230,7 +4230,10 @@ SpellCastResult Spell::CheckCast(bool strict) | |
// check global cooldown | |
if (strict && !m_IsTriggeredSpell && HasGlobalCooldown()) | |
+ { | |
+ sLog.outDebug("GCD prevented cast of %u", m_spellInfo->Id); | |
return SPELL_FAILED_NOT_READY; | |
+ } | |
// only allow triggered spells if at an ended battleground | |
if (!m_IsTriggeredSpell && m_caster->GetTypeId() == TYPEID_PLAYER) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment