Fix multiple knockout effects

This commit is contained in:
Alexander Batalov 2022-12-13 23:59:45 +03:00
parent 54eaff26ea
commit feb3821565
1 changed files with 3 additions and 0 deletions

View File

@ -4780,6 +4780,9 @@ static void _set_new_results(Object* critter, int flags)
if ((flags & DAM_DEAD) != 0) { if ((flags & DAM_DEAD) != 0) {
queueRemoveEvents(critter); queueRemoveEvents(critter);
} else if ((flags & DAM_KNOCKED_OUT) != 0) { } else if ((flags & DAM_KNOCKED_OUT) != 0) {
// SFALL: Fix multiple knockout events.
queueRemoveEventsByType(critter, EVENT_TYPE_KNOCKOUT);
int endurance = critterGetStat(critter, STAT_ENDURANCE); int endurance = critterGetStat(critter, STAT_ENDURANCE);
queueAddEvent(10 * (35 - 3 * endurance), critter, NULL, EVENT_TYPE_KNOCKOUT); queueAddEvent(10 * (35 - 3 * endurance), critter, NULL, EVENT_TYPE_KNOCKOUT);
} }