fix: revert removing infinity stones from space stone teleportation as this is not possible to happen
This commit is contained in:
parent
d69376c110
commit
e68298781b
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user