Fix combatai_notify_onlookers

This commit is contained in:
Alexander Batalov 2023-01-16 16:55:31 +03:00
parent 6cac53d20b
commit ed7176b796

View File

@ -3593,7 +3593,7 @@ void _combatai_notify_onlookers(Object* a1)
if (isWithinPerception(obj, a1)) {
obj->data.critter.combat.maneuver |= CRITTER_MANEUVER_ENGAGING;
if ((a1->data.critter.combat.results & DAM_DEAD) != 0) {
if (!isWithinPerception(obj, obj->data.critter.combat.whoHitMe)) {
if (!isWithinPerception(obj, a1->data.critter.combat.whoHitMe)) {
debugPrint("\nSomebody Died and I don't know why! Run!!!");
aiInfoSetFriendlyDead(obj, a1);
}