Skip to content

Commit

Permalink
fixed repair arm targetting self instead of other mech
Browse files Browse the repository at this point in the history
  • Loading branch information
rheirman committed Feb 26, 2021
1 parent 8800f18 commit 76ee0d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified 1.2/Assemblies/WhatTheHack.dll
Binary file not shown.
4 changes: 2 additions & 2 deletions 1.2/Source/WhatTheHack/Jobs/JobDriver_MechanoidAbility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 76ee0d4

Please sign in to comment.