mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
fixed Vraska's Assassin token not destroying planeswalkers (fixes #5732)
This commit is contained in:
parent
356fe050a1
commit
d0dc6c7731
1 changed files with 5 additions and 4 deletions
|
@ -40,7 +40,7 @@ public final class AssassinToken2 extends TokenImpl {
|
|||
class AssassinToken2TriggeredAbility extends TriggeredAbilityImpl {
|
||||
|
||||
AssassinToken2TriggeredAbility() {
|
||||
super(Zone.BATTLEFIELD, new DestroyTargetEffect());
|
||||
super(Zone.BATTLEFIELD, null);
|
||||
}
|
||||
|
||||
private AssassinToken2TriggeredAbility(final AssassinToken2TriggeredAbility effect) {
|
||||
|
@ -60,9 +60,10 @@ class AssassinToken2TriggeredAbility extends TriggeredAbilityImpl {
|
|||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
if (event.getSourceId().equals(getSourceId())) {
|
||||
for (Effect effect : this.getAllEffects()) {
|
||||
effect.setTargetPointer(new FixedTarget(event.getPlayerId()));
|
||||
}
|
||||
Effect effect = new DestroyTargetEffect();
|
||||
effect.setTargetPointer(new FixedTarget(event.getTargetId(), game));
|
||||
this.getEffects().clear();
|
||||
this.addEffect(effect);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue