Package net.demilich.metastone.game.spells.desc.filter
package net.demilich.metastone.game.spells.desc.filter
Filters include/exclude targets from a list of entities generated by an entity reference or a card source.
-
ClassDescriptionMatches entities whose
Entity.getRace()
is specificallyRace.ALL
.Evaluates totrue
for everytarget
if all of the filters inEntityFilterArg.FILTERS
also evaluate to true for the target.Filters entities according to theirAttribute
set onEntityFilterArg.ATTRIBUTE
.A filter that matches an entity if the base card ID is matched by theEntityFilterArg.CARD
property.Filters entities based on various properties of their source cards.Filter entities based on whether their source card is collectible or notReturns entities that have been played byEntityFilterArg.TARGET_PLAYER
.Matches an entity if the entity is in the list of entities returned by resolving theEntityFilterArg.SECONDARY_TARGET
.FiltersEntity
objects using itsEntityFilter.test(GameContext, Player, Entity, Entity)
implementation.Returnstrue
if theSpellsource.EntityTypeMessage.EntityType
fromEntity.getEntityType()
of thetarget
is equal to theEntityFilterArg.ENTITY_TYPE
argument.Only returns entities that have an even base cost.Filters for actors that have attacked this turn.Matches an entity if it has an aura, battlecry, card cost modifier, deathrattle, any kind of trigger or is a spell.Filters minions based on whether they have Start-of-turn/End-of-turn effects or not.Computes the highest value of the attribute in the specified list oftarget
entities and returns all with that highest value.Gets thetarget
's in-hand mana cost or its base mana cost, and compares it usingEntityFilterArg.OPERATION
to the valueEntityFilterArg.VALUE
.Only returns entities that have a base odd-cost.A card or actor will pass this filter if itsEntity.getSourceCard()
Card.getCardId()
matches theEntityFilterArg.CARD
argument.Matches a minion if it was summoned by a entity whose owner wasEntityFilterArg.TARGET_PLAYER
.