- CNS: Added Drakestown Forgotten and Scourge of the Throne

This commit is contained in:
swordshine
2014-05-20 05:10:34 +00:00
parent 696c0ed0c2
commit 7c173076d0
4 changed files with 32 additions and 1 deletions

View File

@@ -18,6 +18,7 @@
package forge.game.trigger;
import forge.game.Game;
import forge.game.GameEntity;
import forge.game.TriggerReplacementBase;
import forge.game.card.Card;
import forge.game.phase.PhaseHandler;
@@ -281,10 +282,16 @@ public abstract class Trigger extends TriggerReplacementBase {
}
String condition = this.mapParams.get("Condition");
if( "AltCost".equals(condition) ) {
if ("AltCost".equals(condition)) {
final Card moved = (Card) runParams.get("Card");
if( null != moved && !moved.isOptionalCostPaid(OptionalCost.AltCost))
return false;
} else if ("AttackedPlayerWithMostLife".equals(condition)) {
GameEntity attacked = (GameEntity) runParams.get("Attacked");
if (attacked == null || !attacked.isValid("Player.withMostLife",
this.getHostCard().getController(), this.getHostCard())) {
return false;
}
}