[Bug] Escape should put player into SOS if owned. (#4388)

When you escape if you have the Shroud of Stealth bonus (AA, Spell, item) you will go straight into SOS mode.
This commit is contained in:
Fryguy 2024-06-07 13:57:54 -04:00 committed by GitHub
parent b1aa087b9f
commit 1aa8758b0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2329,6 +2329,12 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
if (IsClient()) { if (IsClient()) {
int pre_aggro_count = CastToClient()->GetAggroCount(); int pre_aggro_count = CastToClient()->GetAggroCount();
entity_list.RemoveFromTargetsFadingMemories(this, true, max_level); entity_list.RemoveFromTargetsFadingMemories(this, true, max_level);
if (spellbonuses.ShroudofStealth || aabonuses.ShroudofStealth || itembonuses.ShroudofStealth) {
improved_hidden = true;
hidden = true;
}
SetInvisible(Invisibility::Invisible); SetInvisible(Invisibility::Invisible);
int post_aggro_count = CastToClient()->GetAggroCount(); int post_aggro_count = CastToClient()->GetAggroCount();
if (RuleB(Spells, UseFadingMemoriesMaxLevel)) { if (RuleB(Spells, UseFadingMemoriesMaxLevel)) {