mirror of
https://github.com/correl/mage.git
synced 2024-12-28 11:14:13 +00:00
updated Crown of Doom
This commit is contained in:
parent
2d577287d1
commit
6800d80cae
1 changed files with 7 additions and 6 deletions
|
@ -47,6 +47,7 @@ import mage.filter.StaticFilters;
|
|||
import mage.filter.predicate.ObjectSourcePlayer;
|
||||
import mage.filter.predicate.ObjectSourcePlayerPredicate;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.players.Player;
|
||||
import mage.target.TargetPlayer;
|
||||
import mage.target.targetpointer.FixedTarget;
|
||||
|
@ -57,7 +58,7 @@ import mage.target.targetpointer.FixedTarget;
|
|||
*/
|
||||
public class CrownOfDoom extends CardImpl {
|
||||
|
||||
private static final FilterPlayer filter = new FilterPlayer("player other than Crown of Doom's owner");
|
||||
private static final FilterPlayer filter = new FilterPlayer("player other than {this}'s owner");
|
||||
|
||||
static {
|
||||
filter.add(new CrownOfDoomPredicate());
|
||||
|
@ -95,17 +96,17 @@ class CrownOfDoomPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePl
|
|||
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<Player> input, Game game) {
|
||||
Player player = input.getObject();
|
||||
UUID playerId = input.getPlayerId();
|
||||
if (player == null || playerId == null) {
|
||||
Player targetPlayer = input.getObject();
|
||||
Permanent sourceObject = game.getPermanentOrLKIBattlefield(input.getSourceId());
|
||||
if (targetPlayer == null || sourceObject == null) {
|
||||
return false;
|
||||
}
|
||||
return !player.getId().equals(playerId);
|
||||
return !targetPlayer.getId().equals(sourceObject.getOwnerId());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Owner()";
|
||||
return "Owner(" + ')';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue