added Auriok Sunchaser and Blade-Tribe Berserkers

master
beholder 2011-10-03 08:26:26 +02:00
parent af34c5c968
commit 1f2cfdd527
3 changed files with 84 additions and 0 deletions

View File

@ -11392,3 +11392,27 @@ converted=2
cost={W}{W} cost={W}{W}
pt=2/2 pt=2/2
timing=main timing=main
>Auriok Sunchaser
image=http://magiccards.info/scans/en/som/4.jpg
value=1
rarity=C
type=Creature
subtype=Human,Soldier
color=w
converted=2
cost={1}{W}
pt=1/1
timing=main
>Blade-Tribe Berserkers
image=http://magiccards.info/scans/en/som/84.jpg
value=3
rarity=C
type=Creature
subtype=Human,Berserker
color=r
converted=4
cost={3}{R}
pt=3/3
timing=main

View File

@ -0,0 +1,29 @@
package magic.card;
import magic.model.MagicGame;
import magic.model.MagicPermanent;
import magic.model.MagicAbility;
import magic.model.MagicPowerToughness;
import magic.model.MagicType;
import magic.model.mstatic.MagicLayer;
import magic.model.mstatic.MagicStatic;
public class Auriok_Sunchaser {
public static final MagicStatic S1 = new MagicStatic(MagicLayer.Ability) {
@Override
public long getAbilityFlags(final MagicGame game,final MagicPermanent permanent,final long flags) {
return permanent.getController().getNrOfPermanentsWithType(MagicType.Artifact,game) >= 3 ?
flags | MagicAbility.Flying.getMask() :
flags;
}
};
public static final MagicStatic S2 = new MagicStatic(MagicLayer.ModPT) {
@Override
public void getPowerToughness(final MagicGame game,final MagicPermanent permanent,final MagicPowerToughness pt) {
if (permanent.getController().getNrOfPermanentsWithType(MagicType.Artifact,game) >= 3) {
pt.add(2,2);
}
}
};
}

View File

@ -0,0 +1,31 @@
package magic.card;
import magic.model.MagicAbility;
import magic.model.MagicGame;
import magic.model.MagicPlayer;
import magic.model.MagicPermanent;
import magic.model.MagicType;
import magic.model.action.MagicChangeTurnPTAction;
import magic.model.action.MagicSetAbilityAction;
import magic.model.event.MagicEvent;
import magic.model.trigger.MagicWhenComesIntoPlayTrigger;
public class Blade_Tribe_Berserkers {
public static final MagicWhenComesIntoPlayTrigger T = new MagicWhenComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPlayer player) {
if (player.getNrOfPermanentsWithType(MagicType.Artifact,game) >= 3) {
game.doAction(new MagicChangeTurnPTAction(permanent,3,3));
game.doAction(new MagicSetAbilityAction(permanent,MagicAbility.Haste));
}
return MagicEvent.NONE;
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object data[],
final Object[] choiceResults) {
}
};
}