Skip to content

Commit

Permalink
[11152] Clarify check code for SPELL_ATTR_EX5_USABLE_WHILE_STUNNED ca…
Browse files Browse the repository at this point in the history
…st allowed
  • Loading branch information
VladimirMangos committed Feb 12, 2011
1 parent 135bfb9 commit 30ea157
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/game/Spell.cpp
Expand Up @@ -5618,7 +5618,7 @@ SpellCastResult Spell::CheckCasterAuras() const
uint32 unitflag = m_caster->GetUInt32Value(UNIT_FIELD_FLAGS); // Get unit state
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)
{
bool is_stun_mechanic = true;
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11151"
#define REVISION_NR "11152"
#endif // __REVISION_NR_H__

0 comments on commit 30ea157

Please sign in to comment.