mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
Vizier of the True - Fixed that the triggered ability wrongly also triggered for all players exerting a creature.
This commit is contained in:
parent
f22bf275ab
commit
a75dd8f158
1 changed files with 2 additions and 11 deletions
|
@ -42,8 +42,6 @@ import mage.filter.predicate.permanent.ControllerPredicate;
|
|||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.game.events.GameEvent.EventType;
|
||||
import mage.players.Player;
|
||||
import mage.target.Target;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
/**
|
||||
|
@ -87,6 +85,7 @@ class VizierOfTheTrueAbility extends TriggeredAbilityImpl {
|
|||
|
||||
public VizierOfTheTrueAbility() {
|
||||
super(Zone.BATTLEFIELD, new TapTargetEffect());
|
||||
addTarget(new TargetCreaturePermanent(filter));
|
||||
}
|
||||
|
||||
public VizierOfTheTrueAbility(final VizierOfTheTrueAbility ability) {
|
||||
|
@ -105,15 +104,7 @@ class VizierOfTheTrueAbility extends TriggeredAbilityImpl {
|
|||
|
||||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
Player player = game.getPlayer(event.getPlayerId());
|
||||
if (player != null) {
|
||||
Target target = new TargetCreaturePermanent(filter);
|
||||
target.setAbilityController(getControllerId());
|
||||
this.getTargets().clear();
|
||||
this.getTargets().add(target);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return event.getPlayerId().equals(getControllerId());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue