mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
*Realized there was a way to do triggering on cycling properly.
*Updated to triggers Angelic Chorus
This commit is contained in:
@@ -2,7 +2,9 @@ Name:Angelic Chorus
|
||||
ManaCost:3 W W
|
||||
Types:Enchantment
|
||||
Text:no text
|
||||
K:WheneverKeyword:EntersBattleField:Type/Creature:Play:ModifyLife/Toughness:ControllingPlayer_Self:ASAP:No_Condition:Initiator - OwnedByController:Whenever a creature enters the battlefield under your control, you gain life equal to its toughness.
|
||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Creature.YouCtrl | TriggerZones$ Battlefield | Execute$ TrigGainLife | TriggerDescription$ Whenever a creature enters the battlefield under your control, you gain life equal to its toughness.
|
||||
SVar:TrigGainLife:AB$GainLife | Cost$ 0 | Defined$ You | LifeAmount$ X
|
||||
SVar:X:Triggered$CardToughness
|
||||
SVar:Rarity:Rare
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/angelic_chorus.jpg
|
||||
SetInfo:USG|Rare|http://magiccards.info/scans/en/us/3.jpg
|
||||
|
||||
@@ -1442,11 +1442,6 @@ public class Card extends MyObservable {
|
||||
public void cycle() {
|
||||
for(Command var:cycleCommandList)
|
||||
var.execute();
|
||||
|
||||
//Run triggers
|
||||
HashMap<String,Object> runParams = new HashMap<String,Object>();
|
||||
runParams.put("Card", this);
|
||||
AllZone.TriggerHandler.runTrigger("Cycled", runParams);
|
||||
}
|
||||
|
||||
public void setSickness(boolean b) {
|
||||
|
||||
@@ -387,6 +387,12 @@ public class MagicStack extends MyObservable {
|
||||
{
|
||||
AllZone.TriggerHandler.runTrigger("AbilityCast", runParams);
|
||||
}
|
||||
if(sp.isCycling())
|
||||
{
|
||||
runParams.clear();
|
||||
runParams.put("Card", sp.getSourceCard());
|
||||
AllZone.TriggerHandler.runTrigger("Cycled", runParams);
|
||||
}
|
||||
}
|
||||
|
||||
if(sp instanceof Spell_Permanent && sp.getSourceCard().getName().equals("Mana Vortex")) {
|
||||
|
||||
Reference in New Issue
Block a user