gor_muldrak_amphinologist.txt and support

This commit is contained in:
Northmoc
2020-11-02 16:54:25 -05:00
parent 6c675fcbcc
commit ff5d9b7ce9
2 changed files with 12 additions and 2 deletions

View File

@@ -227,8 +227,7 @@ public class PlayerProperty {
final String[] type = property.substring(8).split("_");
final CardCollectionView list = CardLists.getValidCards(player.getCardsIn(ZoneType.Battlefield), type[0], sourceController, source);
String comparator = type[1];
String compareTo = comparator.substring(2);
int y = StringUtils.isNumeric(compareTo) ? Integer.parseInt(compareTo) : 0;
int y = AbilityUtils.calculateAmount(source, comparator.substring(2), null);
if (!Expressions.compare(list.size(), comparator, y)) {
return false;
}

View File

@@ -0,0 +1,11 @@
Name:Gor Muldrak, Amphinologist
ManaCost:1 G U
Types:Legendary Creature Human Scout
PT:3/2
S:Mode$ Continuous | Affected$ You,Permanent.YouCtrl | AddKeyword$ Protection from Salamanders | Description$ You and permanents you control have protection from Salamanders.
T:Mode$ Phase | Phase$ End of Turn | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigRepeat | TriggerDescription$ At the beginning of your end step, each player who controls the fewest creatures creates a 4/3 blue Salamander Warrior creature token.
SVar:TrigRepeat:DB$ RepeatEach | RepeatSubAbility$ TrigToken | RepeatPlayers$ Player.controlsCreature_EQX | References$ X
SVar:TrigToken:DB$ Token | TokenAmount$ 1 | TokenScript$ u_4_3_salamander_warrior | TokenOwner$ Player.IsRemembered
SVar:X:PlayerCountPlayers$LowestValid Creature.YouCtrl
AI:RemoveDeck:All
Oracle:You and permanents you control have protection from Salamanders.\nAt the beginning of your end step, each player who controls the fewest creatures creates a 4/3 blue Salamander Warrior creature token.