mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Added the option "Unique" to AF Effect.
- Improved implementation of Liege of the Tangle.
This commit is contained in:
@@ -4,13 +4,12 @@ Types:Creature Elemental
|
||||
Text:no text
|
||||
PT:8/8
|
||||
K:Trample
|
||||
K:stAnimateAll:Land.countersGE1AWAKENING:8/8:Creature,Elemental:Green:No Abilities:No Condition:no text
|
||||
T:Mode$ DamageDone | ValidSource$ Card.Self | ValidTarget$ Player | CombatDamage$ True | Execute$ TrigPutCounter | TriggerZones$ Battlefield | TriggerDescription$ Whenever CARDNAME deals combat damage to a player, you may choose any number of lands you control and put an awakening counter on them.
|
||||
SVar:TrigPutCounter:AB$PutCounter | Cost$ 0 | ValidTgts$ Land.YouCtrl | OptionalDecider$ You | TargetMax$ X | TgtPrompt$ Select lands you control | CounterType$ AWAKENING | CounterNum$ 1
|
||||
K:stAnimateAll:Land.countersGE1AWAKENING:8/8:Creature,Elemental:Green,Overwrite:No Abilities:No Condition:no text
|
||||
T:Mode$ DamageDone | ValidSource$ Card.Self | ValidTarget$ Player | CombatDamage$ True | Execute$ TrigPutCounter | TriggerZones$ Battlefield | TriggerDescription$ Whenever CARDNAME deals combat damage to a player, you may choose any number of target lands you control and put an awakening counter on each of them. Each of those lands is an 8/8 green Elemental creature for as long as it has an awakening counter on it. They're still lands.
|
||||
SVar:TrigPutCounter:AB$PutCounter | Cost$ 0 | ValidTgts$ Land.YouCtrl | OptionalDecider$ You | TargetMax$ X | TgtPrompt$ Select lands you control | CounterType$ AWAKENING | CounterNum$ 1 | SubAbility$ SVar=DBEffect
|
||||
SVar:X:Count$Valid Land.YouCtrl
|
||||
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Any | ValidCard$ Card.Self | Execute$ TrigEffect | TriggerDescription$ Each of those lands is an 8/8 green Elemental for as long as it has an awakening counter on it.
|
||||
SVar:TrigEffect:AB$ Effect | Cost$ 0 | Name$ Awakening Effect | Keywords$ KWAnimateAll | Duration$ Permanent
|
||||
SVar:KWAnimateAll:stAnimateAll:Land.countersGE1AWAKENING:8/8:Creature,Elemental:Green:No Abilities:No Condition:Each of those lands is an 8/8 green Elemental creature for as long as it has an awakening counter on it. They're still lands.
|
||||
SVar:DBEffect:DB$ Effect | Cost$ 0 | Name$ Awakening Effect | Keywords$ KWAnimateAll | Unique$ True | Duration$ Permanent
|
||||
SVar:KWAnimateAll:stAnimateAll:Land.countersGE1AWAKENING:8/8:Creature,Elemental:Green,Overwrite:No Abilities:No Condition:Each of those lands is an 8/8 green Elemental creature for as long as it has an awakening counter on it. They're still lands.
|
||||
SVar:RemAIDeck:True
|
||||
SVar:Rarity:Mythic
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/liege_of_the_tangle.jpg
|
||||
|
||||
@@ -4,6 +4,7 @@ import java.util.HashMap;
|
||||
import java.util.Random;
|
||||
|
||||
import forge.AllZone;
|
||||
import forge.AllZoneUtil;
|
||||
import forge.Card;
|
||||
import forge.Command;
|
||||
import forge.ComputerUtil;
|
||||
@@ -183,6 +184,10 @@ public class AbilityFactory_Effect {
|
||||
if (name == null)
|
||||
name = sa.getSourceCard().getName() + "'s Effect";
|
||||
|
||||
//Unique Effects shouldn't be duplicated
|
||||
if(params.containsKey("Unique") && AllZoneUtil.isCardInPlay(name))
|
||||
return;
|
||||
|
||||
Player controller = sa.getActivatingPlayer();
|
||||
Card eff = new Card();
|
||||
eff.setName(name);
|
||||
|
||||
Reference in New Issue
Block a user