mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 02:08:00 +00:00
- Added Price of Glory
This commit is contained in:
@@ -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)) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user