Package net.demilich.metastone.game.spells.desc.valueprovider
package net.demilich.metastone.game.spells.desc.valueprovider
Value providers read the game state and provide values for spells, conditions, filters, etc.
- See Also:
-
ClassDescriptionReturns the number of aftermaths triggered by the
ValueProviderArg.TARGET_PLAYER
.Reduces the sum of all values of attributeValueProviderArg.ATTRIBUTE
on target entities forValueProviderArg.TARGET
.Returns the number of minions, including permanents, on the board, unfiltered.Returns the number of cards in theValueProviderArg.CARD_SOURCE
andValueProviderArg.CARD_FILTER
when specified, orSpellsource.ZonesMessage.Zones.HAND
when not specified.Returns the count of the number of cards played that by theValueProviderArg.TARGET_PLAYER
that satisfies the specifiedValueProviderArg.FILTER
.When theValueProviderArg.CONDITION
evalutes totrue
, return the value fromValueProviderArg.IF_TRUE
.Returns the number ofActor
entities that were destroyed during the evaluation of this sequence.Indicates how many of theValueProviderArg.FILTER
filtered actors were destroyed this turn.Calculates the number of distinct tribes among theEntityReference.TARGET
entities.Counts the number of entities specified in theValueProviderArg.TARGET
filtered byValueProviderArg.FILTER
.Retrieves theHasValue.getValue()
of the event being processed.Returns the amount of excess healing theValueProviderArg.TARGET_PLAYER
has given to its entities.Returns the number of fires left in the first enchantment attached to thetarget
.Used to retrieve a variable calculated in aMetaSpell
.Returns the count of Gatekeeper Sha auras (unexpired) that are in play on your side of the battlefield.Returns the number of minions (non permanent, not removed peacefully) that are in the castingplayer
'sSpellsource.ZonesMessage.Zones.GRAVEYARD
.Returns the index of the first entity that matches theValueProviderArg.CARD_FILTER
in the specifiedValueProviderArg.CARD_SOURCE
.Returns the turn index of theValueProviderArg.TARGET_PLAYER
's previous turn.Returns the maximum board size in this rule set.When used in aSpellOverrideAura
, this value provider returns the original value specified in this key.Returns the number of cards matchingValueProviderArg.FILTER
orValueProviderArg.CARD_FILTER
that were played this turn by theValueProviderArg.TARGET_PLAYER
.PerformsValueProviderArg.OPERATION
on the values returned byValueProviderArg.VALUE1
applied to each entity resolved byValueProviderArg.TARGET
.Returns the number of turns the specified player did not player a card.Value providers compute an integer value givenValueProviderArg
, an underlying implementation, and theplayer
,host
andtarget
from whose point of view the value should be calculated.This instance stores the definition of aValueProvider
.