[11152] Clarify check code for SPELL_ATTR_EX5_USABLE_WHILE_STUNNED cast allowed

This commit is contained in:
VladimirMangos 2011-02-12 21:22:06 +03:00
parent 4709c7ecb3
commit 241726bf81
2 changed files with 2 additions and 2 deletions

View file

@ -5618,7 +5618,7 @@ SpellCastResult Spell::CheckCasterAuras() const
uint32 unitflag = m_caster->GetUInt32Value(UNIT_FIELD_FLAGS); // Get unit state uint32 unitflag = m_caster->GetUInt32Value(UNIT_FIELD_FLAGS); // Get unit state
if (unitflag & UNIT_FLAG_STUNNED) if (unitflag & UNIT_FLAG_STUNNED)
{ {
// spell is usable while stunned, check if aura has mechanic stun // spell is usable while stunned, check if caster has only mechanic stun auras, another stun types must prevent cast spell
if (m_spellInfo->AttributesEx5 & SPELL_ATTR_EX5_USABLE_WHILE_STUNNED) if (m_spellInfo->AttributesEx5 & SPELL_ATTR_EX5_USABLE_WHILE_STUNNED)
{ {
bool is_stun_mechanic = true; bool is_stun_mechanic = true;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "11151" #define REVISION_NR "11152"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__