mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Added Goblin Welder (please test)
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -4342,6 +4342,7 @@ res/cardsfolder/g/goblin_warchief.txt svneol=native#text/plain
|
||||
res/cardsfolder/g/goblin_warchief_avatar.txt -text
|
||||
res/cardsfolder/g/goblin_wardriver.txt svneol=native#text/plain
|
||||
res/cardsfolder/g/goblin_warrens.txt svneol=native#text/plain
|
||||
res/cardsfolder/g/goblin_welder.txt -text
|
||||
res/cardsfolder/g/goblin_wizard.txt svneol=native#text/plain
|
||||
res/cardsfolder/g/goblins_of_the_flarg.txt svneol=native#text/plain
|
||||
res/cardsfolder/g/godhead_of_awe.txt svneol=native#text/plain
|
||||
|
||||
@@ -13,6 +13,7 @@ SVar:X:Count$ChosenNumber
|
||||
SVar:NumManaMax:Count$Valid Island.RememberedPlayerCtrl
|
||||
SVar:CarpetX:Number$0
|
||||
SVar:RemAIDeck:True
|
||||
SVar:RemRandomDeck:True
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/carpet_of_flowers.jpg
|
||||
SetInfo:USG|Uncommon|http://magiccards.info/scans/en/us/240.jpg
|
||||
Oracle:At the beginning of each of your main phases, if you haven't added mana to your mana pool with this ability this turn, you may add up to X mana of any one color to your mana pool, where X is the number of Islands target opponent controls.
|
||||
|
||||
13
res/cardsfolder/g/goblin_welder.txt
Normal file
13
res/cardsfolder/g/goblin_welder.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
Name:Goblin Welder
|
||||
ManaCost:R
|
||||
Types:Creature Goblin Artificer
|
||||
PT:1/1
|
||||
A:AB$ Pump | Cost$ T | ValidTgts$ Artifact | TgtPrompt$ Select target artifact a player controls | RememberObjects$ Targeted | Condition$ AllTargetsLegal | StackDescription$ SpellDescription | SubAbility$ DBTargetYard | SpellDescription$ Choose target artifact a player controls and target artifact card in that player's graveyard. If both targets are still legal as this ability resolves, that player simultaneously sacrifices the artifact and returns the artifact card to the battlefield.
|
||||
SVar:DBTargetYard:DB$ Pump | ValidTgts$ Artifact | TgtPrompt$ Select target artifact in that player's graveyard | TgtZone$ Graveyard | PumpZone$ Graveyard | TargetsWithSameController$ True | ImprintCards$ Targeted | Condition$ AllTargetsLegal | StackDescription$ None | SubAbility$ DBSacrifice
|
||||
SVar:DBSacrifice:DB$ SacrificeAll | ValidCards$ Card.IsRemembered | ConditionDefined$ Remembered | ConditionPresent$ Artifact | ConditionCompare$ GE1 | ConditionCheckSVar$ CheckImprint | ConditionSVarCompare$ GE1 | SubAbility$ DBReturn | StackDescription$ None
|
||||
SVar:DBReturn:DB$ ChangeZone | Defined$ Imprinted | Origin$ Graveyard | Destination$ Battlefield | SubAbility$ DBCleanup | ConditionDefined$ Remembered | ConditionPresent$ Artifact | ConditionCompare$ GE1 | ConditionCheckSVar$ CheckImprint | ConditionSVarCompare$ GE1 | StackDescription$ None
|
||||
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True | ClearImprinted$ True
|
||||
SVar:CheckImprint:Imprinted$Valid Artifact.sharesControllerWith Remembered
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/goblin_welder.jpg
|
||||
SetInfo:ULG|Rare|http://magiccards.info/scans/en/ul/80.jpg
|
||||
Oracle:{T}: Choose target artifact a player controls and target artifact card in that player's graveyard. If both targets are still legal as this ability resolves, that player simultaneously sacrifices the artifact and returns the artifact card to the battlefield.
|
||||
@@ -200,8 +200,7 @@ public class SpellAbilityCondition extends SpellAbilityVariables {
|
||||
}
|
||||
}
|
||||
if (this.isAllTargetsLegal()) {
|
||||
SpellAbility root = sa.getRootAbility();
|
||||
for (Card c : root.getTarget().getTargetCards()) {
|
||||
for (Card c : sa.getTarget().getTargetCards()) {
|
||||
if (!CardFactoryUtil.isTargetStillValid(sa, c)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user