mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
Merge pull request #152 from Northmoc/sncJinnieFay
SNC: Jinnie Fay, Jetmir's Second and support
This commit is contained in:
@@ -26,14 +26,18 @@ public class ReplaceTokenEffect extends SpellAbilityEffect {
|
|||||||
final Card card = sa.getHostCard();
|
final Card card = sa.getHostCard();
|
||||||
final Player p = sa.getActivatingPlayer();
|
final Player p = sa.getActivatingPlayer();
|
||||||
final Game game = card.getGame();
|
final Game game = card.getGame();
|
||||||
|
SpellAbility repSA = sa;
|
||||||
|
|
||||||
|
if (repSA.getReplacingObjects().isEmpty()) {
|
||||||
|
repSA = sa.getRootAbility();
|
||||||
|
}
|
||||||
// ReplaceToken Effect only applies to one Player
|
// ReplaceToken Effect only applies to one Player
|
||||||
Player affected = (Player) sa.getReplacingObject(AbilityKey.Player);
|
Player affected = (Player) repSA.getReplacingObject(AbilityKey.Player);
|
||||||
TokenCreateTable table = (TokenCreateTable) sa.getReplacingObject(AbilityKey.Token);
|
TokenCreateTable table = (TokenCreateTable) repSA.getReplacingObject(AbilityKey.Token);
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
Map<AbilityKey, Object> originalParams = (Map<AbilityKey, Object>) sa
|
Map<AbilityKey, Object> originalParams =
|
||||||
.getReplacingObject(AbilityKey.OriginalParams);
|
(Map<AbilityKey, Object>) repSA.getReplacingObject(AbilityKey.OriginalParams);
|
||||||
|
|
||||||
// currently the only ones that changes the amount does double it
|
// currently the only ones that changes the amount does double it
|
||||||
if ("Amount".equals(sa.getParam("Type"))) {
|
if ("Amount".equals(sa.getParam("Type"))) {
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
Name:Jinnie Fay, Jetmir's Second
|
||||||
|
ManaCost:RG G GW
|
||||||
|
Types:Legendary Creature Elf Druid
|
||||||
|
PT:3/3
|
||||||
|
R:Event$ CreateToken | ActiveZones$ Battlefield | ValidToken$ Card.YouCtrl | ReplaceWith$ GenericChoice | Optional$ True | Description$ If you would create one or more tokens, you may instead create that many 2/2 green Cat creature tokens with haste or that many 3/1 green Dog creature tokens with vigilance.
|
||||||
|
SVar:GenericChoice:DB$ GenericChoice | Choices$ Cat,Dog
|
||||||
|
SVar:Cat:DB$ ReplaceToken | Type$ ReplaceToken | ValidCard$ Card.YouCtrl | TokenScript$ g_2_2_cat_haste | SpellDescription$ Create that many 2/2 green Cat creature tokens with haste
|
||||||
|
SVar:Dog:DB$ ReplaceToken | Type$ ReplaceToken | ValidCard$ Card.YouCtrl | TokenScript$ g_3_1_dog_vigilance | SpellDescription$ Create that many 3/1 green Dog creature tokens with vigilance
|
||||||
|
DeckNeeds:Ability$Token
|
||||||
|
DeckHas:Type$Cat|Dog
|
||||||
|
AI:RemoveDeck:Random
|
||||||
|
Oracle:If you would create one or more tokens, you may instead create that many 2/2 green Cat creature tokens with haste or that many 3/1 green Dog creature tokens with vigilance.
|
||||||
7
forge-gui/res/tokenscripts/g_2_2_cat_haste.txt
Normal file
7
forge-gui/res/tokenscripts/g_2_2_cat_haste.txt
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
Name:Cat Token
|
||||||
|
ManaCost:no cost
|
||||||
|
Colors:green
|
||||||
|
Types:Creature Cat
|
||||||
|
PT:2/2
|
||||||
|
K:Haste
|
||||||
|
Oracle:Haste
|
||||||
7
forge-gui/res/tokenscripts/g_3_1_dog_vigilance.txt
Normal file
7
forge-gui/res/tokenscripts/g_3_1_dog_vigilance.txt
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
Name:Dog Token
|
||||||
|
ManaCost:no cost
|
||||||
|
Colors:green
|
||||||
|
Types:Creature Dog
|
||||||
|
PT:3/1
|
||||||
|
K:Vigilance
|
||||||
|
Oracle:Vigilance
|
||||||
Reference in New Issue
Block a user