Core/Spells: apply the invisibility screen effect only for generic invisibility effects

This commit is contained in:
Ovahlord
2021-09-27 10:05:25 +02:00
parent 032b1ed2cd
commit cff762da69

View File

@@ -1508,7 +1508,7 @@ void AuraEffect::HandleModInvisibility(AuraApplication const* aurApp, uint8 mode
if (apply)
{
// apply glow vision
if (target->GetTypeId() == TYPEID_PLAYER && type != INVISIBILITY_UNK9)
if (target->GetTypeId() == TYPEID_PLAYER && type == INVISIBILITY_GENERAL)
target->SetByteFlag(PLAYER_FIELD_BYTES2, PLAYER_FIELD_BYTES_2_OFFSET_AURA_VISION, PLAYER_FIELD_BYTE2_INVISIBILITY_GLOW);
target->m_invisibility.AddFlag(type);