forked from External/mage
correction on Arabella, Abandoned Doll
This commit is contained in:
parent
d8d6fc4c4c
commit
b4bd107275
1 changed files with 10 additions and 6 deletions
|
|
@ -11,11 +11,10 @@ import mage.abilities.hint.Hint;
|
|||
import mage.abilities.hint.ValueHint;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.SuperType;
|
||||
import mage.constants.TargetController;
|
||||
import mage.constants.*;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||
import mage.filter.predicate.mageobject.PowerPredicate;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
|
|
@ -24,8 +23,13 @@ import java.util.UUID;
|
|||
*/
|
||||
public final class ArabellaAbandonedDoll extends CardImpl {
|
||||
|
||||
private static final FilterPermanent filter = new FilterControlledCreaturePermanent("creatures you control with power 2 or less");
|
||||
static {
|
||||
filter.add(new PowerPredicate(ComparisonType.OR_LESS, 2));
|
||||
}
|
||||
|
||||
private static final DynamicValue xValue = new PermanentsOnBattlefieldCount(
|
||||
new FilterControlledCreaturePermanent("creatures you control with power 2 or less"), null
|
||||
filter, null
|
||||
);
|
||||
private static final Hint hint = new ValueHint("Creatures you control with power 2 or less", xValue);
|
||||
|
||||
|
|
@ -42,7 +46,7 @@ public final class ArabellaAbandonedDoll extends CardImpl {
|
|||
new DamagePlayersEffect(xValue, TargetController.OPPONENT)
|
||||
.setText("it deals X damage to each opponent")
|
||||
);
|
||||
ability.addEffect(new GainLifeEffect(xValue));
|
||||
ability.addEffect(new GainLifeEffect(xValue).concatBy("and"));
|
||||
this.addAbility(ability.addHint(hint));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue