Class CardPropertyCondition

java.lang.Object
net.demilich.metastone.game.spells.desc.condition.Condition
net.demilich.metastone.game.spells.desc.condition.CardPropertyCondition
All Implemented Interfaces:
Serializable, HasDesc<ConditionDesc>

public final class CardPropertyCondition extends Condition
Returns true if the ConditionArg.TARGET or target is not null and meets the requirements specified by ConditionArg.CARD_TYPE, ConditionArg.HERO_CLASS, ConditionArg.RACE and the card ID in ConditionArg.CARD.

If ConditionArg.CARDS is specified, that line's requirement is satisfied if any of the cards in the array of ConditionArg.CARDS matches the target's card ID.

See Also: