fix #6 "Beginning to panic tries to path even if incapacitated"

This commit is contained in:
Zsar 2023-04-20 21:35:30 +02:00
parent 211442e7eb
commit da26772efb
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ namespace Privacy_Please
if (witness?.Drafted == true || witness?.mindState?.duty?.def.alwaysShowWeapon == true) return;
// Panic reaction
if (reactionOfWitness == ReactionToSexAct.Panic)
if (reactionOfWitness == ReactionToSexAct.Panic && !witness.Downed)
{
Job job = JobMaker.MakeJob(JobDefOf.FleeAndCower, CellFinderLoose.GetFleeDest(witness, new List<Thing>() { pawn }, 24f), pawn);