mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
Leafkin Avenger - fixed that it count opponent creatures, added card hint (closes #12146);
This commit is contained in:
parent
dee0637496
commit
f95a70dda4
1 changed files with 6 additions and 1 deletions
|
|
@ -9,12 +9,14 @@ import mage.abilities.dynamicvalue.DynamicValue;
|
|||
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
|
||||
import mage.abilities.dynamicvalue.common.SourcePermanentPowerCount;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.abilities.hint.ValueHint;
|
||||
import mage.abilities.mana.DynamicManaAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.ComparisonType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.TargetController;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.filter.predicate.mageobject.PowerPredicate;
|
||||
|
|
@ -30,6 +32,7 @@ public final class LeafkinAvenger extends CardImpl {
|
|||
private static final FilterPermanent filter = new FilterCreaturePermanent("creature with power 4 or greater you control");
|
||||
|
||||
static {
|
||||
filter.add(TargetController.YOU.getControllerPredicate());
|
||||
filter.add(new PowerPredicate(ComparisonType.MORE_THAN, 3));
|
||||
}
|
||||
|
||||
|
|
@ -45,7 +48,9 @@ public final class LeafkinAvenger extends CardImpl {
|
|||
this.toughness = new MageInt(3);
|
||||
|
||||
// {T}: Add {G} for each creature you control with power 4 or greater.
|
||||
this.addAbility(new DynamicManaAbility(Mana.GreenMana(1), xValue));
|
||||
this.addAbility(new DynamicManaAbility(Mana.GreenMana(1), xValue)
|
||||
.addHint(new ValueHint("Creatures with power 4 or greater you control", xValue))
|
||||
);
|
||||
|
||||
// {7}{R}: Leafkin Avenger deals damage equal to its power to target player or planeswalker.
|
||||
Ability ability = new SimpleActivatedAbility(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue