From b49a646e4fdf96f949da9b1c55671a158341397d Mon Sep 17 00:00:00 2001 From: swordshine Date: Sun, 22 Mar 2015 13:54:22 +0000 Subject: [PATCH] - Fixed Profaner of the Dead --- .../src/main/java/forge/game/ability/AbilityUtils.java | 5 ++++- forge-gui/res/cardsfolder/p/profaner_of_the_dead.txt | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/forge-game/src/main/java/forge/game/ability/AbilityUtils.java b/forge-game/src/main/java/forge/game/ability/AbilityUtils.java index 205689b489f..8128d9d3618 100644 --- a/forge-game/src/main/java/forge/game/ability/AbilityUtils.java +++ b/forge-game/src/main/java/forge/game/ability/AbilityUtils.java @@ -782,7 +782,10 @@ public class AbilityUtils { valid = valid.replace("EQ" + varName, "EQ" + Integer.toString(calculateAmount(source, varName, sa))); } } - + if (sa.hasParam("AbilityCount")) { // replace specific string other than "EQ" cases + String var = sa.getParam("AbilityCount"); + valid = valid.replace(var, Integer.toString(calculateAmount(source, var, sa))); + } return CardLists.getValidCards(list, valid.split(","), sa.getActivatingPlayer(), source); } diff --git a/forge-gui/res/cardsfolder/p/profaner_of_the_dead.txt b/forge-gui/res/cardsfolder/p/profaner_of_the_dead.txt index 38f9f750237..b4d222f5261 100644 --- a/forge-gui/res/cardsfolder/p/profaner_of_the_dead.txt +++ b/forge-gui/res/cardsfolder/p/profaner_of_the_dead.txt @@ -4,7 +4,7 @@ Types:Creature Naga Wizard PT:3/3 K:Exploit T:Mode$ Exploited | ValidCard$ Creature | ValidSource$ Card.Self | TriggerZones$ Battlefield | Execute$ TrigChangeZoneAll | TriggerDescription$ When CARDNAME exploits a creature, return to their owners' hands all creatures your opponents control with toughness less than the exploited creature's toughness. -SVar:TrigChangeZoneAll:DB$ ChangeZoneAll | Origin$ Battlefield | Destination$ Hand | ChangeType$ Creature.toughnessLEX+OppCtrl | References$ X +SVar:TrigChangeZoneAll:DB$ ChangeZoneAll | Origin$ Battlefield | Destination$ Hand | ChangeType$ Creature.toughnessLTX+OppCtrl | References$ X | AbilityCount$ X SVar:X:TriggeredExploited$CardToughness SVar:RemAIDeck:True SVar:Picture:http://www.wizards.com/global/images/magic/general/profaner_of_the_dead.jpg