From 2df7d19f975cb21dd4eb7d6c7d40656cf58ed138 Mon Sep 17 00:00:00 2001 From: Fryguy Date: Sun, 7 Jan 2024 15:57:09 -0500 Subject: [PATCH] [Bug Fix] Rune Invis Break (#3893) Rune doesn't stop invis breaking --- zone/attack.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zone/attack.cpp b/zone/attack.cpp index 090ead500..f16d0f4d2 100644 --- a/zone/attack.cpp +++ b/zone/attack.cpp @@ -3917,10 +3917,10 @@ void Mob::CommonDamage(Mob* attacker, int64 &damage, const uint16 spell_id, cons TryTriggerThreshHold(damage, SE_TriggerSpellThreshold, attacker); } - if (IsClient() && CastToClient()->sneaking) { - CastToClient()->sneaking = false; - SendAppearancePacket(AppearanceType::Sneak, 0); + if (IsClient()) { + CommonBreakInvisible(); } + if (attacker && attacker->IsClient() && attacker->CastToClient()->sneaking) { attacker->CastToClient()->sneaking = false; attacker->SendAppearancePacket(AppearanceType::Sneak, 0);