added Arctic Nishoba and Arctic Wolves

master
beholder 2011-10-22 13:46:01 +02:00
parent d385f13138
commit 4013922db6
4 changed files with 105 additions and 0 deletions

View File

@ -16467,3 +16467,30 @@ cost={2}{B}{B}
pt=2/2 pt=2/2
ability=fear ability=fear
timing=main timing=main
>Arctic Nishoba
url=http://magiccards.info/cs/en/102.html
image=http://magiccards.info/scans/en/cs/102.jpg
value=5
rarity=U
type=Creature
subtype=Cat,Warrior
color=g
converted=6
cost={5}{G}
pt=6/6
ability=trample
timing=main
>Arctic Wolves
url=http://magiccards.info/wl/en/60.html
image=http://magiccards.info/scans/en/wl/60.jpg
value=5
rarity=U
type=Creature
subtype=Wolf
color=g
converted=5
cost={3}{G}{G}
pt=4/5
timing=main

View File

@ -0,0 +1,43 @@
package magic.card;
import magic.model.MagicCounterType;
import magic.model.MagicGame;
import magic.model.MagicPlayer;
import magic.model.MagicPermanent;
import magic.model.action.MagicChangeLifeAction;
import magic.model.event.MagicEvent;
import magic.model.trigger.MagicCumulativeUpkeepTrigger;
import magic.model.trigger.MagicWhenLeavesPlayTrigger;
public class Arctic_Nishoba {
public static final MagicCumulativeUpkeepTrigger T1 = new MagicCumulativeUpkeepTrigger("{G/W}");
public static final MagicWhenLeavesPlayTrigger T2 = new MagicWhenLeavesPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent data) {
if (permanent == data) {
final MagicPlayer player = permanent.getController();
final int amount = permanent.getCounters(MagicCounterType.Charge) * 2;
if (amount > 0) {
return new MagicEvent(
permanent,
player,
new Object[]{player,amount},
this,
player + " gains " + amount + " life.");
}
}
return MagicEvent.NONE;
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object data[],
final Object[] choiceResults) {
game.doAction(new MagicChangeLifeAction(
(MagicPlayer)data[0],
(Integer)data[1]));
}
};
}

View File

@ -0,0 +1,33 @@
package magic.card;
import magic.model.MagicGame;
import magic.model.MagicPlayer;
import magic.model.MagicPermanent;
import magic.model.action.MagicDrawAction;
import magic.model.event.MagicEvent;
import magic.model.trigger.MagicCumulativeUpkeepTrigger;
import magic.model.trigger.MagicWhenComesIntoPlayTrigger;
public class Arctic_Wolves {
public static final MagicCumulativeUpkeepTrigger T1 = new MagicCumulativeUpkeepTrigger("{2}");
public static final MagicWhenComesIntoPlayTrigger T2 = new MagicWhenComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer player) {
return new MagicEvent(
permanent,
player,
new Object[]{player},
this,
player + " draws a card.");
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object data[],
final Object[] choiceResults) {
game.doAction(new MagicDrawAction((MagicPlayer)data[0],1));
}
};
}

View File

@ -18,12 +18,14 @@ public class Revered_Unicorn {
if (permanent == data) { if (permanent == data) {
final MagicPlayer player = permanent.getController(); final MagicPlayer player = permanent.getController();
final int amount = permanent.getCounters(MagicCounterType.Charge); final int amount = permanent.getCounters(MagicCounterType.Charge);
if (amount > 0) {
return new MagicEvent( return new MagicEvent(
permanent, permanent,
player, player,
new Object[]{player,amount}, new Object[]{player,amount},
this, this,
player + " gains " + amount + " life."); player + " gains " + amount + " life.");
}
} }
return MagicEvent.NONE; return MagicEvent.NONE;
} }