* Edric, Spymaster of Trest - The draw is now optional for the player that draws the card and not the controller of Edric.

This commit is contained in:
LevelX2 2015-01-08 12:25:57 +01:00
parent a588b601b6
commit d0d8967814

View file

@ -76,7 +76,7 @@ public class EdricSpymasterOfTrest extends CardImpl {
class EdricSpymasterOfTrestTriggeredAbility extends TriggeredAbilityImpl { class EdricSpymasterOfTrestTriggeredAbility extends TriggeredAbilityImpl {
public EdricSpymasterOfTrestTriggeredAbility() { public EdricSpymasterOfTrestTriggeredAbility() {
super(Zone.BATTLEFIELD, new DrawCardTargetEffect(1), true); super(Zone.BATTLEFIELD, new DrawCardTargetEffect(1, true), false);
} }
public EdricSpymasterOfTrestTriggeredAbility(final EdricSpymasterOfTrestTriggeredAbility ability) { public EdricSpymasterOfTrestTriggeredAbility(final EdricSpymasterOfTrestTriggeredAbility ability) {
@ -91,7 +91,9 @@ class EdricSpymasterOfTrestTriggeredAbility extends TriggeredAbilityImpl {
@Override @Override
public boolean checkTrigger(GameEvent event, Game game) { public boolean checkTrigger(GameEvent event, Game game) {
if (event.getType().equals(EventType.DAMAGED_PLAYER) && ((DamagedPlayerEvent) event).isCombatDamage() && game.getOpponents(this.controllerId).contains(((DamagedPlayerEvent) event).getPlayerId())) { if (event.getType().equals(EventType.DAMAGED_PLAYER) &&
((DamagedPlayerEvent) event).isCombatDamage() &&
game.getOpponents(this.controllerId).contains(((DamagedPlayerEvent) event).getPlayerId())) {
for (Effect effect : this.getEffects()) { for (Effect effect : this.getEffects()) {
effect.setTargetPointer(new FixedTarget(game.getPermanent(event.getSourceId()).getControllerId())); effect.setTargetPointer(new FixedTarget(game.getPermanent(event.getSourceId()).getControllerId()));
} }