Package net.demilich.metastone.game.spells.desc.condition
package net.demilich.metastone.game.spells.desc.condition
Conditions encode a true or false evaluation of a piece of game state.
- See Also:
-
ClassDescription
true
if thesource
(or the enchantment host) is adjacent to aAttribute.PERMANENT
, which is ordinarily untargetable.A condition that is fulfilled if all the entities inConditionArg.TARGET
, when evaluated as thetarget
toConditionArg.VALUE1
moduloConditionArg.VALUE2
equals zero.true
if any of the entities returned by resolvingConditionArg.TARGET
is passed by the filter supplied inConditionArg.FILTER
.true
when thetarget
orConditionArg.TARGET
has an attributeConditionArg.ATTRIBUTE
that evaluates totrue
with theConditionArg.OPERATION
.true
if the player has the specifiedConditionArg.ATTRIBUTE
anywhere.true
if thesource
card's pact, based on card ID, can be played.true
if theplayer
can summon more minions.Counts the number of cards in the player's hand, and evalutes totrue
if the count equals theConditionArg.VALUE
.Returnstrue
if theConditionArg.TARGET
ortarget
is notnull
and meets the requirements specified byConditionArg.CARD_TYPE
,ConditionArg.HERO_CLASS
,ConditionArg.RACE
and the card ID inConditionArg.CARD
.true
if the player has played a card prior to this one this turn (i.e.Compares the values using the expressionConditionArg.VALUE1
ConditionArg.OPERATION
ConditionArg.VALUE2
.A condition is used for true or false comparisons in theCardDesc
card JSON.true
if theConditionArg.TARGET_PLAYER
has en entity-count [ConditionArg.OPERATION
]ConditionArg.VALUE
cards.true
if the deck contains any cards that match the givenConditionArg.CARD_FILTER
orConditionArg.CARD
.The base condition for entity equality comparison conditions.Evaluates totrue
when thetarget
orConditionArg.TARGET
andConditionArg.SECONDARY_TARGET
are the same.Evaluates totrue
when theConditionArg.TARGET
from the perspective of theEntityReference.TRIGGER_HOST
and theEntityReference.EVENT_TARGET
are the same.true
if the graveyard contains anActor
thatEntity.diedOnBattlefield()
with the card ID fromConditionArg.CARD
or thetarget
's source card.Counts entities matching theConditionArg.FILTER
using the evaluation rules of theCountCondition
.true
if any of theConditionArg.TARGET
ortarget
has attacked this turn according toAttribute.ATTACKS_THIS_TURN
.true
if all theConditionArg.CARDS
are on the board.true
when theplayer
has a weapon that is not broken.true
if the player's champion isConditionArg.HERO_CLASS
.Evaluates totrue
when there is exactly one copy of each card in theEntityReference.FRIENDLY_DECK
.true
if every card in the player's hand is distinct or if the hand is empty.true
if the player is holding a card matching theConditionArg.CARD_FILTER
and their hand is not empty.Returnstrue
if the card'sAttribute.INVOKE
effect's cost was met.true
if all the targets' modified mana costs (as perGameLogic.getModifiedManaCost(Player, Card)
satisfies theConditionArg.OPERATION
with theConditionArg.VALUE
.true
if the player hasGameLogic.MAX_MANA
mana.true
if the minion count with the specifiedConditionArg.FILTER
orConditionArg.CARD_FILTER
evaluates to true with the specifiedConditionArg.OPERATION
andConditionArg.VALUE
.true
if there are at leastConditionArg.VALUE
of theplayer
's minions that satisfy theConditionArg.CARD_FILTER
Evaluates totrue
when the number of distinct card IDs in theConditionArg.TARGET
when filtered byConditionArg.FILTER
passes theConditionArg.OPERATION
withConditionArg.VALUE
.This condition passes if any of the conditions inConditionArg.CONDITIONS
also pass.true
if the player has overloaded and not yet locked Lun this turn.true
if theplayer
has overloaded (locked) any Lun.true
if cards filtered byConditionArg.FILTER
were played by theConditionArg.TARGET_PLAYER
last turn.Evaluates totrue
if thetarget
or single entity resolved byConditionArg.TARGET
has the specifiedConditionArg.RACE
.This condition is fulfilled if theGameLogic.randomBool()
method returnstrue
.true
when the number of cards in the player's deck is greater or equal to theConditionArg.VALUE
.