Browse Source

allow pve mode toons to cast summon

lakebane
FatBoy-DOTC 3 weeks ago
parent
commit
887501c040
  1. 16
      src/engine/powers/ActionsBase.java

16
src/engine/powers/ActionsBase.java

@ -240,13 +240,15 @@ public class ActionsBase {
//Add blocked types here //Add blocked types here
public boolean blocked(AbstractWorldObject awo, PowersBase pb, int trains, AbstractCharacter source) { public boolean blocked(AbstractWorldObject awo, PowersBase pb, int trains, AbstractCharacter source) {
if (AbstractWorldObject.IsAbstractCharacter(awo)) { if(!pb.getName().contains("Summon")) {
AbstractCharacter target = (AbstractCharacter) awo; if (AbstractWorldObject.IsAbstractCharacter(awo)) {
if(source.getObjectType().equals(Enum.GameObjectType.PlayerCharacter)){ AbstractCharacter target = (AbstractCharacter) awo;
PlayerCharacter pc = (PlayerCharacter) source; if (source.getObjectType().equals(Enum.GameObjectType.PlayerCharacter)) {
if(target.getObjectType().equals(Enum.GameObjectType.PlayerCharacter)){ PlayerCharacter pc = (PlayerCharacter) source;
if(pc.isBoxed && pc.getObjectUUID() != target.getObjectUUID()){ if (target.getObjectType().equals(Enum.GameObjectType.PlayerCharacter)) {
return true; if (pc.isBoxed && pc.getObjectUUID() != target.getObjectUUID()) {
return true;
}
} }
} }
} }

Loading…
Cancel
Save