[Bug Fix] Rune Invis Break (#3893)

Rune doesn't stop invis breaking
This commit is contained in:
Fryguy 2024-01-07 15:57:09 -05:00 committed by GitHub
parent 48c6db3a9c
commit 2df7d19f97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3917,10 +3917,10 @@ void Mob::CommonDamage(Mob* attacker, int64 &damage, const uint16 spell_id, cons
TryTriggerThreshHold(damage, SE_TriggerSpellThreshold, attacker); TryTriggerThreshHold(damage, SE_TriggerSpellThreshold, attacker);
} }
if (IsClient() && CastToClient()->sneaking) { if (IsClient()) {
CastToClient()->sneaking = false; CommonBreakInvisible();
SendAppearancePacket(AppearanceType::Sneak, 0);
} }
if (attacker && attacker->IsClient() && attacker->CastToClient()->sneaking) { if (attacker && attacker->IsClient() && attacker->CastToClient()->sneaking) {
attacker->CastToClient()->sneaking = false; attacker->CastToClient()->sneaking = false;
attacker->SendAppearancePacket(AppearanceType::Sneak, 0); attacker->SendAppearancePacket(AppearanceType::Sneak, 0);