Skip to content

Commit

Permalink
Disable click to walk when target cell has a character or npc
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanmoffat committed Apr 6, 2022
1 parent 927c60d commit 7924191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EndlessClient/Controllers/MapInteractionController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public void LeftClick(IMapCellState cellState, IMouseCursorRenderer mouseRendere
{
_characterActions.ToggleSit();
}
else if (cellState.InBounds)
else if (cellState.InBounds && !cellState.Character.HasValue && !cellState.NPC.HasValue)
{
mouseRenderer.AnimateClick();
_hudControlProvider.GetComponent<ICharacterAnimator>(HudControlIdentifier.CharacterAnimator)
Expand Down

0 comments on commit 7924191

Please sign in to comment.