aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMeji <alvaromegias_46@hotmail.com>2022-04-17 22:09:58 +0200
committerGitHub <noreply@github.com>2022-04-17 22:09:58 +0200
commit230f40f359c80b102f344ed55adc12f246a97051 (patch)
treecb99ea9674bd897de06b1ceb87d24e0a566f2b19 /src
parentb73d031fe0d217b5189847ed38efc938c69b3c88 (diff)
Core/Auras: INVISIBILITY_UNK10 also applies the flag PLAYER_FIELD_BYTE2_INVISIBILITY_GLOW (#27788)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/Auras/SpellAuraEffects.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
index 6e4ed60221b..0d7f351389a 100644
--- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp
+++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
@@ -1374,7 +1374,7 @@ void AuraEffect::HandleModInvisibility(AuraApplication const* aurApp, uint8 mode
if (apply)
{
// apply glow vision
- if (target->GetTypeId() == TYPEID_PLAYER && type == INVISIBILITY_GENERAL)
+ if (target->GetTypeId() == TYPEID_PLAYER && (type == INVISIBILITY_GENERAL || type == INVISIBILITY_UNK10))
target->SetByteFlag(PLAYER_FIELD_BYTES2, PLAYER_FIELD_BYTES_2_OFFSET_AURA_VISION, PLAYER_FIELD_BYTE2_INVISIBILITY_GLOW);
target->m_invisibility.AddFlag(type);
@@ -1405,12 +1405,12 @@ void AuraEffect::HandleModInvisibility(AuraApplication const* aurApp, uint8 mode
}
if (!found)
{
- // if not have invisibility auras of type INVISIBILITY_GENERAL
+ target->m_invisibility.DelFlag(type);
+
+ // if not have invisibility auras of type INVISIBILITY_GENERAL or INVISIBILITY_UNK10
// remove glow vision
- if (target->GetTypeId() == TYPEID_PLAYER && type == INVISIBILITY_GENERAL)
+ if (target->GetTypeId() == TYPEID_PLAYER && !target->m_invisibility.HasFlag(INVISIBILITY_GENERAL) && !target->m_invisibility.HasFlag(INVISIBILITY_UNK10))
target->RemoveByteFlag(PLAYER_FIELD_BYTES2, PLAYER_FIELD_BYTES_2_OFFSET_AURA_VISION, PLAYER_FIELD_BYTE2_INVISIBILITY_GLOW);
-
- target->m_invisibility.DelFlag(type);
}
}