mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Convert Glimmervoid and Thran Quarry to Trigger
This commit is contained in:
@@ -1,12 +1,14 @@
|
|||||||
Name:Glimmervoid
|
Name:Glimmervoid
|
||||||
ManaCost:no cost
|
ManaCost:no cost
|
||||||
Types:Land
|
Types:Land
|
||||||
Text:At the beginning of the end step, if you control no artifacts, sacrifice CARDNAME.
|
Text:no text
|
||||||
A:AB$ Mana | Cost$ T | Produced$ W | SpellDescription$ Add W to your mana pool.
|
A:AB$ Mana | Cost$ T | Produced$ W | SpellDescription$ Add W to your mana pool.
|
||||||
A:AB$ Mana | Cost$ T | Produced$ B | SpellDescription$ Add B to your mana pool.
|
A:AB$ Mana | Cost$ T | Produced$ B | SpellDescription$ Add B to your mana pool.
|
||||||
A:AB$ Mana | Cost$ T | Produced$ U | SpellDescription$ Add U to your mana pool.
|
A:AB$ Mana | Cost$ T | Produced$ U | SpellDescription$ Add U to your mana pool.
|
||||||
A:AB$ Mana | Cost$ T | Produced$ R | SpellDescription$ Add R to your mana pool.
|
A:AB$ Mana | Cost$ T | Produced$ R | SpellDescription$ Add R to your mana pool.
|
||||||
A:AB$ Mana | Cost$ T | Produced$ G | SpellDescription$ Add G to your mana pool.
|
A:AB$ Mana | Cost$ T | Produced$ G | SpellDescription$ Add G to your mana pool.
|
||||||
|
T:Mode$ Phase | Phase$ End of Turn | TriggerZones$ Battlefield | IsPresent$ Artifact.YouCtrl | PresentCompare$ EQ0 | Execute$ TrigSac | TriggerDescription$ At the beginning of the end step, if you control no artifacts, sacrifice CARDNAME.
|
||||||
|
SVar:TrigSac:AB$Sacrifice | Cost$ 0 | Defined$ Self
|
||||||
SVar:RemAIDeck:True
|
SVar:RemAIDeck:True
|
||||||
SVar:Rarity:Rare
|
SVar:Rarity:Rare
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/glimmervoid.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/glimmervoid.jpg
|
||||||
|
|||||||
@@ -1,12 +1,14 @@
|
|||||||
Name:Thran Quarry
|
Name:Thran Quarry
|
||||||
ManaCost:no cost
|
ManaCost:no cost
|
||||||
Types:Land
|
Types:Land
|
||||||
Text:At the beginning of the end step, if you control no creatures, sacrifice CARDNAME.
|
Text:no text
|
||||||
A:AB$ Mana | Cost$ T | Produced$ W | SpellDescription$ Add W to your mana pool.
|
A:AB$ Mana | Cost$ T | Produced$ W | SpellDescription$ Add W to your mana pool.
|
||||||
A:AB$ Mana | Cost$ T | Produced$ U | SpellDescription$ Add U to your mana pool.
|
A:AB$ Mana | Cost$ T | Produced$ U | SpellDescription$ Add U to your mana pool.
|
||||||
A:AB$ Mana | Cost$ T | Produced$ B | SpellDescription$ Add B to your mana pool.
|
A:AB$ Mana | Cost$ T | Produced$ B | SpellDescription$ Add B to your mana pool.
|
||||||
A:AB$ Mana | Cost$ T | Produced$ R | SpellDescription$ Add R to your mana pool.
|
A:AB$ Mana | Cost$ T | Produced$ R | SpellDescription$ Add R to your mana pool.
|
||||||
A:AB$ Mana | Cost$ T | Produced$ G | SpellDescription$ Add G to your mana pool.
|
A:AB$ Mana | Cost$ T | Produced$ G | SpellDescription$ Add G to your mana pool.
|
||||||
|
T:Mode$ Phase | Phase$ End of Turn | TriggerZones$ Battlefield | IsPresent$ Creature.YouCtrl | PresentCompare$ EQ0 | Execute$ TrigSac | TriggerDescription$ At the beginning of the end step, if you control no artifacts, sacrifice CARDNAME.
|
||||||
|
SVar:TrigSac:AB$Sacrifice | Cost$ 0 | Defined$ Self
|
||||||
SVar:RemAIDeck:True
|
SVar:RemAIDeck:True
|
||||||
SVar:Rarity:Rare
|
SVar:Rarity:Rare
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/thran_quarry.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/thran_quarry.jpg
|
||||||
|
|||||||
@@ -33,11 +33,8 @@ public class EndOfTurn implements java.io.Serializable
|
|||||||
GameActionUtil.endOfTurn_Predatory_Advantage();
|
GameActionUtil.endOfTurn_Predatory_Advantage();
|
||||||
GameActionUtil.endOfTurn_Wall_Of_Reverence();
|
GameActionUtil.endOfTurn_Wall_Of_Reverence();
|
||||||
GameActionUtil.endOfTurn_Lighthouse_Chronologist();
|
GameActionUtil.endOfTurn_Lighthouse_Chronologist();
|
||||||
GameActionUtil.endOfTurn_Thran_Quarry();
|
|
||||||
GameActionUtil.endOfTurn_Glimmervoid();
|
|
||||||
GameActionUtil.endOfTurn_Krovikan_Horror();
|
GameActionUtil.endOfTurn_Krovikan_Horror();
|
||||||
|
|
||||||
//GameActionUtil.removeExaltedEffects();
|
|
||||||
GameActionUtil.removeAttackedBlockedThisTurn();
|
GameActionUtil.removeAttackedBlockedThisTurn();
|
||||||
AllZone.GameInfo.setPreventCombatDamageThisTurn(false);
|
AllZone.GameInfo.setPreventCombatDamageThisTurn(false);
|
||||||
|
|
||||||
|
|||||||
@@ -3259,40 +3259,6 @@ public class GameActionUtil {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void endOfTurn_Thran_Quarry()
|
|
||||||
{
|
|
||||||
final Player player = AllZone.Phase.getPlayerTurn();
|
|
||||||
final Player opponent = player.getOpponent();
|
|
||||||
controlNoTypeSacrifice("Thran Quarry", "Creature", player);
|
|
||||||
controlNoTypeSacrifice("Thran Quarry", "Creature", opponent);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void endOfTurn_Glimmervoid()
|
|
||||||
{
|
|
||||||
final Player player = AllZone.Phase.getPlayerTurn();
|
|
||||||
final Player opponent = player.getOpponent();
|
|
||||||
controlNoTypeSacrifice("Glimmervoid", "Artifact", player);
|
|
||||||
controlNoTypeSacrifice("Glimmervoid", "Artifact", opponent);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void controlNoTypeSacrifice(String name, String type, Player player)
|
|
||||||
{
|
|
||||||
final PlayerZone playZone = AllZone.getZone(Constant.Zone.Battlefield, player);
|
|
||||||
CardList list = new CardList(playZone.getCards());
|
|
||||||
|
|
||||||
CardList nameList = list.getName(name);
|
|
||||||
|
|
||||||
if (nameList.size() == 0) return;
|
|
||||||
|
|
||||||
CardList typeList = list.getType(type);
|
|
||||||
|
|
||||||
if (typeList.size() == 0){
|
|
||||||
for(Card c : nameList){
|
|
||||||
AllZone.GameAction.sacrifice(c);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void endOfTurn_Krovikan_Horror()
|
public static void endOfTurn_Krovikan_Horror()
|
||||||
{
|
{
|
||||||
final Player player = AllZone.Phase.getPlayerTurn();
|
final Player player = AllZone.Phase.getPlayerTurn();
|
||||||
|
|||||||
Reference in New Issue
Block a user