mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Converted High Tide and Nirkana Revenant to Triggers
- Added Bubbling Muck
This commit is contained in:
@@ -1,7 +1,10 @@
|
|||||||
Name:High Tide
|
Name:High Tide
|
||||||
ManaCost:U
|
ManaCost:U
|
||||||
Types:Instant
|
Types:Instant
|
||||||
Text:Until end of turn, whenever a player taps an Island for mana, that player adds U to his or her mana pool (in addition to the mana the land produces).
|
Text:no text
|
||||||
|
A:SP$ Effect | Cost$ U | Name$ High Tide Effect | Triggers$ IslandTrigger | SVars$ TrigMana | SpellDescription$ Until end of turn, whenever a player taps an Island for mana, that player adds U to his or her mana pool (in addition to the mana the land produces).
|
||||||
|
SVar:IslandTrigger:Mode$ TapsForMana | ValidCard$ Island | Execute$ TrigMana | TriggerDescription$ Whenever a player taps an Island for mana, that player adds U to his or her mana pool (in addition to the mana the land produces).
|
||||||
|
SVar:TrigMana:AB$Mana | Cost$ 0 | Produced$ U | Amount$ 1
|
||||||
SVar:RemAIDeck:True
|
SVar:RemAIDeck:True
|
||||||
SVar:Rarity:Common
|
SVar:Rarity:Common
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/high_tide.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/high_tide.jpg
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
Name:Nirkana Revenant
|
Name:Nirkana Revenant
|
||||||
ManaCost:4 B B
|
ManaCost:4 B B
|
||||||
Types:Creature Vampire Shade
|
Types:Creature Vampire Shade
|
||||||
Text:Whenever you tap a Swamp for mana, add 1 black mana to your mana pool (in addition to the mana the land produces).
|
Text:no text
|
||||||
PT:4/4
|
PT:4/4
|
||||||
A:AB$ Pump | Cost$ B | NumAtt$ +1 | NumDef$ +1 | SpellDescription$ Nirkana Revenant gets +1/+1 until end of turn.
|
A:AB$ Pump | Cost$ B | NumAtt$ +1 | NumDef$ +1 | SpellDescription$ CARDNAME gets +1/+1 until end of turn.
|
||||||
|
T:Mode$ TapsForMana | ValidCard$ Swamp.YouCtrl | Execute$ TrigMana | TriggerDescription$ Whenever you tap a Swamp for mana, add B to your mana pool (in addition to the mana the land produces).
|
||||||
|
SVar:TrigMana:AB$Mana | Cost$ 0 | Produced$ B | Amount$ 1
|
||||||
SVar:RemAIDeck:True
|
SVar:RemAIDeck:True
|
||||||
SVar:Rarity:Mythic
|
SVar:Rarity:Mythic
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/nirkana_revenant.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/nirkana_revenant.jpg
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ public class Phase extends MyObservable
|
|||||||
|
|
||||||
private static int GameBegins = 0;
|
private static int GameBegins = 0;
|
||||||
private static int StormCount;
|
private static int StormCount;
|
||||||
private static CardList HighTides = new CardList();
|
|
||||||
static int PlayerSpellCount;
|
static int PlayerSpellCount;
|
||||||
static int PlayerCreatureSpellCount;
|
static int PlayerCreatureSpellCount;
|
||||||
static int ComputerSpellCount;
|
static int ComputerSpellCount;
|
||||||
@@ -151,7 +150,6 @@ public class Phase extends MyObservable
|
|||||||
|
|
||||||
public void turnReset(){
|
public void turnReset(){
|
||||||
setStormCount(0);
|
setStormCount(0);
|
||||||
getHighTides().clear();
|
|
||||||
PlayerSpellCount = 0;
|
PlayerSpellCount = 0;
|
||||||
PlayerCreatureSpellCount = 0;
|
PlayerCreatureSpellCount = 0;
|
||||||
ComputerSpellCount = 0;
|
ComputerSpellCount = 0;
|
||||||
@@ -636,14 +634,6 @@ public class Phase extends MyObservable
|
|||||||
return StormCount;
|
return StormCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void setHighTides(CardList highTides) {
|
|
||||||
HighTides = highTides;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static CardList getHighTides() {
|
|
||||||
return HighTides;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void setManaDrain_BonusMana_Human(
|
public static void setManaDrain_BonusMana_Human(
|
||||||
ArrayList<Integer> manaDrain_BonusMana_Human) {
|
ArrayList<Integer> manaDrain_BonusMana_Human) {
|
||||||
ManaDrain_BonusMana_Human = manaDrain_BonusMana_Human;
|
ManaDrain_BonusMana_Human = manaDrain_BonusMana_Human;
|
||||||
|
|||||||
@@ -1111,28 +1111,6 @@ public class CardFactory_Instants {
|
|||||||
}//*************** END ************ END **************************
|
}//*************** END ************ END **************************
|
||||||
|
|
||||||
|
|
||||||
//*************** START *********** START **************************
|
|
||||||
else if(cardName.equals("High Tide")) {
|
|
||||||
SpellAbility spell = new Spell(card) {
|
|
||||||
private static final long serialVersionUID = -4997834721261916L;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean canPlayAI() {
|
|
||||||
return false;
|
|
||||||
}//canPlay()
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void resolve() {
|
|
||||||
Phase.getHighTides().add(this.getSourceCard());
|
|
||||||
}//resolve()
|
|
||||||
};//SpellAbility
|
|
||||||
|
|
||||||
// Do not remove SpellAbilities created by AbilityFactory or Keywords.
|
|
||||||
card.clearFirstSpellAbility();
|
|
||||||
card.addSpellAbility(spell);
|
|
||||||
}//*************** END ************ END **************************
|
|
||||||
|
|
||||||
|
|
||||||
//*************** START *********** START **************************
|
//*************** START *********** START **************************
|
||||||
else if(cardName.equals("Tithe")) {
|
else if(cardName.equals("Tithe")) {
|
||||||
SpellAbility spell = new Spell(card) {
|
SpellAbility spell = new Spell(card) {
|
||||||
|
|||||||
@@ -76,28 +76,7 @@ abstract public class Ability_Mana extends Ability_Activated implements java.io.
|
|||||||
// this.getActivatingPlayer().ManaPool.addManaToFloating(origProduced, getSourceCard());
|
// this.getActivatingPlayer().ManaPool.addManaToFloating(origProduced, getSourceCard());
|
||||||
AllZone.ManaPool.addManaToFloating(produced, source);
|
AllZone.ManaPool.addManaToFloating(produced, source);
|
||||||
|
|
||||||
// TODO: all of the following would be better as trigger events "tapped for mana"
|
// TODO: all of the following would be better as trigger events "tapped for mana"
|
||||||
|
|
||||||
if (source.getType().contains("Swamp")){
|
|
||||||
// If Nirkana Revenant triggers, make mana undoable
|
|
||||||
|
|
||||||
CardList nirkanas = AllZoneUtil.getPlayerCardsInPlay(getActivatingPlayer(), "Nirkana Revenant");
|
|
||||||
int size = nirkanas.size();
|
|
||||||
for(int i = 0; i < size; i++){
|
|
||||||
this.undoable = false;
|
|
||||||
AllZone.ManaPool.addManaToFloating("B", nirkanas.get(i));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (source.getType().contains("Island")){
|
|
||||||
// If High Tide triggers, make mana undoable
|
|
||||||
|
|
||||||
int size = Phase.getHighTides().size();
|
|
||||||
for(int i = 0; i < size; i++){
|
|
||||||
this.undoable = false;
|
|
||||||
AllZone.ManaPool.addManaToFloating("U", Phase.getHighTides().get(i));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if(source.getName().equals("Rainbow Vale")) {
|
if(source.getName().equals("Rainbow Vale")) {
|
||||||
this.undoable = false;
|
this.undoable = false;
|
||||||
source.addExtrinsicKeyword("An opponent gains control of CARDNAME at the beginning of the next end step.");
|
source.addExtrinsicKeyword("An opponent gains control of CARDNAME at the beginning of the next end step.");
|
||||||
|
|||||||
Reference in New Issue
Block a user