Core/Spells: Implemented SPELL_ATTR7_IS_CHEAT_SPELL serverside checks and allow GMs to cast these spells

This commit is contained in:
Shauren committed 2011-06-11 13:02:54 +02:00
1 parent 677cbbb93a
commit 9b79df7074
4 files changed
+15 -9

No files matched your search

+3
View File
@@ -4606,6 +4606,9 @@ SpellCastResult Spell::CheckCast(bool strict)
}
}
if (m_spellInfo->AttributesEx7 & SPELL_ATTR7_DISABLED_CLIENT_SIDE && !m_caster->HasFlag(UNIT_FIELD_FLAGS_2, UNIT_FLAG2_ALLOW_CHEAT_SPELLS))
return SPELL_FAILED_SPELL_UNAVAILABLE;
// Check global cooldown
if (strict && !m_IsTriggeredSpell && HasGlobalCooldown())
return SPELL_FAILED_NOT_READY;