added Samite Healer and Scion of the Wild
parent
cb770d2c63
commit
9668d56a31
|
@ -1,3 +1,26 @@
|
|||
>Scion of the Wild
|
||||
image=http://magiccards.info/scans/en/10e/295.jpg
|
||||
value=3
|
||||
rarity=R
|
||||
type=Creature
|
||||
subtype=Avatar
|
||||
color=g
|
||||
converted=3
|
||||
cost={1}{G}{G}
|
||||
timing=smain
|
||||
|
||||
>Samite Healer
|
||||
image=http://magiccards.info/scans/en/10e/38.jpg
|
||||
value=2
|
||||
rarity=C
|
||||
type=Creature
|
||||
subtype=Human,Cleric
|
||||
color=w
|
||||
converted=2
|
||||
cost={1}{W}
|
||||
pt=1/1
|
||||
timing=main
|
||||
|
||||
>Rock Badger
|
||||
image=http://magiccards.info/scans/en/10e/226.jpg
|
||||
value=3
|
||||
|
|
|
@ -0,0 +1,51 @@
|
|||
package magic.card;
|
||||
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPayedCost;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicSource;
|
||||
import magic.model.action.MagicPreventDamageAction;
|
||||
import magic.model.action.MagicTargetAction;
|
||||
import magic.model.choice.MagicTargetChoice;
|
||||
import magic.model.condition.MagicCondition;
|
||||
import magic.model.event.MagicActivationHints;
|
||||
import magic.model.event.MagicEvent;
|
||||
import magic.model.event.MagicPermanentActivation;
|
||||
import magic.model.event.MagicTapEvent;
|
||||
import magic.model.event.MagicTiming;
|
||||
import magic.model.target.MagicPreventTargetPicker;
|
||||
import magic.model.target.MagicTarget;
|
||||
|
||||
public class Samite_Healer {
|
||||
public static final MagicPermanentActivation A = new MagicPermanentActivation(
|
||||
new MagicCondition[]{MagicCondition.CAN_TAP_CONDITION},
|
||||
new MagicActivationHints(MagicTiming.Pump),
|
||||
"Prevent") {
|
||||
|
||||
@Override
|
||||
public MagicEvent[] getCostEvent(final MagicSource source) {
|
||||
return new MagicEvent[]{new MagicTapEvent((MagicPermanent)source)};
|
||||
}
|
||||
|
||||
@Override
|
||||
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
|
||||
return new MagicEvent(
|
||||
source,
|
||||
source.getController(),
|
||||
MagicTargetChoice.POS_TARGET_CREATURE_OR_PLAYER,
|
||||
MagicPreventTargetPicker.getInstance(),
|
||||
MagicEvent.NO_DATA,
|
||||
this,
|
||||
"Prevent the next 1 damage that would be dealt to target creature or player$ this turn.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void executeEvent(final MagicGame game,final MagicEvent event,final Object[] data,final Object[] choiceResults) {
|
||||
event.processTarget(game,choiceResults,0,new MagicTargetAction() {
|
||||
public void doAction(final MagicTarget target) {
|
||||
game.doAction(new MagicPreventDamageAction(target,1));
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package magic.card;
|
||||
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicPowerToughness;
|
||||
import magic.model.target.MagicTargetFilter;
|
||||
import magic.model.mstatic.MagicCDA;
|
||||
|
||||
public class Scion_of_the_Wild {
|
||||
public static final MagicCDA CDA = new MagicCDA() {
|
||||
@Override
|
||||
public void getPowerToughness(final MagicGame game,final MagicPlayer player,final MagicPowerToughness pt) {
|
||||
final int size = game.filterTargets(player,MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL).size();
|
||||
pt.set(size, size);
|
||||
}
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue