diff --git a/1.2/Assemblies/WhatTheHack.dll b/1.2/Assemblies/WhatTheHack.dll index 3e8c4a77..78cb4a65 100644 Binary files a/1.2/Assemblies/WhatTheHack.dll and b/1.2/Assemblies/WhatTheHack.dll differ diff --git a/1.2/Source/WhatTheHack/Jobs/JobDriver_MechanoidAbility.cs b/1.2/Source/WhatTheHack/Jobs/JobDriver_MechanoidAbility.cs index 18e10971..cdbe8d12 100644 --- a/1.2/Source/WhatTheHack/Jobs/JobDriver_MechanoidAbility.cs +++ b/1.2/Source/WhatTheHack/Jobs/JobDriver_MechanoidAbility.cs @@ -68,9 +68,9 @@ protected virtual void PerformAbility(DefModExtension_Ability modExt) { pawn.health.AddHediff(modExt.hediffSelf); } - if (modExt.hediffTarget != null) + if (modExt.hediffTarget != null && TargetPawn != null) { - pawn.health.AddHediff(modExt.hediffTarget); + TargetPawn.health.AddHediff(modExt.hediffTarget); } } protected virtual void FailAbility(DefModExtension_Ability modExt)