This commit is contained in:
2025-03-08 10:15:20 -06:00
parent 454335c233
commit 3e04f36fd7
2 changed files with 15 additions and 25 deletions
+12 -2
View File
@@ -238,8 +238,18 @@ public class ActionsBase {
}
//Add blocked types here
public boolean blocked(AbstractWorldObject awo, PowersBase pb, int trains) {
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.isChant)
return false;