- Converted Sleeper Agent to script.

This commit is contained in:
Sloth
2011-11-16 07:46:39 +00:00
parent 4e5a67fa29
commit 7295c5fb3c
2 changed files with 5 additions and 33 deletions

View File

@@ -1,8 +1,10 @@
Name:Sleeper Agent
ManaCost:B
Types:Creature Minion
Text:When CARDNAME enters the battlefield, target opponent gains control of it.
Text:
PT:3/3
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigGainControl | TriggerDescription$ When CARDNAME enters the battlefield, target opponent gains control of it.
SVar:TrigGainControl:AB$GainControl | Cost$ 0 | Defined$ Self | ValidTgts$ Opponent | TgtPrompt$ Select target opponent
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigDamage | TriggerDescription$ At the beginning of your upkeep, CARDNAME deals 2 damage to you.
SVar:TrigDamage:DB$ DealDamage | Defined$ You | NumDmg$ 2
SVar:RemAIDeck:True

View File

@@ -436,7 +436,7 @@ public class CardFactoryCreatures {
} // *************** END ************ END **************************
// *************** START *********** START **************************
else if (cardName.equals("Sleeper Agent")) {
/*else if (cardName.equals("Sleeper Agent")) {
final SpellAbility ability = new Ability(card, "0") {
@Override
public void resolve() {
@@ -462,7 +462,7 @@ public class CardFactoryCreatures {
} // execute()
};
card.addComesIntoPlayCommand(intoPlay);
} // *************** END ************ END **************************
}*/ // *************** END ************ END **************************
// *************** START *********** START **************************
else if (cardName.equals("Phylactery Lich")) {
@@ -2697,36 +2697,6 @@ public class CardFactoryCreatures {
ability.setStackDescription(sbStack.toString());
} // *************** END ************ END **************************
// *************** START *********** START **************************
/*else if (cardName.equals("Ixidron")) {
final Trigger tfdTrigger = forge.card.trigger.TriggerHandler
.parseTrigger(
"Mode$ ChangesZone | Destination$ Battlefield | ValidCard$ Card.Self | Static$ True | TriggerDescription$ As CARDNAME enters the battlefield, turn all other nontoken creatures face down. (They're 2/2 creatures.)",
card, true);
final SpellAbility triggeredAbility = new Ability(card, "0") {
@Override
public void resolve() {
CardList creatsInPlay = AllZoneUtil.getCreaturesInPlay();
creatsInPlay = creatsInPlay.filter(new CardListFilter() {
@Override
public boolean addCard(final Card c) {
return !c.isToken() && !c.equals(card);
}
});
for (final Card c : creatsInPlay) {
c.turnFaceDown();
}
}
};
tfdTrigger.setOverridingAbility(triggeredAbility);
card.addTrigger(tfdTrigger);
}*/ // *************** END ************ END **************************
// ***************************************************
// end of card specific code
// ***************************************************