diff --git a/src/main/java/ruscz/game/gameOfProd/Cells/Person.java b/src/main/java/ruscz/game/gameOfProd/Cells/Person.java index ee2073c..e32a2e9 100644 --- a/src/main/java/ruscz/game/gameOfProd/Cells/Person.java +++ b/src/main/java/ruscz/game/gameOfProd/Cells/Person.java @@ -123,9 +123,13 @@ public class Person extends Cell { directionMove = 0; if (map.isActiveTriggerCell(x,y) && !isInEvent) { - isInEvent = true; - WindowOfFreeMove.setNextMove(WindowOfFreeMove.KEY_EVENT); - map.findTriggerByXY(x,y).startEvent(); + set(x, y); + WindowOfFreeMove.setCanPersonMove(false); + if (!isMoving) { + isInEvent = true; + WindowOfFreeMove.setNextMove(WindowOfFreeMove.KEY_EVENT); + map.findTriggerByXY(x,y).startEvent(); + } } } }