- Fixed Profaner of the Dead

This commit is contained in:
swordshine
2015-03-22 13:54:22 +00:00
parent eed3ea4143
commit b49a646e4f
2 changed files with 5 additions and 2 deletions

View File

@@ -782,7 +782,10 @@ public class AbilityUtils {
valid = valid.replace("EQ" + varName, "EQ" + Integer.toString(calculateAmount(source, varName, sa))); 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); return CardLists.getValidCards(list, valid.split(","), sa.getActivatingPlayer(), source);
} }

View File

@@ -4,7 +4,7 @@ Types:Creature Naga Wizard
PT:3/3 PT:3/3
K:Exploit 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. 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:X:TriggeredExploited$CardToughness
SVar:RemAIDeck:True SVar:RemAIDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/profaner_of_the_dead.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/profaner_of_the_dead.jpg