Skip to content

Commit

Permalink
jecstools ability compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
rheirman committed Feb 17, 2019
1 parent c005e46 commit 4d5ed52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Binary file modified Assemblies/DualWield.dll
Binary file not shown.
5 changes: 5 additions & 0 deletions Source/DualWield/Extensions/Ext_Pawn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,13 @@ public static void TryStartOffHandAttack(this Pawn __instance, LocalTargetInfo t
{
return;
}
if (__instance.jobs.curDriver.GetType().Name.Contains("Ability"))//Compatbility for Jecstools' abilities.
{
return;
}
bool allowManualCastWeapons = !__instance.IsColonist;
Verb verb = __instance.TryGetOffhandAttackVerb(targ.Thing, true);

if (verb != null)
{
bool success = verb.OffhandTryStartCastOn(targ);
Expand Down

0 comments on commit 4d5ed52

Please sign in to comment.