added Elven Warhounds and Elvish Berserker
parent
912ba31793
commit
d51e2e64ea
|
@ -13178,3 +13178,27 @@ converted=2
|
||||||
cost={1}{R}
|
cost={1}{R}
|
||||||
pt=1/1
|
pt=1/1
|
||||||
timing=main
|
timing=main
|
||||||
|
|
||||||
|
>Elven Warhounds
|
||||||
|
image=http://magiccards.info/scans/en/tp/119.jpg
|
||||||
|
value=3
|
||||||
|
rarity=R
|
||||||
|
type=Creature
|
||||||
|
subtype=Hound
|
||||||
|
color=g
|
||||||
|
converted=4
|
||||||
|
cost={3}{G}
|
||||||
|
pt=2/2
|
||||||
|
timing=main
|
||||||
|
|
||||||
|
>Elvish Berserker
|
||||||
|
image=http://magiccards.info/scans/en/10e/260.jpg
|
||||||
|
value=2
|
||||||
|
rarity=C
|
||||||
|
type=Creature
|
||||||
|
subtype=Elf,Berserker
|
||||||
|
color=g
|
||||||
|
converted=1
|
||||||
|
cost={G}
|
||||||
|
pt=1/1
|
||||||
|
timing=main
|
||||||
|
|
|
@ -0,0 +1,41 @@
|
||||||
|
package magic.card;
|
||||||
|
|
||||||
|
import magic.model.MagicGame;
|
||||||
|
import magic.model.MagicLocationType;
|
||||||
|
import magic.model.MagicPermanent;
|
||||||
|
import magic.model.MagicPermanentList;
|
||||||
|
import magic.model.action.MagicRemoveFromPlayAction;
|
||||||
|
import magic.model.event.MagicEvent;
|
||||||
|
import magic.model.trigger.MagicWhenBecomesBlockedTrigger;
|
||||||
|
|
||||||
|
public class Elven_Warhounds {
|
||||||
|
public static final MagicWhenBecomesBlockedTrigger T = new MagicWhenBecomesBlockedTrigger() {
|
||||||
|
@Override
|
||||||
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent creature) {
|
||||||
|
if (creature == permanent) {
|
||||||
|
final MagicPermanentList plist = new MagicPermanentList(permanent.getBlockingCreatures());
|
||||||
|
return new MagicEvent(
|
||||||
|
permanent,
|
||||||
|
permanent.getController(),
|
||||||
|
new Object[]{plist},
|
||||||
|
this,
|
||||||
|
plist.size() > 1 ?
|
||||||
|
"Put blocking creatures on top of their owner's library." :
|
||||||
|
"Put blocking creature on top of its owner's library.");
|
||||||
|
}
|
||||||
|
return MagicEvent.NONE;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void executeEvent(
|
||||||
|
final MagicGame game,
|
||||||
|
final MagicEvent event,
|
||||||
|
final Object data[],
|
||||||
|
final Object[] choiceResults) {
|
||||||
|
final MagicPermanentList plist = (MagicPermanentList)data[0];
|
||||||
|
for (final MagicPermanent blocker : plist) {
|
||||||
|
game.doAction(new MagicRemoveFromPlayAction(blocker,MagicLocationType.TopOfOwnersLibrary));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
|
@ -0,0 +1,37 @@
|
||||||
|
package magic.card;
|
||||||
|
|
||||||
|
import magic.model.MagicGame;
|
||||||
|
import magic.model.MagicPermanent;
|
||||||
|
import magic.model.action.MagicChangeTurnPTAction;
|
||||||
|
import magic.model.event.MagicEvent;
|
||||||
|
import magic.model.trigger.MagicWhenBecomesBlockedTrigger;
|
||||||
|
|
||||||
|
public class Elvish_Berserker {
|
||||||
|
public static final MagicWhenBecomesBlockedTrigger T = new MagicWhenBecomesBlockedTrigger() {
|
||||||
|
@Override
|
||||||
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent data) {
|
||||||
|
if (data == permanent) {
|
||||||
|
final int amount = permanent.getBlockingCreatures().size();
|
||||||
|
return new MagicEvent(
|
||||||
|
permanent,
|
||||||
|
permanent.getController(),
|
||||||
|
new Object[]{permanent,amount},
|
||||||
|
this,
|
||||||
|
permanent + " gets +" + amount + "/+" + amount + " until end of turn.");
|
||||||
|
}
|
||||||
|
return MagicEvent.NONE;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void executeEvent(
|
||||||
|
final MagicGame game,
|
||||||
|
final MagicEvent event,
|
||||||
|
final Object data[],
|
||||||
|
final Object[] choiceResults) {
|
||||||
|
game.doAction(new MagicChangeTurnPTAction(
|
||||||
|
(MagicPermanent)data[0],
|
||||||
|
(Integer)data[1],
|
||||||
|
(Integer)data[1]));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue