Added temporary check to prevent attacking interactable entities

This commit is contained in:
Collin Smith 2020-08-28 00:44:01 -07:00
parent c12ea88b6e
commit 05be705363

View File

@ -132,7 +132,7 @@ public class CursorMovementSystem extends BaseSystem {
if (interactable != null && srcPos.dst(targetPos) <= interactable.range) {
setTarget(src, Engine.INVALID_ENTITY);
interactable.interactor.interact(src, targetId);
} else {
} else if (interactable == null) { // TODO: change to check targetability of targetId
setTarget(src, Engine.INVALID_ENTITY);
actioneer.cast(src, Riiablo.charData.getAction(Input.Buttons.LEFT), targetId);
}