mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
* Crown of Doom - Fixed a bug of target handling of the activated ability.
This commit is contained in:
parent
14cd2dfa6d
commit
e73be58113
1 changed files with 2 additions and 2 deletions
|
|
@ -49,7 +49,7 @@ import mage.constants.Zone;
|
|||
import mage.filter.FilterPlayer;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.filter.predicate.other.OwnerIdPredicate;
|
||||
import mage.filter.predicate.other.PlayerIdPredicate;
|
||||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
import mage.target.TargetPlayer;
|
||||
|
|
@ -86,7 +86,7 @@ public class CrownOfDoom extends CardImpl {
|
|||
if (sourceCard != null) {
|
||||
ability.getTargets().clear();
|
||||
FilterPlayer filter = new FilterPlayer("player other than " + sourceCard.getIdName() + "'s owner");
|
||||
filter.add(Predicates.not(new OwnerIdPredicate(sourceCard.getOwnerId())));
|
||||
filter.add(Predicates.not(new PlayerIdPredicate(sourceCard.getOwnerId())));
|
||||
ability.addTarget(new TargetPlayer(1, 1, false, filter));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue