fixed Vraska's Assassin token not destroying planeswalkers (fixes #5732)

This commit is contained in:
Evan Kranzler 2019-04-20 09:27:37 -04:00
parent 356fe050a1
commit d0dc6c7731

View file

@ -40,7 +40,7 @@ public final class AssassinToken2 extends TokenImpl {
class AssassinToken2TriggeredAbility extends TriggeredAbilityImpl { class AssassinToken2TriggeredAbility extends TriggeredAbilityImpl {
AssassinToken2TriggeredAbility() { AssassinToken2TriggeredAbility() {
super(Zone.BATTLEFIELD, new DestroyTargetEffect()); super(Zone.BATTLEFIELD, null);
} }
private AssassinToken2TriggeredAbility(final AssassinToken2TriggeredAbility effect) { private AssassinToken2TriggeredAbility(final AssassinToken2TriggeredAbility effect) {
@ -60,9 +60,10 @@ class AssassinToken2TriggeredAbility extends TriggeredAbilityImpl {
@Override @Override
public boolean checkTrigger(GameEvent event, Game game) { public boolean checkTrigger(GameEvent event, Game game) {
if (event.getSourceId().equals(getSourceId())) { if (event.getSourceId().equals(getSourceId())) {
for (Effect effect : this.getAllEffects()) { Effect effect = new DestroyTargetEffect();
effect.setTargetPointer(new FixedTarget(event.getPlayerId())); effect.setTargetPointer(new FixedTarget(event.getTargetId(), game));
} this.getEffects().clear();
this.addEffect(effect);
return true; return true;
} }
return false; return false;