diff --git a/forge-game/src/main/java/forge/game/ForgeScript.java b/forge-game/src/main/java/forge/game/ForgeScript.java index d7bfb7065f9..5b61b5f867f 100644 --- a/forge-game/src/main/java/forge/game/ForgeScript.java +++ b/forge-game/src/main/java/forge/game/ForgeScript.java @@ -195,7 +195,7 @@ public class ForgeScript { return sa.isKeyword(Keyword.SADDLE); } else if (property.equals("Station")) { return sa.isKeyword(Keyword.STATION); - }else if (property.equals("Cycling")) { + } else if (property.equals("Cycling")) { return sa.isCycling(); } else if (property.equals("Dash")) { return sa.isDash(); diff --git a/forge-game/src/main/java/forge/game/card/Card.java b/forge-game/src/main/java/forge/game/card/Card.java index 92cc9a09a39..4dcec9e9a99 100644 --- a/forge-game/src/main/java/forge/game/card/Card.java +++ b/forge-game/src/main/java/forge/game/card/Card.java @@ -6862,6 +6862,10 @@ public class Card extends GameEntity implements Comparable, IHasSVars, ITr return exiledSA.isKeyword(Keyword.WARP); } + public boolean isWebSlinged() { + return getCastSA() != null & getCastSA().isAlternativeCost(AlternativeCost.WebSlinging); + } + public boolean isSpecialized() { return specialized; } diff --git a/forge-game/src/main/java/forge/game/card/CardProperty.java b/forge-game/src/main/java/forge/game/card/CardProperty.java index 4e68c95a771..db8c2e94a33 100644 --- a/forge-game/src/main/java/forge/game/card/CardProperty.java +++ b/forge-game/src/main/java/forge/game/card/CardProperty.java @@ -1820,6 +1820,10 @@ public class CardProperty { if (!card.isWarped()) { return false; } + } else if (property.equals("webSlinged")) { + if (!card.isWebSlinged()) { + return false; + } } else if (property.equals("CrewedThisTurn")) { if (!hasTimestampMatch(card, source.getCrewedByThisTurn())) return false; } else if (property.equals("CrewedBySourceThisTurn")) { diff --git a/forge-gui/res/cardsfolder/upcoming/spiders_man_heroic_horde.txt b/forge-gui/res/cardsfolder/upcoming/spiders_man_heroic_horde.txt new file mode 100644 index 00000000000..54a40a60fb2 --- /dev/null +++ b/forge-gui/res/cardsfolder/upcoming/spiders_man_heroic_horde.txt @@ -0,0 +1,9 @@ +Name:Spiders-Man, Heroic Horde +ManaCost:1 G +Types:Legendary Creature Spider Hero +PT:2/3 +K:Web-slinging:4 G G +T:Mode$ ChangesZone | Origin$ Stack | Destination$ Battlefield | ValidCard$ Card.Self+webSlinged | Execute$ TrigGainLife | TriggerDescription$ When CARDNAME enters, if they were cast using web-slinging, you gain 3 life and create two 2/1 green Spider creature tokens with reach. +SVar:DBGainLife:DB$ GainLife | Defined$ You | LifeAmount$ 3 | SubAbility$ DBToken +SVar:DBToken:DB$ Token | TokenAmount$ 2 | TokenScript$ g_2_1_spider_reach | TokenOwner$ You +Oracle:Web-slinging {4}{G}{G} (You may cast this spell for {4}{G}{G} if you also return a tapped creature you control to its owner's hand.)\nWhen Spiders-Man enters, if they were cast using web-slinging, you gain 3 life and create two 2/1 green Spider creature tokens with reach. \ No newline at end of file