Skip to content

Commit

Permalink
fix Colfenor's Urn didn't return any cards to play after it was sacri…
Browse files Browse the repository at this point in the history
…ficed
  • Loading branch information
melvinzhang committed Aug 8, 2015
1 parent 9f0c663 commit a39f306
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions release/Magarena/scripts/Colfenor_s_Urn.groovy
@@ -1,14 +1,16 @@
[
new MagicWhenOtherDiesTrigger() {
new MagicWhenOtherPutIntoGraveyardTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent otherPermanent) {
return (otherPermanent.isFriend(permanent) &&
otherPermanent.isCreature() &&
otherPermanent.getToughness() >= 4) ?
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MoveCardAction act) {
final MagicCard card = act.card;
return (act.fromLocation == MagicLocationType.Play &&
card.isFriend(permanent) &&
card.hasType(MagicType.Creature) &&
card.getToughness() >= 4) ?
new MagicEvent(
permanent,
new MagicMayChoice(),
otherPermanent,
card,
this,
"PN may\$ exile RN with SN."
) :
Expand All @@ -19,7 +21,8 @@
if (event.isYes()) {
game.doAction(new ExileLinkAction(
event.getPermanent(),
event.getRefPermanent()
event.getRefCard(),
MagicLocationType.Graveyard
));
}
}
Expand Down

0 comments on commit a39f306

Please sign in to comment.