added Alley Grifters. added static field to Imperious Perfect

master
beholder 2011-10-09 06:58:55 +02:00
parent 1f291161c1
commit a9c7b81e38
3 changed files with 51 additions and 0 deletions

View File

@ -12953,3 +12953,15 @@ converted=4
cost={2}{G}{G}
pt=2/4
timing=main
>Alley Grifters
image=http://magiccards.info/scans/en/mm/115.jpg
value=3
rarity=C
type=Creature
subtype=Human,Mercenary
color=b
converted=3
cost={1}{B}{B}
pt=2/2
timing=main

View File

@ -1683,6 +1683,7 @@ color=g
converted=3
cost={2}{G}
pt=2/2
static=player
timing=fmain
>Incurable Ogre

View File

@ -0,0 +1,38 @@
package magic.card;
import magic.model.MagicGame;
import magic.model.MagicPermanent;
import magic.model.MagicPlayer;
import magic.model.event.MagicDiscardEvent;
import magic.model.event.MagicEvent;
import magic.model.trigger.MagicWhenBecomesBlockedTrigger;
public class Alley_Grifters {
public static final MagicWhenBecomesBlockedTrigger T = new MagicWhenBecomesBlockedTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent data) {
final MagicPlayer defendingPlayer = game.getOpponent(permanent.getController());
return (permanent == data ) ?
new MagicEvent(
permanent,
permanent.getController(),
new Object[]{permanent,defendingPlayer},
this,
defendingPlayer + " discards a card."):
MagicEvent.NONE;
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object data[],
final Object[] choiceResults) {
game.addEvent(new MagicDiscardEvent(
(MagicPermanent)data[0],
(MagicPlayer)data[1],
1,
false));
}
};
}