mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 05:52:06 -08:00
[CMR] Implemented Jeweled Lotus
This commit is contained in:
parent
1148a2a810
commit
20cc5571e4
4 changed files with 55 additions and 6 deletions
|
|
@ -1,21 +1,20 @@
|
|||
package mage.filter.predicate.permanent;
|
||||
|
||||
import mage.MageObject;
|
||||
import mage.filter.predicate.Predicate;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.players.Player;
|
||||
|
||||
/**
|
||||
* @author LevelX2
|
||||
*/
|
||||
public enum CommanderPredicate implements Predicate<Permanent> {
|
||||
public enum CommanderPredicate implements Predicate<MageObject> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
public boolean apply(Permanent input, Game game) {
|
||||
Player owner = game.getPlayer(input.getOwnerId());
|
||||
return owner != null
|
||||
&& game.getCommandersIds(owner).contains(input.getId());
|
||||
public boolean apply(MageObject input, Game game) {
|
||||
Player owner = game.getPlayer(game.getOwnerId(input.getId()));
|
||||
return owner != null && game.getCommandersIds(owner).contains(input.getId());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue