diff --git a/src/main/java/uulm/teamname/marvelous/gamelibrary/gamelogic/GameLogic.java b/src/main/java/uulm/teamname/marvelous/gamelibrary/gamelogic/GameLogic.java index 38e0b16..feaa832 100644 --- a/src/main/java/uulm/teamname/marvelous/gamelibrary/gamelogic/GameLogic.java +++ b/src/main/java/uulm/teamname/marvelous/gamelibrary/gamelogic/GameLogic.java @@ -13,8 +13,6 @@ import uulm.teamname.marvelous.gamelibrary.requests.RequestType; import java.awt.*; import java.awt.geom.Line2D; import java.awt.geom.Point2D; -import java.sql.ResultSetMetaData; -import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Collections; import java.util.HashSet; @@ -73,7 +71,13 @@ class GameLogic { .withOriginField(data.targetField) .withTargetField(data.originField) .buildCharacterEvent()); - break; //we should only have one character per field anyways + break; //we should only have one entity per field anyways + }else if(entity instanceof InfinityStone) { + result.add(new EventBuilder(EventType.DestroyedEntityEvent) + .withTargetField(data.targetField) + .withTargetEntity(entity.id) + .buildEntityEvent()); + break; //we should only have one entity per field anyways } } }