* Gilded Drake - Fixed that the Drake had not to be sacrificed if the control did not happen.

This commit is contained in:
LevelX2 2015-07-02 22:33:40 +02:00
parent 7b4f2dd33a
commit 1a458a0837

View file

@ -72,7 +72,7 @@ public class GildedDrake extends CardImpl {
this.addAbility(FlyingAbility.getInstance());
// When Gilded Drake enters the battlefield, exchange control of Gilded Drake and up to one target creature an opponent controls. If you don't make an exchange, sacrifice Gilded Drake. This ability can't be countered except by spells and abilities.
Ability ability = new EntersBattlefieldTriggeredAbility(new GildedDrakeEffect());
ability.addTarget(new TargetCreaturePermanent(0,1,filter, false));
ability.addTarget(new TargetCreaturePermanent(0, 1, filter, false));
this.addAbility(ability);
}
@ -114,10 +114,10 @@ class GildedDrakeEffect extends OneShotEffect {
ContinuousEffect effect = new ExchangeControlTargetEffect(Duration.EndOfGame, "", true);
effect.setTargetPointer(targetPointer);
game.addEffect(effect, source);
} else {
sourceObject.sacrifice(source.getSourceId(), game);
return true;
}
}
sourceObject.sacrifice(source.getSourceId(), game);
return true;
}
return false;