fix: revert removing infinity stones from space stone teleportation as this is not possible to happen

This commit is contained in:
punchready 2021-08-06 15:26:54 +02:00
parent d69376c110
commit e68298781b

View File

@ -452,15 +452,6 @@ public class GameLogic {
.withOriginField(data.originField) .withOriginField(data.originField)
.withTargetField(data.targetField) .withTargetField(data.targetField)
.buildCharacterEvent()); .buildCharacterEvent());
for(Entity entity: state.entities.findByPosition(data.targetField)) {
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
}
}
} }
case MindStone -> { case MindStone -> {
EntityType target = data.originEntity.type == EntityType.P1 ? EntityType.P2 : EntityType.P1; EntityType target = data.originEntity.type == EntityType.P1 ? EntityType.P2 : EntityType.P1;