mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[11152] Clarify check code for SPELL_ATTR_EX5_USABLE_WHILE_STUNNED cast allowed
This commit is contained in:
parent
4709c7ecb3
commit
241726bf81
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue