mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
convert Champion's Drake to stPumpSelf
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
Name:Champion's Drake
|
||||
ManaCost:1 U
|
||||
Types:Creature Drake
|
||||
Text:Champion's Drake gets +3/+3 as long as you control a creature with three or more level counters on it.
|
||||
Text:no text
|
||||
PT:1/1
|
||||
K:Flying
|
||||
K:stPumpSelf:Permanent:3/3:isPresent Creature.countersGE3LEVEL+YouCtrl:CARDNAME gets +3/+3 as long as you control a creature with three or more level counters on it.
|
||||
SVar:Rarity:Common
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/champions_drake.jpg
|
||||
SetInfo:ROE|Common|http://magiccards.info/scans/en/roe/56.jpg
|
||||
|
||||
@@ -14043,36 +14043,6 @@ public class GameActionUtil {
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
public static Command Champions_Drake = new Command() {
|
||||
private static final long serialVersionUID = 8076177362922156784L;
|
||||
|
||||
public void execute() {
|
||||
CardList list = AllZoneUtil.getCardsInPlay("Champion's Drake");
|
||||
|
||||
for(int i = 0; i < list.size(); i++) {
|
||||
Card c = list.get(i);
|
||||
if(hasThreeLevels(c)) {
|
||||
c.setBaseAttack(4);
|
||||
c.setBaseDefense(4);
|
||||
} else {
|
||||
c.setBaseAttack(1);
|
||||
c.setBaseDefense(1);
|
||||
}
|
||||
}
|
||||
}// execute()
|
||||
|
||||
private boolean hasThreeLevels(Card c) {
|
||||
CardList levels = AllZoneUtil.getPlayerCardsInPlay(c.getController());
|
||||
levels = levels.filter(new CardListFilter() {
|
||||
public boolean addCard(Card c) {
|
||||
return c.isCreature() && c.getCounters(Counters.LEVEL) >= 3;
|
||||
}
|
||||
});
|
||||
return levels.size() > 0;
|
||||
}
|
||||
};
|
||||
|
||||
public static Command Liu_Bei = new Command() {
|
||||
|
||||
private static final long serialVersionUID = 4235093010715735727L;
|
||||
@@ -15985,7 +15955,6 @@ public class GameActionUtil {
|
||||
|
||||
//commands.put("Cantivore", Cantivore);
|
||||
commands.put("Caravan_Escort", Caravan_Escort);
|
||||
commands.put("Champions_Drake", Champions_Drake);
|
||||
commands.put("Coat_of_Arms", Coat_of_Arms);
|
||||
//commands.put("Cognivore", Cognivore);
|
||||
commands.put("Conspiracy", Conspiracy);
|
||||
|
||||
@@ -32,7 +32,6 @@ public class StaticEffects
|
||||
|
||||
//cardToEffectsList.put("Cantivore", new String[] {"Cantivore"});
|
||||
cardToEffectsList.put("Caravan Escort", new String[] {"Caravan_Escort"});
|
||||
cardToEffectsList.put("Champion's Drake", new String[] {"Champions_Drake"});
|
||||
cardToEffectsList.put("Coat of Arms", new String[] {"Coat_of_Arms"});
|
||||
//cardToEffectsList.put("Cognivore", new String[] {"Cognivore"});
|
||||
cardToEffectsList.put("Conspiracy", new String[] {"Conspiracy"});
|
||||
|
||||
Reference in New Issue
Block a user