Skip to content

Instantly share code, notes, and snippets.

@vermie
Created October 7, 2010 22:15
Show Gist options
  • Save vermie/616013 to your computer and use it in GitHub Desktop.
Save vermie/616013 to your computer and use it in GitHub Desktop.
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