Enum Class Attribute
- All Implemented Interfaces:
Serializable
,Comparable<Attribute>
,Constable
This represents the "columns" of the proverbial data that is stored in an entity. Many keywords, like stealth, have a corresponding attribute. But it really depends on how the implementation works.
The attributes here interact with many mechanics. They are also the keys to an AttributeMap
and CardAttributeMap
.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe number of aftermaths active on this entity.Whentrue
, indicates thisPlayer
entity is an AI opponent.ThisString
is the ID of the alliance this card belongs to, if any.Signifies that this card is an Artifact, a type of token card added by What Lies Beneath.The attack value written on theCard
.An attack bonus that should be applied to theMinion
attack.When non-zero, multiplies theATTACK_BONUS
,TEMPORARY_ATTACK_BONUS
,AURA_ATTACK_BONUS
andCONDITIONAL_ATTACK_BONUS
by this amount.An attribute that specifies that the attack of thisMinion
is equal to its hitpoints.Applies a multiplier to the base attack plus bonus attack on anActor
.Records how many attacks last turn an actor made.Tracks the amount of times an actor has attacked over the course of a gameIndicates the number of attacks thisActor
has made this turn.The amount of attack added by all theAura
effects that target the entity.The aura version ofATTACK_BONUS_MULTIPLIER
.The aura version ofATTACK_EQUALS_HP
.The aura version ofATTACK_MULTIPLIER
.An Aura version ofCANNOT_ATTACK
.An Aura version ofCANNOT_ATTACK_HEROES
When set, the card behaves as though it were actually a copy of the card of the specified ID.An Aura version ofCHARGE
.An Aura version ofCOSTS_HEALTH_INSTEAD_OF_MANA
.The aura version ofECHO
.The aura version ofENEMY_HEALING_BONUS
.The aura version ofHEALING_BONUS
.The amount of hitpoints added by all theAura
effects that target the entity.Grants an immunity aura when present on an entity.An Aura version ofIMMUNE_WHILE_ATTACKING
.The aura version ofINVOKE
An aura version ofLIFESTEAL
Represents the minimum attack that auras can reduce an actor's attack toAn aura version ofPOISONOUS
Aura version ofRUSH
The aura version of spell damage.The aura version ofSTEALTH
The Aura version ofTAKE_DOUBLE_DAMAGE
Like taunt, but created as a result of anAura
.AnActor
with this attribute is untargetable by spells or hero powers due to an aura.An aura version ofWINDFURY
The base amount of attack for theActor
.The base number of hitpoints for theActor
.The base mana cost of theCard
.Tracks a card being in the progress of playingDeprecated.When set, thisMinion
cannot attack.When set, thisMinion
cannot target heroes with physical attacks.When set, the hitpoints of theActor
cannot be reduced below 1, typically just for the current turn.Will block an entity from receiving game event triggersWhen set, overrides the card's identity and makes it behave like a different card in all its base effects.ThisString
is the inventory record ID of this card.Like taunt, but only applies while in hand or in the deck.Indicates that the spell was played targeting a friendly minion Implements Lynessa SunsorrowAttribute to track if a spell should cast itself automatically when drawn, also drawing another card in the process.ThisString
is the user ID of the player who is currently using a card that belongs to someone else.An integer attribute indicating which choice was taken on a choose one card.Records theEntityReference
of this choose one spell card's source card.An array of integer choices, forCastFromGroupSpell
, to allow adaptation choices to replay correctly.ACard
with this attribute signals that it has two options that a player chooses from when the card is played.ThisString
array is the collections this card belongs to, like the deck, user and alliances.When a comboCard
is played after another card, an effect is triggered.A conditional attack bonus for theActor
that corresponds to bonuses from anEnrageSpell
,ConditionalAttackBonusSpell
orSetAttributeSpell
.AnEntityReference
that, when set, indicates which entity this copied, if the entity copied withEntity.getCopy()
.Indicates that thisCard
costs health instead of mana when played from the hand.When aCard
is played and countered (by e.g.This attribute keeps track of how much attack should be added to C'Thun.This attribute keeps track of how many hitpoints should be added to C'Thun.This attribute marks that C'Thun will have Taunt when it is summoned.Every time anActor
is damaged, increment this attribute with the amount of damage and set it to zero at the end of the turn.AnEntity
withDEATHRATTLES
casts a spell when it is destroyed.Indicates the decay keyword, which causes the entity to lose one health/armor/durability at the end of every owner's turnThisString
is the ID of the deck this card is currently put into.Marks that thisCard
has a trigger that should be active while it is in the deck.Whenever aMinion
with this attribute is first attacked, it loses this attribute and the damage dealt to it is dealt to its owner's hero instead.The number of turns a player has for Demonic FormOverrides the description of theEntity
When the entity has this attribute, it is destroyed.TheEntityReference
of the entity that destroyed this one.When set on thePlayer
entity, that player no longer takes fatigue damage.Indicates how many cards the player has discarded during the game.An attribute that indicates a card can be used to Discover something, offering a choice of 3 options to the player with a 4x increase in frequency of class cards.Marks that theActor
has a divine shield.ThisString
is the user ID of the player who opened the card pack that contained this card.Deprecated.Deprecated.Indicates that thePlayer
's end turn triggers should trigger twice.Drain indicates the card will deal damage to the specified target and buffs the source's HP by that amount.Indicates how much an entity hasDrainSpell
drained last turn.Indicates how much an entity hasDrainSpell
drained this turn.An override for the entity's description that indicates it has anDynamicDescription
.Indicates the card will put a copy of itself into the player's hand after it is played.Stores the Eidolon effect tribe.The additional amount of healing anEntity
contributes to this owner's enemy.ThisMinion
will typically gain an attack bonus after it is dealt damage the first time.When anActor
isENRAGED
, itsCONDITIONAL_ATTACK_BONUS
is set to the amount of damage gained by anEnrageSpell
.ThisString
describes the instance of this specific entity inside the particular match.Every time anActor
is healed, increment this attribute with the amount of healing and set to zero at the end of the turn.An attribute used by Giant Sand Worm that refreshes the number of attacks it has.Indicates how many extra turns the player has.Fatigue is a game mechanic that deals increasing damage to players who have already drawn all of the cards in their deck, whenever they attempt to draw another card.Indicates a character shouldn't naturally lose the FROZEN attributeA frozenActor
cannot attack.Indicates the time, in millis, that a game was startedIndicates that the game has started for the specified player.Marks that thisCard
has a trigger (this attribute) that should be active throughout the game.When any friendlyEntity
has this attribute, all friendly healing effects that useGameLogic.heal(Player, Actor, int, Entity)
are multiplied by this attribute's value.The additional amount of healing anEntity
contributes.Every time anActor
is healed, increment this attribute with the amount of healing and set to zero at the end of the turn.Returns theCard
'sCardDesc.heroClass
field.AnEntity
with hero power damage contributes to the total hero power damage the player gets as a bonus to their base hero power damage.Applies a multiplier to the amount of hero damage the owning player's skill deals.Deprecated.This attribute indicates the maximum number of times a hero power can be used in a turn.When anyEntity
alive has this attribute, BOTH player's hero powers are disabled.The number of hit points theActor
currently has.The amount of hitpoints added by all theBuffSpell
effects on the entity.Indicates that a card makes use of the Imbue keyword, specifically using up a chargeAn immuneActor
does not take any damage.AnActor
with this attribute does not take damage from the targets of its physical attacks.Returns the index of the entity in its current zone.Returns the index of the entity from the end of its current zone.Whens set on any entity, friendly healing effects deal damage instead.Whenever aCard
with this attribute is in your hand, and you have at least the invoke amount of mana, you may gain an extra card with a bonus effect on it to cast with that extra mana.Indicates a card's invoke for the specified amount of mana.An attribute that keeps track of how much attack and hitpoints to add to the next Jade Golem that gets summoned.Remembers theATTACK_BONUS
,HP_BONUS
,LIFESTEAL
,WINDFURY
,POISONOUS
that was applied to theActor
that gets subjected to aShuffleToDeckSpell
.Indicates a minion is part of the "___ Lackey" subset of cards for the Year of the DragonRecords the amount of healing last applied to thisActor
.Records the amount of damage last sustained by anActor
.This value indicates the turn number of thePlayer
's last turn.A shorthand implementation of the Lifesteal keyword.Indicates the minion should magnetize when being played left of a mech instead of summoning normallyAn array of card ID strings that correspond to which cards this card was magnetized from.Returns theCard
'sCardDesc.manaCostModifier
field.Indicates how much Mana the player spent to play the cardOn the player entity, specifies how much mana has been spent this turn.A virtual attribute that will callEntity.getMaxNumberOfAttacks()
and return it.The maximum number of hitpoints theActor
can have.AnActor
withMEGA_WINDFURY
has four attacks per turn.When anyEntity
has this attribute in play, minions cost health instead of mana.Every time aPlayer
successfully summons a minion, this counter is incremented on the summoning player.Overrides the name of theEntity
Whentrue
, indicates this card never appears in a mulligan.An attribute that tracks the number of attacks theActor
has this turn.Some cards give the opponent spell damage.TheInteger
amount of mana overloaded overloaded by the player over the course of the game.Stores passive auras, i.e., auras that are active while the entity is in the hand.This attribute describes aMinion
that can never be targeted by spells, abilities, auras or physical attacks but does occupy a position on theSpellsource.ZonesMessage.Zones.BATTLEFIELD
.Indicates theInteger
turn that the specified card was played from the hand or the deck.A shorthand implementation of the Poisonous keyword.Marks a card as using a "Quick Draw" effect for the Outlaw classThe race of the entity.When anyEntity
has a non-zero value for this attribute, spells are cast with random targets, random discover choices are made, physical attacks target randomly, and battlecries target randomly.Whenever aCard
is received into the hand, this attribute indicates on which turn (typicallyGameContext.getTurn()
the card was received.Indicates that thisEntity
should remove itself from play peacefully at the end of the current turn.Allows spell effects to mark things without a dedicated enchantment.Allows spell effects to mark things without a dedicated enchantment.Allows spell effects to mark things without a dedicated enchantment.Allows spell effects to mark things without a dedicated enchantment.Allows spell effects to mark things without a dedicated enchantment.Allows spell effects to count and keep track of values without a dedicate enchantment.Allows spell effects to count and keep track of values without a dedicated enchantment.Allows spell effects to count and keep track of values without a dedicated enchantment.Allows spell effects to count and keep track of values without a dedicated enchantment.Allows spell effects to count and keep track of values without a dedicated enchantment.Indicates this card was roasted (removed from the top of the deck) by aRoastSpell
on the specifiedInteger
turn.Counter for each time a "XXXXX's Scheme" card has upgradedACard
has this attribute to help spells find secrets in the deck.Shadowform implements a hero power upgrading mechanic.Attribute determining which card is the "Signature" for Ringmaster cards.Records that anEntity
was silenced.The total amount of spell damage that anEntity
contributes.When any friendlyEntity
has this attribute, all friendly spell damage effects (typically cast byDamageSpell
deal damage multiplied by this attribute's value.When aCard
that casts aDamageSpell
has this attribute, its bonus from spell damage is doubled.Self explanatory.Implements Electra Stormsurge.When anyEntity
has this attribute in play, spells cost health instead of mana.Indicates the name in Spellsource for the specified card.An attribute given toCard
entities that started in the player's deck, as opposed to being generated by other cards.An attribute given toCard
entities that started in the player's opening handIndicates the player has drawn their starting hand.Returns the index of the entity in its current zone at the start of the game.When set on a player entity, indicates the player is currently in the starting turn phase.AMinion
with stealth cannot be targeted by spells, hero powers or physical attacks until it attacks.Indicates how many turns an actor should haveSTEALTH
forThe player ID of the owner of the source entity that summoned this minion.Indicates which turn a minion was summoned.Summoning sickness prevents aMinion
from attacking the same turn it is played or summoned.Counts the number of supremacies (kills, but not overkills) that theActor
has achieved.Indicates anActor
will do something when it attacks and kills a minion.The keyword for cards with Surge (a bonus gained when the card is drawn that turn).AnEntity
with this attribute takes twice the damage whenever it is dealt damage.Returns theCard
'sCardDesc.targetSelection
field.A one-turn long attack bonus given to theActor
.Indicates how many times the targetActor
has been healed.Every time anActor
damages a target, increment this attribute with the total amount of damage dealt across all games.Keeps track of damage dealt by thissource
minion this game.Every time anActor
receives damage, increment this attribute with the total amount of damage dealt.Indicates how much an entity hasDrainSpell
drained over its lifetime.Every time anActor
has its max HP increased, this value increases.Every time anActor
kills a target, increment this attribute.Records how much damage was dealt to minions by this player or entity this game.Every time aPlayer
successfully summons a minion, this counter is incremented on both playersFor entities that are in theSpellsource.ZonesMessage.Zones.REMOVED_FROM_PLAY
zone due to a transform effect, this attribute points to the entity that replaced this one.Indicates a minion is an official Treant, considered for Treant-related synergiesIndicates the time, in millis since the beginning of the match, that a player's turn was started.Indicates the amount of time, in seconds, a player has to perform their turn.When set on a card in theSpellsource.ZonesMessage.Zones.DISCOVER
, indicates the card should be turned over and visible to the discovering player's opponent.Every unique user ID that has summoned this minion is stored in this attribute's array ofString
.AnActor
withUNLIMITED_ATTACKS
has unlimited attacks per turn.Marks anActor
to be untargetable by an opponent's spells or hero powers.Marks anActor
to be untargetable by spells or hero powers.Indicates the number of uses of a hero power.This attribute is aString
that describes the inventory owner (as opposed to in-match owner) of the card.Whenever anActor
dies, increment this attribute by 1 if the actor had the lowest attack on the battlefield.Indicates this actor has a wither effect active on it.Indicates this actor has been withered. -
Method Summary
Modifier and TypeMethodDescriptionContains attributes that are theAura
version of a corresponding attribute.Contains the list of attributes that enchant cards as opposed to actors.Contains the set of attributes that store turn numbers.static Attribute
Returns the enum constant of this class with the specified name.static Attribute[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BASE_MANA_COST
The base mana cost of theCard
. -
COSTS_HEALTH_INSTEAD_OF_MANA
Indicates that thisCard
costs health instead of mana when played from the hand. -
AURA_COSTS_HEALTH_INSTEAD_OF_MANA
An Aura version ofCOSTS_HEALTH_INSTEAD_OF_MANA
. -
HP
The number of hit points theActor
currently has. -
INDEX
Returns the index of the entity in its current zone. -
INDEX_FROM_END
Returns the index of the entity from the end of its current zone.For example, if it's the last element (i.e., index
-1
), its index from the end will be1
. -
STARTING_INDEX
Returns the index of the entity in its current zone at the start of the game. -
ATTACK
The attack value written on theCard
. This is distinct fromBASE_ATTACK
, which is the base attack value of theMinion
this card would summon. -
ATTACK_BONUS
An attack bonus that should be applied to theMinion
attack. -
MAX_HP
The maximum number of hitpoints theActor
can have. -
ARMOR
-
TEMPORARY_ATTACK_BONUS
A one-turn long attack bonus given to theActor
. -
HP_BONUS
The amount of hitpoints added by all theBuffSpell
effects on the entity. -
AURA_ATTACK_BONUS
The amount of attack added by all theAura
effects that target the entity. -
AURA_HP_BONUS
The amount of hitpoints added by all theAura
effects that target the entity. -
AURA_IMMUNE
Grants an immunity aura when present on an entity.- See Also:
-
AURA_CARD_ID
When set, the card behaves as though it were actually a copy of the card of the specified ID.This is distinct from transformation effects.
-
BASE_HP
The base number of hitpoints for theActor
. -
BASE_ATTACK
The base amount of attack for theActor
. -
CONDITIONAL_ATTACK_BONUS
A conditional attack bonus for theActor
that corresponds to bonuses from anEnrageSpell
,ConditionalAttackBonusSpell
orSetAttributeSpell
. This bonus is typically controlled by aCondition
. -
RACE
The race of the entity.- See Also:
-
DESTROYED
When the entity has this attribute, it is destroyed. However, entities are also considered destroyed if theirActor.getHp()
is below zero or if they are in theSpellsource.ZonesMessage.Zones.GRAVEYARD
orSpellsource.ZonesMessage.Zones.REMOVED_FROM_PLAY
zones.At the end of
GameLogic.performGameAction(int, GameAction)
inGameLogic.endOfSequence()
, all entities withDESTROYED
will be sent to theSpellsource.ZonesMessage.Zones.GRAVEYARD
. -
FATIGUE
Fatigue is a game mechanic that deals increasing damage to players who have already drawn all of the cards in their deck, whenever they attempt to draw another card.This attribute tracks how much damage a
Hero
should take when the player draws a card.- See Also:
-
FROZEN
A frozenActor
cannot attack. Freezing is cleared by aSilenceSpell
(when the minion isSILENCED
) or the owning player ends his turn on a different turn than when the minion wasFROZEN
. -
ENRAGABLE
ThisMinion
will typically gain an attack bonus after it is dealt damage the first time. -
SILENCED
Records that anEntity
was silenced. Silencing clears all attributes and effects. -
WINDFURY
-
AURA_WINDFURY
An aura version ofWINDFURY
-
MEGA_WINDFURY
AnActor
withMEGA_WINDFURY
has four attacks per turn.- See Also:
-
UNLIMITED_ATTACKS
AnActor
withUNLIMITED_ATTACKS
has unlimited attacks per turn.- See Also:
-
TAUNT
AnActor
withTAUNT
must be targeted by opposingPhysicalAttackAction
actions first. This means theMinion
withTAUNT
acts like a shield for its other non-taunt minions and its owning player's hero, because the opposing minions and hero must attack the taunt minion first.- See Also:
-
AURA_TAUNT
Like taunt, but created as a result of anAura
.- See Also:
-
CARD_TAUNT
Like taunt, but only applies while in hand or in the deck. Affects the summoned minion and goes away when this card is moved to the graveyard. -
SPELL_DAMAGE
The total amount of spell damage that anEntity
contributes. -
AURA_SPELL_DAMAGE
The aura version of spell damage. -
HEALING_BONUS
The additional amount of healing anEntity
contributes. -
ENEMY_HEALING_BONUS
The additional amount of healing anEntity
contributes to this owner's enemy. -
AURA_HEALING_BONUS
The aura version ofHEALING_BONUS
. -
AURA_ENEMY_HEALING_BONUS
The aura version ofENEMY_HEALING_BONUS
. -
OPPONENT_SPELL_DAMAGE
Some cards give the opponent spell damage. This attribute stores how much. -
CHARGE
-
AURA_CHARGE
An Aura version ofCHARGE
. -
NUMBER_OF_ATTACKS
An attribute that tracks the number of attacks theActor
has this turn. Typically, actors start with 1 attack every turn. -
EXTRA_ATTACKS
An attribute used by Giant Sand Worm that refreshes the number of attacks it has.- See Also:
-
MAX_ATTACKS
A virtual attribute that will callEntity.getMaxNumberOfAttacks()
and return it. -
ENRAGED
When anActor
isENRAGED
, itsCONDITIONAL_ATTACK_BONUS
is set to the amount of damage gained by anEnrageSpell
.- See Also:
-
BATTLECRY
-
DOUBLE_BATTLECRIES
Deprecated.since the introduction ofDoubleBattlecriesAura
.AnEntity
withDOUBLE_BATTLECRIES
causes other friendly battlecries to occur twice.This implements Brann Bronzebeard's text.
-
DEATHRATTLES
AnEntity
withDEATHRATTLES
casts a spell when it is destroyed.This attribute does not store the spell itself. It marks an entity that has a deathrattle.
-
DOUBLE_DEATHRATTLES
Deprecated.AnEntity
withDOUBLE_DEATHRATTLES
causes other friendly deathrattles to occur twice.This implements Baron Rivendare's text.
-
IMMUNE
An immuneActor
does not take any damage. -
IMMUNE_WHILE_ATTACKING
AnActor
with this attribute does not take damage from the targets of its physical attacks. -
AURA_IMMUNE_WHILE_ATTACKING
An Aura version ofIMMUNE_WHILE_ATTACKING
. -
DIVINE_SHIELD
Marks that theActor
has a divine shield.Divine shield causes the actor to take zero damage instead of the full damage it should receive the first time it receives damage.
- See Also:
-
STEALTH
AMinion
with stealth cannot be targeted by spells, hero powers or physical attacks until it attacks.If a Stealthed minion attacks or deals any kind of damage, it will lose Stealth. This includes passive effects such as that of Knife Juggler, and dealing combat damage in exchange, such as when being struck by a clumsy minion such as Ogre Brute, or by a Misdirection-redirected minion.
- See Also:
-
for the situation where physical attacks cause a minion to lose stealth.
for the situation where any kind of damage originating from a minion causes it to lose stealth.
for the logic behind selecting valid targets.
-
AURA_STEALTH
The aura version ofSTEALTH
-
SECRET
ACard
has this attribute to help spells find secrets in the deck.Cards marked secret should not be revealed to the opponent.
-
COMBO
When a comboCard
is played after another card, an effect is triggered. -
OVERLOAD
-
OVERLOADED_THIS_GAME
TheInteger
amount of mana overloaded overloaded by the player over the course of the game. -
CHOOSE_ONE
ACard
with this attribute signals that it has two options that a player chooses from when the card is played. -
CHOICE
An integer attribute indicating which choice was taken on a choose one card.-1
indicates that the choose-both option occurred. -
CHOICES
An array of integer choices, forCastFromGroupSpell
, to allow adaptation choices to replay correctly. -
BOTH_CHOOSE_ONE_OPTIONS
Deprecated.AMinion
with this attribute causes both choose one options of aCard
withCHOOSE_ONE
to be played.This implements the Fandral Staghelm card text.
-
SUMMONING_SICKNESS
Summoning sickness prevents aMinion
from attacking the same turn it is played or summoned. Minions withCHARGE
do not have summoning sickness.Summoning sickness occurs however the minion entered the battlefield, whether through a play from the hand, a Summon effect, a put into battlefield effect, or a transform effect.
-
UNTARGETABLE_BY_SPELLS
Marks anActor
to be untargetable by spells or hero powers. This includes the owner's spells and hero powers.- See Also:
-
for the complete target selection logic.
-
UNTARGETABLE_BY_OPPONENT_SPELLS
Marks anActor
to be untargetable by an opponent's spells or hero powers.- See Also:
-
for the complete target selection logic.
-
AURA_UNTARGETABLE_BY_SPELLS
AnActor
with this attribute is untargetable by spells or hero powers due to an aura.- See Also:
-
SPELL_DAMAGE_MULTIPLIER
When aCard
that casts aDamageSpell
has this attribute, its bonus from spell damage is doubled.- See Also:
-
SPELL_DAMAGE_AMPLIFY_MULTIPLIER
When any friendlyEntity
has this attribute, all friendly spell damage effects (typically cast byDamageSpell
deal damage multiplied by this attribute's value.This implements Prophet Velen.
- See Also:
-
HERO_POWER_DAMAGE_AMPLIFY_MULTIPLIER
Applies a multiplier to the amount of hero damage the owning player's skill deals. -
HEAL_AMPLIFY_MULTIPLIER
When any friendlyEntity
has this attribute, all friendly healing effects that useGameLogic.heal(Player, Actor, int, Entity)
are multiplied by this attribute's value.This implements Prophet Velen.
-
SPELL_HEAL_AMPLIFY_MULTIPLIER
-
HERO_POWER_HEAL_AMPLIFY_MULTIPLIER
-
ATTACK_EQUALS_HP
An attribute that specifies that the attack of thisMinion
is equal to its hitpoints. -
AURA_ATTACK_EQUALS_HP
The aura version ofATTACK_EQUALS_HP
. -
CANNOT_ATTACK
When set, thisMinion
cannot attack. -
AURA_CANNOT_ATTACK
An Aura version ofCANNOT_ATTACK
. -
CANNOT_ATTACK_HEROES
When set, thisMinion
cannot target heroes with physical attacks.Unusually, this attribute affects the
.PhysicalAttackAction#canBeExecutedOn(GameContext, Player, Entity)
method instead of(GameContext, Player, GameAction, List)
. -
AURA_CANNOT_ATTACK_HEROES
An Aura version ofCANNOT_ATTACK_HEROES
-
INVERT_HEALING
Whens set on any entity, friendly healing effects deal damage instead. -
CANNOT_REDUCE_HP_BELOW_1
When set, the hitpoints of theActor
cannot be reduced below 1, typically just for the current turn. -
COUNTERED
When aCard
is played and countered (by e.g. Counterspell), it is marked with this attribute and its text is not executed. -
DIED_ON_TURN
-
HERO_POWER_FREEZES_TARGET
Deprecated.When anyEntity
alive has this attribute, the owning player's hero power freezes its target.Implements Ice Walker
-
HERO_POWERS_DISABLED
When anyEntity
alive has this attribute, BOTH player's hero powers are disabled.Implements Mindbreaker.
-
LAST_HIT
Records the amount of damage last sustained by anActor
. Typically used by anAttributeValueProvider
to feed a value into a spell (e.g., a healing spell may heal the owning player by the amount of damage last dealt to an entity). -
LAST_HEAL
Records the amount of healing last applied to thisActor
. -
PASSIVE_TRIGGERS
-
DECK_TRIGGERS
Marks that thisCard
has a trigger that should be active while it is in the deck. -
GAME_TRIGGERS
Marks that thisCard
has a trigger (this attribute) that should be active throughout the game. -
HERO_POWER_USAGES
This attribute indicates the maximum number of times a hero power can be used in a turn. It is an aura effect. The number of times a hero power can be used will be the max value found among in-play entities owned by the player. -
HERO_POWER_DAMAGE
AnEntity
with hero power damage contributes to the total hero power damage the player gets as a bonus to their base hero power damage. Applies toDamageSpell
based hero powers. -
SHADOWFORM
Shadowform implements a hero power upgrading mechanic.Implements the Shadowform card.
- See Also:
-
CTHUN_ATTACK_BUFF
This attribute keeps track of how much attack should be added to C'Thun.Implements the C'Thun mechanic.
-
CTHUN_HEALTH_BUFF
This attribute keeps track of how many hitpoints should be added to C'Thun.Implements the C'Thun mechanic.
-
CTHUN_TAUNT
This attribute marks that C'Thun will have Taunt when it is summoned.Implements the C'Thun mechanic.
-
SPELLS_COST_HEALTH
When anyEntity
has this attribute in play, spells cost health instead of mana.This attribute implements Chogall.
-
MINIONS_COST_HEALTH
When anyEntity
has this attribute in play, minions cost health instead of mana. -
MURLOCS_COST_HEALTH
-
TAKE_DOUBLE_DAMAGE
AnEntity
with this attribute takes twice the damage whenever it is dealt damage.- See Also:
-
AURA_TAKE_DOUBLE_DAMAGE
The Aura version ofTAKE_DOUBLE_DAMAGE
-
RUSH
-
AURA_RUSH
Aura version ofRUSH
-
JADE_BUFF
An attribute that keeps track of how much attack and hitpoints to add to the next Jade Golem that gets summoned. -
RANDOM_CHOICES
When anyEntity
has a non-zero value for this attribute, spells are cast with random targets, random discover choices are made, physical attacks target randomly, and battlecries target randomly.Implements Yogg-Saron, Hope's End; Servant of Yogg-Saron; Mayor Noggenfogger
-
QUEST
-
PACT
-
STARTED_IN_DECK
An attribute given toCard
entities that started in the player's deck, as opposed to being generated by other cards.Implements Open the Waygate quest.
-
STARTED_IN_HAND
An attribute given toCard
entities that started in the player's opening handImplements Hex Lord Malacrass.
-
PERMANENT
This attribute describes aMinion
that can never be targeted by spells, abilities, auras or physical attacks but does occupy a position on theSpellsource.ZonesMessage.Zones.BATTLEFIELD
.Implements permanents.
-
USER_ID
This attribute is aString
that describes the inventory owner (as opposed to in-match owner) of the card. -
ENTITY_INSTANCE_ID
ThisString
describes the instance of this specific entity inside the particular match. -
CARD_INVENTORY_ID
ThisString
is the inventory record ID of this card. -
DECK_ID
ThisString
is the ID of the deck this card is currently put into. -
DONOR_ID
ThisString
is the user ID of the player who opened the card pack that contained this card. -
CHAMPION_ID
ThisString
is the user ID of the player who is currently using a card that belongs to someone else. -
COLLECTION_IDS
ThisString
array is the collections this card belongs to, like the deck, user and alliances. -
ALLIANCE_ID
ThisString
is the ID of the alliance this card belongs to, if any. -
UNIQUE_CHAMPION_IDS_SIZE
-
UNIQUE_CHAMPION_IDS
Every unique user ID that has summoned this minion is stored in this attribute's array ofString
. -
LAST_MINION_DESTROYED_CARD_ID
-
LAST_MINION_DESTROYED_INVENTORY_ID
-
TOTAL_DAMAGE_DEALT
Every time anActor
damages a target, increment this attribute with the total amount of damage dealt across all games.This is a legacy mechanic. In a networked multiplayer environment, this value will persist between matches.
-
TOTAL_KILLS
Every time anActor
kills a target, increment this attribute. -
TOTAL_DAMAGE_RECEIVED
Every time anActor
receives damage, increment this attribute with the total amount of damage dealt. -
HEALING_THIS_TURN
Every time anActor
is healed, increment this attribute with the amount of healing and set to zero at the end of the turn. -
EXCESS_HEALING_THIS_TURN
Every time anActor
is healed, increment this attribute with the amount of healing and set to zero at the end of the turn. -
TOTAL_HP_INCREASES
Every time anActor
has its max HP increased, this value increases. -
DAMAGE_THIS_TURN
Every time anActor
is damaged, increment this attribute with the amount of damage and set it to zero at the end of the turn. -
MINIONS_SUMMONED_THIS_TURN
Every time aPlayer
successfully summons a minion, this counter is incremented on the summoning player. -
TOTAL_MINIONS_SUMMONED_THIS_TURN
Every time aPlayer
successfully summons a minion, this counter is incremented on both players -
WEAKEST_ON_BATTLEFIELD_WHEN_DESTROYED_COUNT
Whenever anActor
dies, increment this attribute by 1 if the actor had the lowest attack on the battlefield. -
POISONOUS
A shorthand implementation of the Poisonous keyword. Indicates that whenever the source minion deals more than 0 damage to the target minion, the target minion is destroyed. -
AURA_POISONOUS
An aura version ofPOISONOUS
-
LIFESTEAL
-
AURA_LIFESTEAL
An aura version ofLIFESTEAL
-
DOUBLE_END_TURN_TRIGGERS
Indicates that thePlayer
's end turn triggers should trigger twice.Implements Drakkari Enchanter.
-
PLAYED_FROM_HAND_OR_DECK
Indicates theInteger
turn that the specified card was played from the hand or the deck. -
MANA_SPENT
Indicates how much Mana the player spent to play the card -
COPIED_FROM
AnEntityReference
that, when set, indicates which entity this copied, if the entity copied withEntity.getCopy()
. -
NAME
Overrides the name of theEntity
-
DESCRIPTION
Overrides the description of theEntity
-
SPELLSOURCE_NAME
Indicates the name in Spellsource for the specified card. -
MANA_COST_MODIFIER
Returns theCard
'sCardDesc.manaCostModifier
field. -
USED_THIS_TURN
Indicates the number of uses of a hero power. -
MANA_SPENT_THIS_TURN
On the player entity, specifies how much mana has been spent this turn. -
HERO_CLASS
Returns theCard
'sCardDesc.heroClass
field. -
TARGET_SELECTION
Returns theCard
'sCardDesc.targetSelection
field. -
CARD_ID
When set, overrides the card's identity and makes it behave like a different card in all its base effects. -
EXTRA_TURN
Indicates how many extra turns the player has.Implements Open the Waygate.
-
TURN_TIME
Indicates the amount of time, in seconds, a player has to perform their turn. -
TURN_START_TIME_MILLIS
Indicates the time, in millis since the beginning of the match, that a player's turn was started. -
GAME_START_TIME_MILLIS
Indicates the time, in millis, that a game was started -
DISCARDED
Indicates how many cards the player has discarded during the game. -
GAME_STARTED
Indicates that the game has started for the specified player. -
TRANSFORM_REFERENCE
For entities that are in theSpellsource.ZonesMessage.Zones.REMOVED_FROM_PLAY
zone due to a transform effect, this attribute points to the entity that replaced this one. -
RECEIVED_ON_TURN
Whenever aCard
is received into the hand, this attribute indicates on which turn (typicallyGameContext.getTurn()
the card was received. -
KEEPS_ENCHANTMENTS
Remembers theATTACK_BONUS
,HP_BONUS
,LIFESTEAL
,WINDFURY
,POISONOUS
that was applied to theActor
that gets subjected to aShuffleToDeckSpell
.Implements Kingsbane.
-
NEVER_MULLIGANS
Whentrue
, indicates this card never appears in a mulligan. Typically used to implement passives. -
ECHO
Indicates the card will put a copy of itself into the player's hand after it is played. -
AURA_ECHO
The aura version ofECHO
. -
DEFLECT
Whenever aMinion
with this attribute is first attacked, it loses this attribute and the damage dealt to it is dealt to its owner's hero instead. -
INVOKE
Whenever aCard
with this attribute is in your hand, and you have at least the invoke amount of mana, you may gain an extra card with a bonus effect on it to cast with that extra mana. -
AURA_INVOKE
The aura version ofINVOKE
-
INVOKED
Indicates a card's invoke for the specified amount of mana.On a
Player
entity, indicates the number of cards that were invoked. -
REMOVES_SELF_AT_END_OF_TURN
Indicates that thisEntity
should remove itself from play peacefully at the end of the current turn. -
LAST_TURN
This value indicates the turn number of thePlayer
's last turn. -
AI_OPPONENT
Whentrue
, indicates thisPlayer
entity is an AI opponent.Implements AI-specific game logic like eliminating turn timers.
-
UNCENSORED
When set on a card in theSpellsource.ZonesMessage.Zones.DISCOVER
, indicates the card should be turned over and visible to the discovering player's opponent. -
MAGNETIC
Indicates the minion should magnetize when being played left of a mech instead of summoning normally -
MAGNETS
An array of card ID strings that correspond to which cards this card was magnetized from. -
HAND_INDEX
-
ROASTED
Indicates this card was roasted (removed from the top of the deck) by aRoastSpell
on the specifiedInteger
turn.Implements Warchef Gordo / Chef's Roast effect.
-
SUPREMACY
Indicates anActor
will do something when it attacks and kills a minion.Implements Alder Ravenwald / Dragoon's Supremacy effect.
-
SPELLS_CAST_TWICE
Implements Electra Stormsurge. -
SPELLS_CAST_THRICE
Self explanatory. -
ATTACK_MULTIPLIER
Applies a multiplier to the base attack plus bonus attack on anActor
. -
AURA_ATTACK_MULTIPLIER
The aura version ofATTACK_MULTIPLIER
. -
ATTACK_BONUS_MULTIPLIER
When non-zero, multiplies theATTACK_BONUS
,TEMPORARY_ATTACK_BONUS
,AURA_ATTACK_BONUS
andCONDITIONAL_ATTACK_BONUS
by this amount. In other words, a multiplier that only affects bonuses. -
AURA_ATTACK_BONUS_MULTIPLIER
The aura version ofATTACK_BONUS_MULTIPLIER
. -
CANT_GAIN_ENCHANTMENTS
Will block an entity from receiving game event triggers -
FREEZES_PERMANENTLY
Indicates a character shouldn't naturally lose the FROZEN attribute -
STEALTH_FOR_TURNS
Indicates how many turns an actor should haveSTEALTH
for -
CASTED_ON_FRIENDLY_MINION
Indicates that the spell was played targeting a friendly minion Implements Lynessa Sunsorrow -
ATTACKS_THIS_GAME
Tracks the amount of times an actor has attacked over the course of a game -
BEING_PLAYED
Tracks a card being in the progress of playing -
QUICK_DRAW
Marks a card as using a "Quick Draw" effect for the Outlaw class -
RESERVED_INTEGER_1
Allows spell effects to count and keep track of values without a dedicate enchantment. -
RESERVED_INTEGER_2
Allows spell effects to count and keep track of values without a dedicated enchantment. -
RESERVED_INTEGER_3
Allows spell effects to count and keep track of values without a dedicated enchantment. -
RESERVED_INTEGER_4
Allows spell effects to count and keep track of values without a dedicated enchantment. -
RESERVED_INTEGER_5
Allows spell effects to count and keep track of values without a dedicated enchantment. -
RESERVED_BOOLEAN_1
Allows spell effects to mark things without a dedicated enchantment. -
RESERVED_BOOLEAN_2
Allows spell effects to mark things without a dedicated enchantment. -
RESERVED_BOOLEAN_3
Allows spell effects to mark things without a dedicated enchantment. -
RESERVED_BOOLEAN_4
Allows spell effects to mark things without a dedicated enchantment. -
RESERVED_BOOLEAN_5
Allows spell effects to mark things without a dedicated enchantment. -
SUPREMACIES_THIS_GAME
Counts the number of supremacies (kills, but not overkills) that theActor
has achieved. -
CHOICE_SOURCE
Records theEntityReference
of this choose one spell card's source card. -
DISABLE_FATIGUE
When set on thePlayer
entity, that player no longer takes fatigue damage. -
TIMES_HEALED
-
SUMMONED_ON_TURN
Indicates which turn a minion was summoned. -
SUMMONED_BY_PLAYER
The player ID of the owner of the source entity that summoned this minion. -
ATTACKS_THIS_TURN
Indicates the number of attacks thisActor
has made this turn. -
DEMONIC_FORM
The number of turns a player has for Demonic Form -
WITHER
Indicates this actor has a wither effect active on it. Does not actually implement the wither. -
WITHERED
Indicates this actor has been withered. -
SCHEME
Counter for each time a "XXXXX's Scheme" card has upgraded -
LACKEY
Indicates a minion is part of the "___ Lackey" subset of cards for the Year of the Dragon -
DECAY
Indicates the decay keyword, which causes the entity to lose one health/armor/durability at the end of every owner's turnRequires an appropriate trigger to actually implement the effect.
-
AURA_DECAY
-
TREANT
Indicates a minion is an official Treant, considered for Treant-related synergies -
DRAINED_THIS_TURN
Indicates how much an entity hasDrainSpell
drained this turn. -
TOTAL_DRAINED
Indicates how much an entity hasDrainSpell
drained over its lifetime. -
DRAINED_LAST_TURN
Indicates how much an entity hasDrainSpell
drained last turn. -
SURGE
The keyword for cards with Surge (a bonus gained when the card is drawn that turn). -
DYNAMIC_DESCRIPTION
An override for the entity's description that indicates it has anDynamicDescription
.Contains an array of
DynamicDescriptionDesc
-
PASSIVE_AURAS
Stores passive auras, i.e., auras that are active while the entity is in the hand. -
CURSE
-
DRAIN
Drain indicates the card will deal damage to the specified target and buffs the source's HP by that amount.- See Also:
-
TOTAL_MINION_DAMAGE_DEALT_THIS_GAME
Records how much damage was dealt to minions by this player or entity this game. -
ATTACKS_LAST_TURN
Records how many attacks last turn an actor made. -
DISCOVER
An attribute that indicates a card can be used to Discover something, offering a choice of 3 options to the player with a 4x increase in frequency of class cards.This is only really used for one Trader card right now, but it seemed like a useful one to add for future cards and their effects.
-
ARTIFACT
Signifies that this card is an Artifact, a type of token card added by What Lies Beneath. Used to easily identify them for synergy purposes. -
TOTAL_DAMAGE_DEALT_THIS_GAME
Keeps track of damage dealt by thissource
minion this game. -
SIGNATURE
Attribute determining which card is the "Signature" for Ringmaster cards. -
STARTING_TURN
When set on a player entity, indicates the player is currently in the starting turn phase. -
CASTS_WHEN_DRAWN
Attribute to track if a spell should cast itself automatically when drawn, also drawing another card in the process. -
EIDOLON_RACE
Stores the Eidolon effect tribe. -
AURA_MIN_ATTACK
Represents the minimum attack that auras can reduce an actor's attack to -
AFTERMATH_COUNT
The number of aftermaths active on this entity. -
IMBUE
Indicates that a card makes use of the Imbue keyword, specifically using up a chargeAlso used to store the number of Imbue charges on the player
-
STARTING_HAND_DRAWN
Indicates the player has drawn their starting hand. Essentially the end of the start-of-game phase. -
DESTROYED_BY
TheEntityReference
of the entity that destroyed this one.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
toKeyCase
-
getCardEnchantmentAttributes
Contains the list of attributes that enchant cards as opposed to actors.- Returns:
- A list of attributes.
-
getAuraAttributes
Contains attributes that are theAura
version of a corresponding attribute.- Returns:
- A list of attributes.
-
getStoresTurnNumberAttributes
Contains the set of attributes that store turn numbers.This affects whether or not the entity is considered having an integer attribute in the
Entity.hasAttribute(Attribute)
call.- Returns:
- A set of attributes.
-
getEnchantmentLikeAttributes
-
DoubleBattlecriesAura
.