mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
* Some minor source code updates.
This commit is contained in:
parent
82061929cf
commit
7fe357708a
4 changed files with 9 additions and 5 deletions
|
@ -11,9 +11,9 @@ import mage.abilities.keyword.EnchantAbility;
|
|||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.target.TargetPermanent;
|
||||
|
@ -36,7 +36,7 @@ public final class ExoskeletalArmor extends CardImpl {
|
|||
Ability ability = new EnchantAbility(auraTarget.getTargetName());
|
||||
this.addAbility(ability);
|
||||
// Enchanted creature gets +X/+X, where X is the number of creature cards in all graveyards.
|
||||
CardsInAllGraveyardsCount count = new CardsInAllGraveyardsCount(StaticFilters.FILTER_CARD_CREATURE);
|
||||
CardsInAllGraveyardsCount count = new CardsInAllGraveyardsCount(StaticFilters.FILTER_CARD_CREATURES);
|
||||
Effect effect = new BoostEnchantedEffect(count, count, Duration.WhileOnBattlefield);
|
||||
effect.setText("Enchanted creature gets +X/+X, where X is the number of creature cards in all graveyards");
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect));
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
package mage.abilities.dynamicvalue.common;
|
||||
|
||||
import java.util.UUID;
|
||||
|
@ -25,7 +24,7 @@ public class CardsInAllGraveyardsCount implements DynamicValue {
|
|||
this.filter = filter;
|
||||
}
|
||||
|
||||
public CardsInAllGraveyardsCount(CardsInAllGraveyardsCount dynamicValue) {
|
||||
public CardsInAllGraveyardsCount(final CardsInAllGraveyardsCount dynamicValue) {
|
||||
this.filter = dynamicValue.filter.copy();
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
package mage.abilities.effects.common.continuous;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
|
|
|
@ -79,6 +79,12 @@ public final class StaticFilters {
|
|||
FILTER_CARD_CREATURE.setLockedFilter(true);
|
||||
}
|
||||
|
||||
public static final FilterCreatureCard FILTER_CARD_CREATURES = new FilterCreatureCard("creature cards");
|
||||
|
||||
static {
|
||||
FILTER_CARD_CREATURES.setLockedFilter(true);
|
||||
}
|
||||
|
||||
public static final FilterCreatureCard FILTER_CARD_CREATURE_A = new FilterCreatureCard("a creature card");
|
||||
|
||||
static {
|
||||
|
|
Loading…
Reference in a new issue