Add script for Gisela, Blade of Goldnight
parent
f484859ccc
commit
16ec736fec
|
@ -0,0 +1,17 @@
|
|||
[
|
||||
new MagicIfDamageWouldBeDealtTrigger(MagicTrigger.INCREASE_DAMAGE) {
|
||||
@Override
|
||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
|
||||
final int amount = damage.getAmount();
|
||||
if (permanent.isEnemy(damage.getTarget())) {
|
||||
// Generates no event or action.
|
||||
damage.setAmount(amount * 2);
|
||||
}else{
|
||||
int half = (int) Math.ceil((double)amount / 2);
|
||||
// Prevention effect.
|
||||
damage.prevent(half);
|
||||
}
|
||||
return MagicEvent.NONE;
|
||||
}
|
||||
}
|
||||
]
|
|
@ -0,0 +1,12 @@
|
|||
name=Gisela, Blade of Goldnight
|
||||
url=http://magiccards.info/avr/en/209.html
|
||||
image=http://magiccards.info/scans/en/avr/209.jpg
|
||||
value=4.230
|
||||
rarity=M
|
||||
type=Legendary,Creature
|
||||
subtype=Angel
|
||||
cost={4}{R}{W}{W}
|
||||
ability=flying;first strike
|
||||
pt=5/5
|
||||
timing=main
|
||||
requires_groovy_code
|
Loading…
Reference in New Issue