added Alley Grifters. added static field to Imperious Perfect
parent
1f291161c1
commit
a9c7b81e38
|
@ -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
|
||||
|
|
|
@ -1683,6 +1683,7 @@ color=g
|
|||
converted=3
|
||||
cost={2}{G}
|
||||
pt=2/2
|
||||
static=player
|
||||
timing=fmain
|
||||
|
||||
>Incurable Ogre
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue