mirror of
https://github.com/magefree/mage.git
synced 2025-12-30 07:22:03 -08:00
[NEO] added hint to channel lands
This commit is contained in:
parent
4863eb3170
commit
b61125c0f3
6 changed files with 19 additions and 6 deletions
|
|
@ -2,6 +2,9 @@ package mage.abilities.costs.costadjusters;
|
|||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.costs.CostAdjuster;
|
||||
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
|
||||
import mage.abilities.hint.Hint;
|
||||
import mage.abilities.hint.ValueHint;
|
||||
import mage.constants.SuperType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||
|
|
@ -13,12 +16,18 @@ import mage.util.CardUtil;
|
|||
*/
|
||||
public enum LegendaryCreatureCostAdjuster implements CostAdjuster {
|
||||
instance;
|
||||
|
||||
private static final FilterPermanent filter = new FilterControlledCreaturePermanent();
|
||||
|
||||
static {
|
||||
filter.add(SuperType.LEGENDARY.getPredicate());
|
||||
}
|
||||
|
||||
private static final Hint hint = new ValueHint(
|
||||
"Legendary creatures you control",
|
||||
new PermanentsOnBattlefieldCount(filter)
|
||||
);
|
||||
|
||||
@Override
|
||||
public void adjustCosts(Ability ability, Game game) {
|
||||
int count = game.getBattlefield().count(
|
||||
|
|
@ -28,4 +37,8 @@ public enum LegendaryCreatureCostAdjuster implements CostAdjuster {
|
|||
CardUtil.reduceCost(ability, count);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static Hint getHint() {
|
||||
return hint;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue