use of mage.abilities.condition.common.ControlsPermanentsComparedToOpponentsCondition in project mage by magefree.
the class ChaosLordEffect method checkInterveningIfClause.
@Override
public boolean checkInterveningIfClause(Game game) {
Condition condition = new ControlsPermanentsComparedToOpponentsCondition(ComparisonType.EQUAL_TO, new FilterPermanent());
Player controller = game.getPlayer(controllerId);
if (controller != null && condition.apply(game, this)) {
return super.checkInterveningIfClause(game);
}
return false;
}
Aggregations