Skip to content

Commit

Permalink
fix ability to dispose unit
Browse files Browse the repository at this point in the history
using longpress shortcut to buy castle while holding it
fixes #66
  • Loading branch information
Sesu8642 committed Sep 29, 2023
1 parent 6601666 commit f8876a6
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ public static boolean checkBuyAndPlaceCastleInstantly(GameState gameState, Playe
if (activeKingdom.getSavings() < Castle.COST) {
return false;
}
if (gameState.getHeldObject() != null) {
return false;
}
// then check whether placing is possible
if (isWater(tile)) {
return false;
Expand Down

0 comments on commit f8876a6

Please sign in to comment.