- Added Price of Glory

This commit is contained in:
swordshine
2014-02-26 04:14:10 +00:00
parent 47e70694bf
commit fbbab5110c
8 changed files with 45 additions and 2 deletions

View File

@@ -2327,6 +2327,10 @@ public class Player extends GameEntity implements Comparable<Player> {
if (this.equals(sourceController) || !this.isOpponentOf(sourceController)) {
return false;
}
} else if (property.equals("NonActive")) {
if (this.equals(game.getPhaseHandler().getPlayerTurn())) {
return false;
}
} else if (property.equals("OpponentToActive")) {
final Player active = game.getPhaseHandler().getPlayerTurn();
if (this.equals(active) || !this.isOpponentOf(active)) {

View File

@@ -162,6 +162,12 @@ public abstract class Trigger extends TriggerReplacementBase {
}
}
if (this.mapParams.containsKey("NotPlayerTurn")) {
if (phaseHandler.isPlayerTurn(this.getHostCard().getController())) {
return false;
}
}
if (this.mapParams.containsKey("OpponentTurn")) {
if (!phaseHandler.getPlayerTurn().isOpponentOf(this.getHostCard().getController())) {
return false;

View File

@@ -77,6 +77,15 @@ public class TriggerTapsForMana extends Trigger {
}
}
if (this.mapParams.containsKey("Activator")) {
final SpellAbility sa = (SpellAbility) runParams2.get("AbilityMana");
if (sa == null) return false;
final Player activator = sa.getActivatingPlayer();
if (!activator.isValid(this.mapParams.get("Activator").split(","), this.getHostCard().getController(), this.getHostCard())) {
return false;
}
}
if (this.mapParams.containsKey("Produced")) {
Object prod = runParams2.get("Produced");
if (prod == null || !(prod instanceof String)) {