Class CardAuraCardFilter

All Implemented Interfaces:
Serializable, HasDesc<EntityFilterDesc>

public class CardAuraCardFilter extends SpecificCardFilter
A filter that matches an entity if the base card ID is matched by the EntityFilterArg.CARD property.

CardAura auras will change the card ID of a card, making it difficult to apply a card aura to a specific card; as soon as the card changes, the aura no longer applies to it.

Use this filter in the "filter" property of a card aura if you are implementing text like, "All Lunstones are Fireballs instead."

See Also:
  • Constructor Details

  • Method Details

    • test

      protected boolean test(GameContext context, Player player, Entity entity, Entity host)
      Description copied from class: EntityFilter
      The subclasses of this class implement this method to actually perform the logic of the filtering. Observe that results from filtering other entities are not available here; this function is stateless in the sense that an earlier acceptance or rejection of an entity cannot influence the acceptance or rejection of a current entity.
      Overrides:
      test in class SpecificCardFilter
      Returns: