mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
Refactor Magnigoth Treefolk (#4940)
This commit is contained in:
@@ -255,6 +255,17 @@ public final class StaticAbilityContinuous {
|
||||
}
|
||||
return true;
|
||||
}
|
||||
if (input.contains("YourBasic")) {
|
||||
CardCollectionView lands = hostCard.getController().getLandsInPlay();
|
||||
final List<String> basic = MagicColor.Constant.BASIC_LANDS;
|
||||
for (String type : basic) {
|
||||
if (Iterables.any(lands, CardPredicates.isType(type))) {
|
||||
String y = input.replaceAll("YourBasic", type);
|
||||
newKeywords.add(y);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
if (input.contains("EachCMCAmongDefined")) {
|
||||
String keywordDefined = params.get("KeywordDefined");
|
||||
CardCollectionView definedCards = game.getCardsIn(ZoneType.Battlefield);
|
||||
|
||||
@@ -2,10 +2,5 @@ Name:Magnigoth Treefolk
|
||||
ManaCost:4 G
|
||||
Types:Creature Treefolk
|
||||
PT:2/6
|
||||
# TODO without BasicLandTypeNames
|
||||
S:Mode$ Continuous | Affected$ Card.Self | AddKeyword$ Landwalk:Plains | IsPresent$ Plains.YouCtrl | Description$ Domain — For each basic land type among lands you control, CARDNAME has landwalk of that type
|
||||
S:Mode$ Continuous | Affected$ Card.Self | AddKeyword$ Landwalk:Island | IsPresent$ Island.YouCtrl
|
||||
S:Mode$ Continuous | Affected$ Card.Self | AddKeyword$ Landwalk:Swamp | IsPresent$ Swamp.YouCtrl
|
||||
S:Mode$ Continuous | Affected$ Card.Self | AddKeyword$ Landwalk:Mountain | IsPresent$ Mountain.YouCtrl
|
||||
S:Mode$ Continuous | Affected$ Card.Self | AddKeyword$ Landwalk:Forest | IsPresent$ Forest.YouCtrl
|
||||
S:Mode$ Continuous | Affected$ Card.Self | AddKeyword$ Landwalk:YourBasic | Description$ Domain — For each basic land type among lands you control, CARDNAME has landwalk of that type.
|
||||
Oracle:Domain — For each basic land type among lands you control, Magnigoth Treefolk has landwalk of that type. (It can't be blocked as long as defending player controls a land of that type.)
|
||||
|
||||
Reference in New Issue
Block a user