mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 18:40:28 +00:00
fix(Core/Spell): Implement SPELL_ATTR0_CU_DONT_BREAK_STEALTH (#3056)
* Implement the ability to add SPELL_ATTR0_CU_DONT_BREAK_STEALTH on spells from DB Co-authored-by: Shadowball Gengar <shadowballgengar60@gmail>
This commit is contained in:
@@ -4591,7 +4591,7 @@ void Unit::RemoveAurasByShapeShift()
|
||||
{
|
||||
Aura const* aura = iter->second->GetBase();
|
||||
if ((aura->GetSpellInfo()->GetAllEffectsMechanicMask() & mechanic_mask) &&
|
||||
(!aura->GetSpellInfo()->HasAttribute(SPELL_ATTR0_CU_AURA_CC) || (aura->GetSpellInfo()->SpellFamilyName == SPELLFAMILY_WARRIOR && (aura->GetSpellInfo()->SpellFamilyFlags[1] & 0x20))))
|
||||
(!aura->GetSpellInfo()->HasAttribute(SPELL_ATTR0_CU_DONT_BREAK_STEALTH) || (aura->GetSpellInfo()->SpellFamilyName == SPELLFAMILY_WARRIOR && (aura->GetSpellInfo()->SpellFamilyFlags[1] & 0x20))))
|
||||
{
|
||||
RemoveAura(iter);
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user