added Howling Mine
parent
92719d727c
commit
9e41da76eb
|
@ -5106,6 +5106,15 @@ converted=7
|
|||
cost={4}{W/B}{W/B}{W/B}
|
||||
timing=enchantment
|
||||
|
||||
>Howling Mine
|
||||
image=http://magiccards.info/scans/en/cmd/251.jpg
|
||||
value=2
|
||||
rarity=R
|
||||
type=Artifact
|
||||
converted=2
|
||||
cost={2}
|
||||
timing=main
|
||||
|
||||
>Seal of Fire
|
||||
image=http://magiccards.info/scans/en/di/71.jpg
|
||||
value=2
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
package magic.card;
|
||||
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.action.MagicDrawAction;
|
||||
import magic.model.event.MagicEvent;
|
||||
import magic.model.trigger.MagicAtUpkeepTrigger;
|
||||
|
||||
public class Howling_Mine {
|
||||
public static final MagicAtUpkeepTrigger T = new MagicAtUpkeepTrigger() {
|
||||
@Override
|
||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer player) {
|
||||
if (!permanent.isTapped()) {
|
||||
return new MagicEvent(
|
||||
permanent,
|
||||
player,
|
||||
new Object[]{player},
|
||||
this,
|
||||
player + " draws a card.");
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void executeEvent(final MagicGame game,final MagicEvent event,final Object data[],final Object[] choiceResults) {
|
||||
final MagicPlayer player = (MagicPlayer)data[0];
|
||||
game.doAction(new MagicDrawAction(player,1));
|
||||
}
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue