From 80f56f68c49bce5ae81d25a0bb2940224c0bd9b2 Mon Sep 17 00:00:00 2001 From: Emagi Date: Fri, 30 May 2025 10:27:34 -0400 Subject: [PATCH] Make sure a spawn that is available gets locked into the encounter if the encounter size is 0. --- source/WorldServer/Combat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/WorldServer/Combat.cpp b/source/WorldServer/Combat.cpp index f88933d..0380e93 100644 --- a/source/WorldServer/Combat.cpp +++ b/source/WorldServer/Combat.cpp @@ -1342,7 +1342,7 @@ void Entity::AddHate(Entity* attacker, sint32 hate) { ((NPC*)this)->Brain()->AddHate(attacker, hate); int8 loot_state = ((NPC*)this)->GetLockedNoLoot(); // if encounter size is 0 then add the attacker to the encounter - if ((loot_state != ENCOUNTER_STATE_AVAILABLE && loot_state != ENCOUNTER_STATE_BROKEN && ((NPC*)this)->Brain()->GetEncounterSize() == 0)) { + if ((loot_state != ENCOUNTER_STATE_BROKEN && ((NPC*)this)->Brain()->GetEncounterSize() == 0)) { ((NPC*)this)->Brain()->AddToEncounter(attacker); AddTargetToEncounter(attacker); }