added Kamahl, Pit Fighter and Kavu Climber
parent
3dd08646fb
commit
13edecb906
|
@ -1,3 +1,28 @@
|
|||
>Kavu Climber
|
||||
image=http://magiccards.info/scans/en/10e/273.jpg
|
||||
value=3
|
||||
rarity=C
|
||||
type=Creature
|
||||
subtype=Kavu
|
||||
color=g
|
||||
converted=5
|
||||
cost={3}{G}{G}
|
||||
pt=3/3
|
||||
timing=main
|
||||
|
||||
>Kamahl, Pit Fighter
|
||||
image=http://magiccards.info/scans/en/10e/214.jpg
|
||||
value=4
|
||||
rarity=R
|
||||
type=Legendary,Creature
|
||||
subtype=Human,Barbarian
|
||||
color=r
|
||||
converted=6
|
||||
cost={4}{R}{R}
|
||||
pt=6/1
|
||||
ability=haste
|
||||
timing=fmain
|
||||
|
||||
>Icatian Priest
|
||||
image=http://magiccards.info/scans/en/dvd/2.jpg
|
||||
value=1
|
||||
|
|
|
@ -0,0 +1,54 @@
|
|||
package magic.card;
|
||||
|
||||
import magic.model.MagicDamage;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPayedCost;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicSource;
|
||||
import magic.model.action.MagicDealDamageAction;
|
||||
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.MagicDamageTargetPicker;
|
||||
import magic.model.target.MagicTarget;
|
||||
|
||||
public class Kamahl__Pit_Fighter {
|
||||
public static final MagicPermanentActivation A = new MagicPermanentActivation(
|
||||
new MagicCondition[]{MagicCondition.CAN_TAP_CONDITION},
|
||||
new MagicActivationHints(MagicTiming.Removal),
|
||||
"Damage") {
|
||||
@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.NEG_TARGET_CREATURE_OR_PLAYER,
|
||||
new MagicDamageTargetPicker(3),
|
||||
new Object[]{source},
|
||||
this,
|
||||
source + " deals 3 damage to target creature or player$.");
|
||||
}
|
||||
@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) {
|
||||
final MagicDamage damage = new MagicDamage((MagicPermanent)data[0],target,3,false);
|
||||
game.doAction(new MagicDealDamageAction(damage));
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
|
@ -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.MagicWhenComesIntoPlayTrigger;
|
||||
|
||||
|
||||
public class Kavu_Climber {
|
||||
public static final MagicWhenComesIntoPlayTrigger T = 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));
|
||||
}
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue