Add script for Notorious Assassin

master
hong yie 2014-01-15 01:16:13 +00:00
parent c39c955dbb
commit c727c86457
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,33 @@
[
new MagicPermanentActivation(
new MagicActivationHints(MagicTiming.Removal),
"Destroy"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
return [
new MagicTapEvent(source), new MagicPayManaCostEvent(source, "{2}{B}"), new MagicDiscardEvent(source, 1)
];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"Destroy target nonblack creature. It can't be regenerated."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
event.processTargetPermanent(game, {
final MagicPermanent creature ->
game.doAction(MagicChangeStateAction.Set(creature,MagicPermanentState.CannotBeRegenerated));
game.doAction(new MagicDestroyAction(creature));
});
}
}
]

View File

@ -0,0 +1,10 @@
name=Notorious Assassin
url=http://magiccards.info/mm/en/150.html
image=http://magiccards.info/scans/en/mm/150.jpg
value=3.153
rarity=R
type=Creature
subtype=Human,Assassin,Spellshaper
cost={3}{B}
pt=2/2
timing=main