convert Slith Strider to triggers

This commit is contained in:
jendave
2011-08-06 19:00:35 +00:00
parent dda8f40f8b
commit eb514ffbb0
3 changed files with 8 additions and 32 deletions

View File

@@ -1,8 +1,12 @@
Name:Slith Strider Name:Slith Strider
ManaCost:1 U U ManaCost:1 U U
Types:Creature Slith Types:Creature Slith
Text:Whenever Slith Strider becomes blocked, draw a card.\r\nWhenever Slith Strider deals combat damage to a player, put a +1/+1 counter on it. Text:no text
PT:1/1 PT:1/1
T:Mode$ AttackerBlocked | ValidCard$ Card.Self | Execute$ TrigDraw | TriggerDescription$ Whenever CARDNAME becomes blocked, draw a card.
SVar:TrigDraw:AB$Draw | Cost$ 0 | Defined$ You | NumCards$ 1
T:Mode$ DamageDone | ValidSource$ Card.Self | ValidTarget$ Opponent | CombatDamage$ True | Execute$ TrigPutCounter | TriggerZones$ Battlefield | TriggerDescription$ Whenever CARDNAME deals combat damage to a player, put a +1/+1 counter on it.
SVar:TrigPutCounter:AB$PutCounter | Cost$ 0 | Defined$ Self | CounterType$ P1P1 | CounterNum$ 1
SVar:Rarity:Uncommon SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/slith_strider.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/slith_strider.jpg
SetInfo:MRD|Uncommon|http://magiccards.info/scans/en/mi/50.jpg SetInfo:MRD|Uncommon|http://magiccards.info/scans/en/mi/50.jpg

View File

@@ -2370,13 +2370,7 @@ public class CombatUtil {
}//Whenever CARDNAME becomes blocked by a creature, destroy that creature at end of combat }//Whenever CARDNAME becomes blocked by a creature, destroy that creature at end of combat
if (a.getName().equals("Slith Strider") && !a.getCreatureGotBlockedThisCombat()) { if (a.getName().equals("Robber Fly") && !a.getCreatureGotBlockedThisCombat()) {
Player player = a.getController();
player.drawCard();
/*} else if(a.getName().equals("Corrupt Official") && !a.getCreatureGotBlockedThisCombat()) {
Player opp = b.getController();
opp.discardRandom(a.getSpellAbility()[0]);*/
} else if (a.getName().equals("Robber Fly") && !a.getCreatureGotBlockedThisCombat()) {
Player opp = b.getController(); Player opp = b.getController();
PlayerZone hand = AllZone.getZone(Constant.Zone.Hand, opp); PlayerZone hand = AllZone.getZone(Constant.Zone.Hand, opp);
CardList list = new CardList(hand.getCards()); CardList list = new CardList(hand.getCards());

View File

@@ -4424,7 +4424,7 @@ public class GameActionUtil {
else if(c.getName().equals("Spawnwrithe")) playerCombatDamage_Spawnwrithe(c); else if(c.getName().equals("Spawnwrithe")) playerCombatDamage_Spawnwrithe(c);
else if(c.getName().equals("Glint-Eye Nephilim") || c.getName().equals("Cold-Eyed Selkie")) playerCombatDamage_Glint_Eye_Nephilim(c); else if(c.getName().equals("Glint-Eye Nephilim") || c.getName().equals("Cold-Eyed Selkie")) playerCombatDamage_Glint_Eye_Nephilim(c);
else if(c.getName().equals("Hystrodon") && !c.isFaceDown()) playerCombatDamage_Hystrodon(c); else if(c.getName().equals("Hystrodon") && !c.isFaceDown()) playerCombatDamage_Hystrodon(c);
else if(c.getName().equals("Slith Strider") || c.getName().equals("Slith Ascendant") else if(c.getName().equals("Slith Ascendant")
|| c.getName().equals("Slith Bloodletter") || c.getName().equals("Slith Firewalker") || c.getName().equals("Slith Bloodletter") || c.getName().equals("Slith Firewalker")
|| c.getName().equals("Slith Predator")) playerCombatDamage_Slith(c); || c.getName().equals("Slith Predator")) playerCombatDamage_Slith(c);
else if(c.getName().equals("Rootwater Thief")) playerCombatDamage_Rootwater_Thief(c); else if(c.getName().equals("Rootwater Thief")) playerCombatDamage_Rootwater_Thief(c);
@@ -4912,28 +4912,6 @@ public class GameActionUtil {
AllZone.Stack.add(ability2); AllZone.Stack.add(ability2);
} }
private static void playerCombatDamage_Nicol_Bolas(Card c) {
final Player[] opp = new Player[1];
final Card crd = c;
if(c.getNetAttack() > 0) {
Ability ability = new Ability(c, "0") {
@Override
public void resolve() {
opp[0] = crd.getController().getOpponent();
opp[0].discardHand(this);
}
};
opp[0] = c.getController().getOpponent();
StringBuilder sb = new StringBuilder();
sb.append(c.getName()).append(" - ").append(opp[0]).append(" discards his or her hand.");
ability.setStackDescription(sb.toString());
AllZone.Stack.add(ability);
}
}//nicol bolas
private static void playerCombatDamage_Augury_Adept(Card c) { private static void playerCombatDamage_Augury_Adept(Card c) {
final Player[] player = new Player[1]; final Player[] player = new Player[1];
final Card crd = c; final Card crd = c;