mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 02:08:00 +00:00
Add Henge Walker
This commit is contained in:
@@ -259,7 +259,19 @@ public abstract class CardTraitBase extends GameObject implements IHasCardView {
|
||||
return false;
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
6
forge-gui/res/cardsfolder/upcoming/henge_walker.txt
Normal file
6
forge-gui/res/cardsfolder/upcoming/henge_walker.txt
Normal 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.
|
||||
Reference in New Issue
Block a user