This commit is contained in:
Anuken
2022-03-01 17:59:11 -05:00
parent 0805fffa18
commit f47f96663a
10 changed files with 26 additions and 12 deletions

View File

@@ -703,7 +703,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
public void drawOverlapCheck(Block block, int cursorX, int cursorY, boolean valid){
if(!valid && state.rules.placeRangeCheck){
var blocker = Build.getEnemyOverlap(block, player.team(), cursorX, cursorY);
if(blocker != null){
if(blocker != null && blocker.wasVisible){
Drawf.selected(blocker, Pal.remove);
Tmp.v1.set(cursorX, cursorY).scl(tilesize).add(block.offset, block.offset).sub(blocker).scl(-1f).nor();
Drawf.dashLineDst(Pal.remove,