Skip to content

Commit

Permalink
Further fix for spot-casting of abilities
Browse files Browse the repository at this point in the history
  • Loading branch information
XenEmpireAdmin committed Sep 16, 2018
1 parent 800d296 commit b55d4bd
Show file tree
Hide file tree
Showing 24 changed files with 27 additions and 11 deletions.
4 changes: 3 additions & 1 deletion About/About.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,7 @@ JecsTools.PatchOperationModLoaded
Additions by ChJees
Additions by roxxploxx
Additions by Swenzi
Additions and transpilers by Erdelf</description>
Additions and transpilers by Erdelf
Xen added himself to the credits for extensive hours of testing, debugging, some small fixes,
and - for when Jec said "Hey should we make this into a public toolset for people to take advantage of all this cool stuff?" - Xen said, "Hell yes - this is awesome stuff - people will love it!"</description>
</ModMetaData>
Binary file modified Assemblies/AbilityUser.dll
Binary file not shown.
Binary file modified Assemblies/CompDeflector.dll
Binary file not shown.
24 changes: 19 additions & 5 deletions Source/.idea/.idea.JecsTools/.idea/contentModel.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Source/.idea/.idea.JecsTools/.idea/indexLayout.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ protected override IEnumerable<Toil> MakeNewToils()
yield return Toils_Misc.ThrowColonistAttackingMote(TargetIndex.A);
if (TargetA.HasThing)
{
if (!GetActor().IsFighting() || !Verb.UseAbilityProps.canCastInMelee)
// !GetActor().IsFighting() || - removed from below "If" by xen for melee casting fix
if (!Verb.UseAbilityProps.canCastInMelee)
{
var getInRangeToil = Toils_Combat.GotoCastPosition(TargetIndex.A, false);
yield return getInRangeToil;
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
6 changes: 3 additions & 3 deletions Source/AllModdingComponents/CompDeflector/CompDeflector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public virtual Verb ReflectionHandler(Verb newVerb)
if (Props.canReflect)
{
lastAccuracyRoll = ReflectionAccuracy();
var deflectVerb = newVerb;
var deflectVerbX = newVerb;

//Initialize VerbProperties
var newVerbProps = new VerbProperties
Expand Down Expand Up @@ -237,8 +237,8 @@ public virtual Verb ReflectionHandler(Verb newVerb)
break;
}
//Apply values
deflectVerb.verbProps = newVerbProps;
return deflectVerb;
deflectVerbX.verbProps = newVerbProps;
return deflectVerbX;
}
return newVerb;
}
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Source/AllModdingComponents/JecsTools/bin/Release/0JecsTools.dll
Binary file not shown.
Binary file modified Source/Assemblies/CompSlotLoadable.dll
Binary file not shown.

0 comments on commit b55d4bd

Please sign in to comment.