Browse Source

PVE flag

lakebane
FatBoy-DOTC 4 weeks ago
parent
commit
454335c233
  1. 34
      src/engine/gameManager/PowersManager.java

34
src/engine/gameManager/PowersManager.java

@ -1109,13 +1109,13 @@ public enum PowersManager {
//Player didn't miss power, send finish cast. Miss cast already sent. //Player didn't miss power, send finish cast. Miss cast already sent.
if (playerCharacter.isBoxed) { //if (playerCharacter.isBoxed) {
if (AbstractCharacter.IsAbstractCharacter(target)) { // if (AbstractCharacter.IsAbstractCharacter(target)) {
if (target.getObjectType().equals(GameObjectType.PlayerCharacter)) { // if (target.getObjectType().equals(GameObjectType.PlayerCharacter)) {
return; // return;
} // }
} // }
} //}
// finally Apply actions // finally Apply actions
for (ActionsBase ab : pb.getActions()) { for (ActionsBase ab : pb.getActions()) {
@ -1930,16 +1930,16 @@ public enum PowersManager {
PowersBase pb, int trains, boolean fromChant) { PowersBase pb, int trains, boolean fromChant) {
if (ac.getObjectType().equals(GameObjectType.PlayerCharacter)){ //if (ac.getObjectType().equals(GameObjectType.PlayerCharacter)){
PlayerCharacter pc = (PlayerCharacter) ac; // PlayerCharacter pc = (PlayerCharacter) ac;
if (pc.isBoxed && pb.token != -2133617927) { // if (pc.isBoxed && pb.token != -2133617927) {
if(AbstractCharacter.IsAbstractCharacter(target)){ // if(AbstractCharacter.IsAbstractCharacter(target)){
if (target.getObjectType().equals(GameObjectType.PlayerCharacter)){ // if (target.getObjectType().equals(GameObjectType.PlayerCharacter)){
return; // return;
} // }
} // }
} // }
} //}
// finally Apply actions // finally Apply actions
ArrayList<ActionsBase> actions = pb.getActions(); ArrayList<ActionsBase> actions = pb.getActions();
for (ActionsBase ab : actions) { for (ActionsBase ab : actions) {

Loading…
Cancel
Save