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>
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Conditionstatic Conditioncreate(EntityReference target, String cardId) protected booleanisFulfilled(GameContext context, Player player, ConditionDesc desc, Entity source, Entity target) Methods inherited from class net.demilich.metastone.game.spells.desc.condition.Condition
equals, getDesc, hashCode, isFulfilled, isFulfilledForTarget, multipleTargetsEvaluatedAsAnd, multipleTargetsEvaluatedAsOr, requiresAtLeastOneTarget, setDesc, singleTargetOnly, targetConditionArgOverridesSuppliedTarget, usesFilter
-
Constructor Details
-
CardPropertyCondition
-
-
Method Details
-
create
-
create
-
isFulfilled
protected boolean isFulfilled(GameContext context, Player player, ConditionDesc desc, Entity source, Entity target) - Specified by:
isFulfilledin classCondition
-