From feb38215653f0c6e7890f314559044b9f5b895ff Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Tue, 13 Dec 2022 23:59:45 +0300 Subject: [PATCH] Fix multiple knockout effects --- src/combat.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/combat.cc b/src/combat.cc index 2ff8219..2b624cc 100644 --- a/src/combat.cc +++ b/src/combat.cc @@ -4780,6 +4780,9 @@ static void _set_new_results(Object* critter, int flags) if ((flags & DAM_DEAD) != 0) { queueRemoveEvents(critter); } else if ((flags & DAM_KNOCKED_OUT) != 0) { + // SFALL: Fix multiple knockout events. + queueRemoveEventsByType(critter, EVENT_TYPE_KNOCKOUT); + int endurance = critterGetStat(critter, STAT_ENDURANCE); queueAddEvent(10 * (35 - 3 * endurance), critter, NULL, EVENT_TYPE_KNOCKOUT); }