Add Henge Walker

This commit is contained in:
swordshine
2019-09-16 16:35:06 +08:00
parent c42f003755
commit 0e5884d757
2 changed files with 19 additions and 1 deletions

View File

@@ -259,7 +259,19 @@ public abstract class CardTraitBase extends GameObject implements IHasCardView {
return false; return false;
} }
final String payingMana = StringUtils.join(hostCard.getCastSA().getPayingMana()); final String payingMana = StringUtils.join(hostCard.getCastSA().getPayingMana());
if (StringUtils.countMatches(payingMana, MagicColor.toShortString(params.get("Adamant"))) < 3) { final String color = params.get("Adamant");
if ("Any".equals(color)) {
boolean bFlag = false;
for (byte c : MagicColor.WUBRG) {
if (StringUtils.countMatches(payingMana, MagicColor.toShortString(c)) >= 3) {
bFlag = true;
break;
}
}
if (!bFlag) {
return false;
}
} else if (StringUtils.countMatches(payingMana, MagicColor.toShortString(color)) < 3) {
return false; return false;
} }
} }

View File

@@ -0,0 +1,6 @@
Name:Henge Walker
ManaCost:3
Types:Artifact Creature Golem
PT:2/2
K:etbCounter:P1P1:1:Adamant$ Any:Adamant — If at least three mana of the same color was spent to cast this spell, CARDNAME enters the battlefield with a +1/+1 counter on it.
Oracle:Adamant — If at least three mana of the same color was spent to cast this spell, Henge Walker enters the battlefield with a +1/+1 counter on it.