mirror of
https://github.com/correl/mage.git
synced 2024-11-14 11:09:31 +00:00
* Gilded Drake - Fixed that the Drake had not to be sacrificed if the control did not happen.
This commit is contained in:
parent
7b4f2dd33a
commit
1a458a0837
1 changed files with 11 additions and 11 deletions
|
@ -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 {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
sourceObject.sacrifice(source.getSourceId(), game);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue