added Bonebreaker Giant and Brindle Boar
parent
cd59828bd3
commit
fbd3b35a6e
|
@ -243,6 +243,32 @@ power=1
|
|||
toughness=1
|
||||
timing=fmain
|
||||
|
||||
>Bonebreaker Giant
|
||||
image=http://magiccards.info/scans/en/m12/123.jpg
|
||||
value=4
|
||||
rarity=C
|
||||
type=Creature
|
||||
subtype=Giant
|
||||
color=r
|
||||
converted=5
|
||||
cost={4}{R}
|
||||
power=4
|
||||
toughness=4
|
||||
timing=main
|
||||
|
||||
>Brindle Boar
|
||||
image=http://magiccards.info/scans/en/m12/167.jpg
|
||||
value=3
|
||||
rarity=C
|
||||
type=Creature
|
||||
subtype=Boar
|
||||
color=g
|
||||
converted=3
|
||||
cost={2}{G}
|
||||
power=2
|
||||
toughness=2
|
||||
timing=main
|
||||
|
||||
>Cunning Sparkmage
|
||||
image=http://magiccards.info/scans/en/wwk/79.jpg
|
||||
value=3
|
||||
|
|
|
@ -0,0 +1,35 @@
|
|||
package magic.card;
|
||||
|
||||
import magic.model.*;
|
||||
import magic.model.action.MagicChangeLifeAction;
|
||||
import magic.model.event.*;
|
||||
|
||||
public class Brindle_Boar {
|
||||
public static final MagicPermanentActivation A = new MagicPermanentActivation(
|
||||
null,
|
||||
new MagicActivationHints(MagicTiming.Removal),
|
||||
"Life+4") {
|
||||
@Override
|
||||
public MagicEvent[] getCostEvent(final MagicSource source) {
|
||||
return new MagicEvent[]{new MagicSacrificeEvent((MagicPermanent)source)};
|
||||
}
|
||||
@Override
|
||||
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
|
||||
final MagicPlayer player = source.getController();
|
||||
return new MagicEvent(
|
||||
source,
|
||||
player,
|
||||
new Object[]{player},
|
||||
this,
|
||||
player + " gains 4 life.");
|
||||
}
|
||||
@Override
|
||||
public void executeEvent(
|
||||
final MagicGame game,
|
||||
final MagicEvent event,
|
||||
final Object[] data,
|
||||
final Object[] choiceResults) {
|
||||
game.doAction(new MagicChangeLifeAction((MagicPlayer)data[0],4));
|
||||
}
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue