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
1 changed files with 0 additions and 9 deletions

View File

@ -452,15 +452,6 @@ public class GameLogic {
.withOriginField(data.originField)
.withTargetField(data.targetField)
.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 -> {
EntityType target = data.originEntity.type == EntityType.P1 ? EntityType.P2 : EntityType.P1;