From 0a991df443f0dcd14aca71ab77fc6e5cf3bd1922 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Thu, 30 Sep 2021 11:23:26 +0200 Subject: [PATCH] Core/Auras: cff762da699c61c4ca99dca6c1677eaeaa6fde5e followup thanks to @meji46 for the headsup --- src/server/game/Spells/Auras/SpellAuraEffects.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp index 40dc5b2920..70750e3718 100644 --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp @@ -1538,7 +1538,14 @@ void AuraEffect::HandleModInvisibility(AuraApplication const* aurApp, uint8 mode } } if (!found) + { + // if not have invisibility auras of type INVISIBILITY_GENERAL + // remove glow vision + if (target->GetTypeId() == TYPEID_PLAYER && type == INVISIBILITY_GENERAL) + target->RemoveByteFlag(PLAYER_FIELD_BYTES2, PLAYER_FIELD_BYTES_2_OFFSET_AURA_VISION, PLAYER_FIELD_BYTE2_INVISIBILITY_GLOW); + target->m_invisibility.DelFlag(type); + } } target->m_invisibility.AddValue(type, -GetAmount());