added Hideous Visage and Kite Shield

master
beholder 2011-08-28 08:48:13 +02:00
parent 9c40d01e2b
commit 567a7fd5f1
2 changed files with 64 additions and 0 deletions

View File

@ -3122,6 +3122,16 @@ converted=3
cost={1}{B}{B}
timing=removal
>Hideous Visage
image=http://magiccards.info/scans/en/m12/100.jpg
value=3
rarity=C
type=Sorcery
color=b
converted=3
cost={2}{B}
timing=pump
>Spiritmonger
image=http://magiccards.info/scans/en/ap/121.jpg
value=5
@ -4793,6 +4803,19 @@ power=2
toughness=1
timing=enchantment
>Kite Shield
image=http://magiccards.info/scans/en/m12/210.jpg
value=2
rarity=C
type=Artifact
subtype=Equipment
converted=1
cost={0}
equip={3}
power=0
toughness=3
timing=equipment
>Sword of Light and Shadow
image=http://magiccards.info/scans/en/ds/149.jpg
value=5

View File

@ -0,0 +1,41 @@
package magic.card;
import magic.model.*;
import magic.model.action.MagicMoveCardAction;
import magic.model.action.MagicSetAbilityAction;
import magic.model.event.MagicEvent;
import magic.model.event.MagicSpellCardEvent;
import magic.model.stack.MagicCardOnStack;
import magic.model.target.MagicTarget;
import magic.model.target.MagicTargetFilter;
import java.util.Collection;
public class Hideous_Visage {
public static final MagicSpellCardEvent S = new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
final MagicPlayer player = cardOnStack.getController();
return new MagicEvent(
cardOnStack.getCard(),
player,
new Object[]{cardOnStack,player},
this,
"Creatures you control gain intimidate until end of turn.");
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object[] data,
final Object[] choiceResults) {
game.doAction(new MagicMoveCardAction((MagicCardOnStack)data[0]));
final Collection<MagicTarget> targets =
game.filterTargets((MagicPlayer)data[1],MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL);
for (final MagicTarget target : targets) {
game.doAction(new MagicSetAbilityAction((MagicPermanent)target,MagicAbility.Intimidate));
}
}
};
}