Skip to content
This repository has been archived by the owner on Dec 30, 2024. It is now read-only.

Commit

Permalink
🐛 Fix Bars and Counter interactions
Browse files Browse the repository at this point in the history
  • Loading branch information
Chasmical committed May 17, 2022
1 parent 96cd9b4 commit c17666d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RogueLibsCore/Interactions/VanillaInteractions/Bars.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ private static void Patch_Bars()
h.AddImplicitButton("InteractWithAgent", static m =>
{
Agent agent = m.Agent;
InteractionHelper helper = m.Helper;
Agent counterAgent = m.Object.counterAgent;
m.Object.StopInteraction();
InteractionHelper helper = agent.interactionHelper;

if (helper.CanInteractWithAgent(counterAgent))
{
Expand Down
2 changes: 1 addition & 1 deletion RogueLibsCore/Interactions/VanillaInteractions/Counter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ private static void Patch_Counter()
h.AddImplicitButton("InteractWithAgent", static m =>
{
Agent agent = m.Agent;
InteractionHelper helper = m.Helper;
Agent counterAgent = m.Object.counterAgent;
m.Object.StopInteraction();
InteractionHelper helper = agent.interactionHelper;

if (helper.CanInteractWithAgent(counterAgent))
{
Expand Down

0 comments on commit c17666d

Please sign in to comment.