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
trueif 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 thetargettoConditionArg.VALUE1moduloConditionArg.VALUE2equals zero.trueif any of the entities returned by resolvingConditionArg.TARGETis passed by the filter supplied inConditionArg.FILTER.truewhen thetargetorConditionArg.TARGEThas an attributeConditionArg.ATTRIBUTEthat evaluates totruewith theConditionArg.OPERATION.trueif the player has the specifiedConditionArg.ATTRIBUTEanywhere.trueif thesourcecard's pact, based on card ID, can be played.trueif theplayercan summon more minions.Counts the number of cards in the player's hand, and evalutes totrueif the count equals theConditionArg.VALUE.Returnstrueif theConditionArg.TARGETortargetis notnulland meets the requirements specified byConditionArg.CARD_TYPE,ConditionArg.HERO_CLASS,ConditionArg.RACEand the card ID inConditionArg.CARD.trueif the player has played a card prior to this one this turn (i.e.Compares the values using the expressionConditionArg.VALUE1ConditionArg.OPERATIONConditionArg.VALUE2.A condition is used for true or false comparisons in theCardDesccard JSON.trueif theConditionArg.TARGET_PLAYERhas en entity-count [ConditionArg.OPERATION]ConditionArg.VALUEcards.trueif the deck contains any cards that match the givenConditionArg.CARD_FILTERorConditionArg.CARD.The base condition for entity equality comparison conditions.Evaluates totruewhen thetargetorConditionArg.TARGETandConditionArg.SECONDARY_TARGETare the same.Evaluates totruewhen theConditionArg.TARGETfrom the perspective of theEntityReference.TRIGGER_HOSTand theEntityReference.EVENT_TARGETare the same.trueif the graveyard contains anActorthatEntity.diedOnBattlefield()with the card ID fromConditionArg.CARDor thetarget's source card.Counts entities matching theConditionArg.FILTERusing the evaluation rules of theCountCondition.trueif any of theConditionArg.TARGETortargethas attacked this turn according toAttribute.ATTACKS_THIS_TURN.trueif all theConditionArg.CARDSare on the board.truewhen theplayerhas a weapon that is not broken.trueif the player's champion isConditionArg.HERO_CLASS.Evaluates totruewhen there is exactly one copy of each card in theEntityReference.FRIENDLY_DECK.trueif every card in the player's hand is distinct or if the hand is empty.trueif the player is holding a card matching theConditionArg.CARD_FILTERand their hand is not empty.Returnstrueif the card'sAttribute.INVOKEeffect's cost was met.trueif all the targets' modified mana costs (as perGameLogic.getModifiedManaCost(Player, Card)satisfies theConditionArg.OPERATIONwith theConditionArg.VALUE.trueif the player hasGameLogic.MAX_MANAmana.trueif the minion count with the specifiedConditionArg.FILTERorConditionArg.CARD_FILTERevaluates to true with the specifiedConditionArg.OPERATIONandConditionArg.VALUE.trueif there are at leastConditionArg.VALUEof theplayer's minions that satisfy theConditionArg.CARD_FILTEREvaluates totruewhen the number of distinct card IDs in theConditionArg.TARGETwhen filtered byConditionArg.FILTERpasses theConditionArg.OPERATIONwithConditionArg.VALUE.This condition passes if any of the conditions inConditionArg.CONDITIONSalso pass.trueif the player has overloaded and not yet locked Lun this turn.trueif theplayerhas overloaded (locked) any Lun.trueif cards filtered byConditionArg.FILTERwere played by theConditionArg.TARGET_PLAYERlast turn.Evaluates totrueif thetargetor single entity resolved byConditionArg.TARGEThas the specifiedConditionArg.RACE.This condition is fulfilled if theGameLogic.randomBool()method returnstrue.truewhen the number of cards in the player's deck is greater or equal to theConditionArg.VALUE.