Browse Source

allow pve mode toons to cast summon

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

8
src/engine/powers/ActionsBase.java

@ -240,17 +240,19 @@ 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(!pb.getName().contains("Summon")) {
if (AbstractWorldObject.IsAbstractCharacter(awo)) { if (AbstractWorldObject.IsAbstractCharacter(awo)) {
AbstractCharacter target = (AbstractCharacter) awo; AbstractCharacter target = (AbstractCharacter) awo;
if(source.getObjectType().equals(Enum.GameObjectType.PlayerCharacter)){ if (source.getObjectType().equals(Enum.GameObjectType.PlayerCharacter)) {
PlayerCharacter pc = (PlayerCharacter) source; PlayerCharacter pc = (PlayerCharacter) source;
if(target.getObjectType().equals(Enum.GameObjectType.PlayerCharacter)){ if (target.getObjectType().equals(Enum.GameObjectType.PlayerCharacter)) {
if(pc.isBoxed && pc.getObjectUUID() != target.getObjectUUID()){ if (pc.isBoxed && pc.getObjectUUID() != target.getObjectUUID()) {
return true; return true;
} }
} }
} }
} }
}
if(pb.isChant) if(pb.isChant)
return false; return false;

Loading…
Cancel
Save