- Made a few more cards multiplayer-ready

- Improved OpponentTurn restrictions and conditions for multiplayer
This commit is contained in:
moomarc
2013-03-28 13:59:56 +00:00
parent 5eca17a635
commit 9da6f43379
9 changed files with 23 additions and 26 deletions

View File

@@ -214,7 +214,7 @@ public class SpellAbilityCondition extends SpellAbilityVariables {
return false;
}
if (this.isOpponentTurn() && Singletons.getModel().getGame().getPhaseHandler().isPlayerTurn(activator)) {
if (this.isOpponentTurn() && !Singletons.getModel().getGame().getPhaseHandler().getPlayerTurn().isOpponentOf(activator)) {
return false;
}

View File

@@ -230,7 +230,7 @@ public class SpellAbilityRestriction extends SpellAbilityVariables {
return false;
}
if (this.isOpponentTurn() && Singletons.getModel().getGame().getPhaseHandler().isPlayerTurn(activator)) {
if (this.isOpponentTurn() && !Singletons.getModel().getGame().getPhaseHandler().getPlayerTurn().isOpponentOf(activator)) {
return false;
}

View File

@@ -237,7 +237,7 @@ public abstract class Trigger extends TriggerReplacementBase {
}
if (this.getMapParams().containsKey("OpponentTurn")) {
if (phaseHandler.isPlayerTurn(this.getHostCard().getController())) {
if (!phaseHandler.getPlayerTurn().isOpponentOf(this.getHostCard().getController())) {
return false;
}
}