From 887501c0403d988e541f2e9ce91f30dfeee2f099 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 11 Mar 2025 20:24:03 -0500 Subject: [PATCH] allow pve mode toons to cast summon --- src/engine/powers/ActionsBase.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/engine/powers/ActionsBase.java b/src/engine/powers/ActionsBase.java index 9ae7339e..57249537 100644 --- a/src/engine/powers/ActionsBase.java +++ b/src/engine/powers/ActionsBase.java @@ -240,13 +240,15 @@ public class ActionsBase { //Add blocked types here public boolean blocked(AbstractWorldObject awo, PowersBase pb, int trains, AbstractCharacter source) { - if (AbstractWorldObject.IsAbstractCharacter(awo)) { - AbstractCharacter target = (AbstractCharacter) awo; - if(source.getObjectType().equals(Enum.GameObjectType.PlayerCharacter)){ - PlayerCharacter pc = (PlayerCharacter) source; - if(target.getObjectType().equals(Enum.GameObjectType.PlayerCharacter)){ - if(pc.isBoxed && pc.getObjectUUID() != target.getObjectUUID()){ - return true; + if(!pb.getName().contains("Summon")) { + if (AbstractWorldObject.IsAbstractCharacter(awo)) { + AbstractCharacter target = (AbstractCharacter) awo; + if (source.getObjectType().equals(Enum.GameObjectType.PlayerCharacter)) { + PlayerCharacter pc = (PlayerCharacter) source; + if (target.getObjectType().equals(Enum.GameObjectType.PlayerCharacter)) { + if (pc.isBoxed && pc.getObjectUUID() != target.getObjectUUID()) { + return true; + } } } }