- Fixed AI of AF DelayedTrigger.

- Fixed AI of Thawing Glaciers.
This commit is contained in:
jendave
2011-08-07 00:30:10 +00:00
parent 6e4fa83715
commit d5b95cfb0d
2 changed files with 6 additions and 6 deletions

View File

@@ -3,9 +3,9 @@ ManaCost:no cost
Types:Land
Text:no text
K:CARDNAME enters the battlefield tapped.
A:AB$ ChangeZone | Cost$ 1 T | Origin$ Library | Destination$ Battlefield | ChangeType$ Land.Basic | ChangeNum$ 1 | Tapped$ True | Shuffle$ True | SubAbility$ SVar=DBDelTrig | SpellDescription$ Search your library for a basic land card, put that card onto the battlefield tapped, then shuffle your library.
A:AB$ ChangeZone | Cost$ 1 T | Origin$ Library | Destination$ Battlefield | ChangeType$ Land.Basic | ChangeNum$ 1 | Tapped$ True | Shuffle$ True | SubAbility$ SVar=DBDelTrig | SpellDescription$ Search your library for a basic land card, put that card onto the battlefield tapped, then shuffle your library. Return CARDNAME to its owner's hand at the beginning of the next cleanup step.
SVar:DBDelTrig:DB$DelayedTrigger | Mode$ Phase | Phase$ Cleanup | ValidPlayer$ Each | Execute$ TrigBounce | TriggerDescription$ Return CARDNAME to its owner's hand at the beginning of the next cleanup step.
SVar:TrigBounce:AB$ChangeZone | Cost$ 0 | Origin$ Battlefield | Destination$ Hand | Defined$ Self
SVar:TrigBounce:DB$ChangeZone | Origin$ Battlefield | Destination$ Hand | Defined$ Self
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/thawing_glaciers.jpg
End

View File

@@ -25,12 +25,12 @@ public class AbilityFactory_DelayedTrigger {
@Override
public boolean chkAI_Drawback() {
return false; //To change body of implemented methods use File | Settings | File Templates.
return doChkAI_Drawback(AF,this); //To change body of implemented methods use File | Settings | File Templates.
}
@Override
public boolean doTrigger(boolean mandatory) {
return false; //To change body of implemented methods use File | Settings | File Templates.
return doTriggerAI(AF,this); //To change body of implemented methods use File | Settings | File Templates.
}
@Override
@@ -42,7 +42,7 @@ public class AbilityFactory_DelayedTrigger {
return drawback;
}
private boolean doChkAI_Drawback(final AbilityFactory AF, final SpellAbility SA)
private static boolean doChkAI_Drawback(final AbilityFactory AF, final SpellAbility SA)
{
String svarName = AF.getMapParams().get("Execute");
SpellAbility trigsa = tempCreator.getAbility(AF.getHostCard().getSVar(svarName),AF.getHostCard());
@@ -57,7 +57,7 @@ public class AbilityFactory_DelayedTrigger {
}
}
private boolean doTriggerAI(final AbilityFactory AF,final SpellAbility SA)
private static boolean doTriggerAI(final AbilityFactory AF,final SpellAbility SA)
{
String svarName = AF.getMapParams().get("Execute");
SpellAbility trigsa = tempCreator.getAbility(AF.getHostCard().getSVar(svarName),AF.getHostCard());