mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +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 {
|
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;
|
||||||
|
|
Loading…
Reference in a new issue