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 ConstantsEnum ConstantDescriptionThe number of aftermaths active on this entity.Whentrue, indicates thisPlayerentity is an AI opponent.ThisStringis 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 theMinionattack.When non-zero, multiplies theATTACK_BONUS,TEMPORARY_ATTACK_BONUS,AURA_ATTACK_BONUSandCONDITIONAL_ATTACK_BONUSby this amount.An attribute that specifies that the attack of thisMinionis 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 thisActorhas made this turn.The amount of attack added by all theAuraeffects 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_HEROESWhen 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 theAuraeffects that target the entity.Grants an immunity aura when present on an entity.An Aura version ofIMMUNE_WHILE_ATTACKING.The aura version ofINVOKEAn aura version ofLIFESTEALRepresents the minimum attack that auras can reduce an actor's attack toAn aura version ofPOISONOUSAura version ofRUSHThe aura version of spell damage.The aura version ofSTEALTHThe Aura version ofTAKE_DOUBLE_DAMAGELike taunt, but created as a result of anAura.AnActorwith this attribute is untargetable by spells or hero powers due to an aura.An aura version ofWINDFURYThe 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, thisMinioncannot attack.When set, thisMinioncannot target heroes with physical attacks.When set, the hitpoints of theActorcannot 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.ThisStringis 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.ThisStringis 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 theEntityReferenceof this choose one spell card's source card.An array of integer choices, forCastFromGroupSpell, to allow adaptation choices to replay correctly.ACardwith this attribute signals that it has two options that a player chooses from when the card is played.ThisStringarray is the collections this card belongs to, like the deck, user and alliances.When a comboCardis played after another card, an effect is triggered.A conditional attack bonus for theActorthat corresponds to bonuses from anEnrageSpell,ConditionalAttackBonusSpellorSetAttributeSpell.AnEntityReferencethat, when set, indicates which entity this copied, if the entity copied withEntity.getCopy().Indicates that thisCardcosts health instead of mana when played from the hand.When aCardis 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 anActoris damaged, increment this attribute with the amount of damage and set it to zero at the end of the turn.AnEntitywithDEATHRATTLEScasts 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 turnThisStringis the ID of the deck this card is currently put into.Marks that thisCardhas a trigger that should be active while it is in the deck.Whenever aMinionwith 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 theEntityWhen the entity has this attribute, it is destroyed.TheEntityReferenceof the entity that destroyed this one.When set on thePlayerentity, 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 theActorhas a divine shield.ThisStringis 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 hasDrainSpelldrained last turn.Indicates how much an entity hasDrainSpelldrained 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 anEntitycontributes to this owner's enemy.ThisMinionwill typically gain an attack bonus after it is dealt damage the first time.When anActorisENRAGED, itsCONDITIONAL_ATTACK_BONUSis set to the amount of damage gained by anEnrageSpell.ThisStringdescribes the instance of this specific entity inside the particular match.Every time anActoris 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 frozenActorcannot attack.Indicates the time, in millis, that a game was startedIndicates that the game has started for the specified player.Marks that thisCardhas a trigger (this attribute) that should be active throughout the game.When any friendlyEntityhas 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 anEntitycontributes.Every time anActoris healed, increment this attribute with the amount of healing and set to zero at the end of the turn.Returns theCard'sCardDesc.heroClassfield.AnEntitywith 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 anyEntityalive has this attribute, BOTH player's hero powers are disabled.The number of hit points theActorcurrently has.The amount of hitpoints added by all theBuffSpelleffects on the entity.Indicates that a card makes use of the Imbue keyword, specifically using up a chargeAn immuneActordoes not take any damage.AnActorwith 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 aCardwith 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,POISONOUSthat was applied to theActorthat 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.manaCostModifierfield.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 theActorcan have.AnActorwithMEGA_WINDFURYhas four attacks per turn.When anyEntityhas this attribute in play, minions cost health instead of mana.Every time aPlayersuccessfully summons a minion, this counter is incremented on the summoning player.Overrides the name of theEntityWhentrue, indicates this card never appears in a mulligan.An attribute that tracks the number of attacks theActorhas this turn.Some cards give the opponent spell damage.TheIntegeramount 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 aMinionthat can never be targeted by spells, abilities, auras or physical attacks but does occupy a position on theSpellsource.ZonesMessage.Zones.BATTLEFIELD.Indicates theIntegerturn 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 anyEntityhas 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 aCardis received into the hand, this attribute indicates on which turn (typicallyGameContext.getTurn()the card was received.Indicates that thisEntityshould 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 aRoastSpellon the specifiedIntegerturn.Counter for each time a "XXXXX's Scheme" card has upgradedACardhas 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 anEntitywas silenced.The total amount of spell damage that anEntitycontributes.When any friendlyEntityhas this attribute, all friendly spell damage effects (typically cast byDamageSpelldeal damage multiplied by this attribute's value.When aCardthat casts aDamageSpellhas this attribute, its bonus from spell damage is doubled.Self explanatory.Implements Electra Stormsurge.When anyEntityhas this attribute in play, spells cost health instead of mana.Indicates the name in Spellsource for the specified card.An attribute given toCardentities that started in the player's deck, as opposed to being generated by other cards.An attribute given toCardentities 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.AMinionwith stealth cannot be targeted by spells, hero powers or physical attacks until it attacks.Indicates how many turns an actor should haveSTEALTHforThe player ID of the owner of the source entity that summoned this minion.Indicates which turn a minion was summoned.Summoning sickness prevents aMinionfrom attacking the same turn it is played or summoned.Counts the number of supremacies (kills, but not overkills) that theActorhas achieved.Indicates anActorwill 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).AnEntitywith this attribute takes twice the damage whenever it is dealt damage.Returns theCard'sCardDesc.targetSelectionfield.A one-turn long attack bonus given to theActor.Indicates how many times the targetActorhas been healed.Every time anActordamages a target, increment this attribute with the total amount of damage dealt across all games.Keeps track of damage dealt by thissourceminion this game.Every time anActorreceives damage, increment this attribute with the total amount of damage dealt.Indicates how much an entity hasDrainSpelldrained over its lifetime.Every time anActorhas its max HP increased, this value increases.Every time anActorkills a target, increment this attribute.Records how much damage was dealt to minions by this player or entity this game.Every time aPlayersuccessfully summons a minion, this counter is incremented on both playersFor entities that are in theSpellsource.ZonesMessage.Zones.REMOVED_FROM_PLAYzone 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.AnActorwithUNLIMITED_ATTACKShas unlimited attacks per turn.Marks anActorto be untargetable by an opponent's spells or hero powers.Marks anActorto be untargetable by spells or hero powers.Indicates the number of uses of a hero power.This attribute is aStringthat describes the inventory owner (as opposed to in-match owner) of the card.Whenever anActordies, 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 theAuraversion 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 AttributeReturns 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 thisCardcosts 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 theActorcurrently 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 theMinionthis card would summon. -
ATTACK_BONUS
An attack bonus that should be applied to theMinionattack. -
MAX_HP
The maximum number of hitpoints theActorcan have. -
ARMOR
-
TEMPORARY_ATTACK_BONUS
A one-turn long attack bonus given to theActor. -
HP_BONUS
The amount of hitpoints added by all theBuffSpelleffects on the entity. -
AURA_ATTACK_BONUS
The amount of attack added by all theAuraeffects that target the entity. -
AURA_HP_BONUS
The amount of hitpoints added by all theAuraeffects 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 theActorthat corresponds to bonuses from anEnrageSpell,ConditionalAttackBonusSpellorSetAttributeSpell. 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.GRAVEYARDorSpellsource.ZonesMessage.Zones.REMOVED_FROM_PLAYzones.At the end of
GameLogic.performGameAction(int, GameAction)inGameLogic.endOfSequence(), all entities withDESTROYEDwill 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
Heroshould take when the player draws a card.- See Also:
-
FROZEN
A frozenActorcannot 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
ThisMinionwill typically gain an attack bonus after it is dealt damage the first time. -
SILENCED
Records that anEntitywas silenced. Silencing clears all attributes and effects. -
WINDFURY
-
AURA_WINDFURY
An aura version ofWINDFURY -
MEGA_WINDFURY
AnActorwithMEGA_WINDFURYhas four attacks per turn.- See Also:
-
UNLIMITED_ATTACKS
AnActorwithUNLIMITED_ATTACKShas unlimited attacks per turn.- See Also:
-
TAUNT
AnActorwithTAUNTmust be targeted by opposingPhysicalAttackActionactions first. This means theMinionwithTAUNTacts 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 anEntitycontributes. -
AURA_SPELL_DAMAGE
The aura version of spell damage. -
HEALING_BONUS
The additional amount of healing anEntitycontributes. -
ENEMY_HEALING_BONUS
The additional amount of healing anEntitycontributes 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 theActorhas 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 anActorisENRAGED, itsCONDITIONAL_ATTACK_BONUSis set to the amount of damage gained by anEnrageSpell.- See Also:
-
BATTLECRY
-
DOUBLE_BATTLECRIES
Deprecated.since the introduction ofDoubleBattlecriesAura.AnEntitywithDOUBLE_BATTLECRIEScauses other friendly battlecries to occur twice.This implements Brann Bronzebeard's text.
-
DEATHRATTLES
AnEntitywithDEATHRATTLEScasts 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.AnEntitywithDOUBLE_DEATHRATTLEScauses other friendly deathrattles to occur twice.This implements Baron Rivendare's text.
-
IMMUNE
An immuneActordoes not take any damage. -
IMMUNE_WHILE_ATTACKING
AnActorwith 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 theActorhas 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
AMinionwith 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
ACardhas this attribute to help spells find secrets in the deck.Cards marked secret should not be revealed to the opponent.
-
COMBO
When a comboCardis played after another card, an effect is triggered. -
OVERLOAD
-
OVERLOADED_THIS_GAME
TheIntegeramount of mana overloaded overloaded by the player over the course of the game. -
CHOOSE_ONE
ACardwith 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.-1indicates 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.AMinionwith this attribute causes both choose one options of aCardwithCHOOSE_ONEto be played.This implements the Fandral Staghelm card text.
-
SUMMONING_SICKNESS
Summoning sickness prevents aMinionfrom attacking the same turn it is played or summoned. Minions withCHARGEdo 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 anActorto 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 anActorto be untargetable by an opponent's spells or hero powers.- See Also:
-
for the complete target selection logic.
-
AURA_UNTARGETABLE_BY_SPELLS
AnActorwith this attribute is untargetable by spells or hero powers due to an aura.- See Also:
-
SPELL_DAMAGE_MULTIPLIER
When aCardthat casts aDamageSpellhas this attribute, its bonus from spell damage is doubled.- See Also:
-
SPELL_DAMAGE_AMPLIFY_MULTIPLIER
When any friendlyEntityhas this attribute, all friendly spell damage effects (typically cast byDamageSpelldeal 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 friendlyEntityhas 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 thisMinionis equal to its hitpoints. -
AURA_ATTACK_EQUALS_HP
The aura version ofATTACK_EQUALS_HP. -
CANNOT_ATTACK
When set, thisMinioncannot attack. -
AURA_CANNOT_ATTACK
An Aura version ofCANNOT_ATTACK. -
CANNOT_ATTACK_HEROES
When set, thisMinioncannot 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 theActorcannot be reduced below 1, typically just for the current turn. -
COUNTERED
When aCardis 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 anyEntityalive has this attribute, the owning player's hero power freezes its target.Implements Ice Walker
-
HERO_POWERS_DISABLED
When anyEntityalive 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 anAttributeValueProviderto 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 thisCardhas a trigger that should be active while it is in the deck. -
GAME_TRIGGERS
Marks that thisCardhas 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
AnEntitywith hero power damage contributes to the total hero power damage the player gets as a bonus to their base hero power damage. Applies toDamageSpellbased 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 anyEntityhas this attribute in play, spells cost health instead of mana.This attribute implements Chogall.
-
MINIONS_COST_HEALTH
When anyEntityhas this attribute in play, minions cost health instead of mana. -
MURLOCS_COST_HEALTH
-
TAKE_DOUBLE_DAMAGE
AnEntitywith 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 anyEntityhas 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 toCardentities 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 toCardentities that started in the player's opening handImplements Hex Lord Malacrass.
-
PERMANENT
This attribute describes aMinionthat 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 aStringthat describes the inventory owner (as opposed to in-match owner) of the card. -
ENTITY_INSTANCE_ID
ThisStringdescribes the instance of this specific entity inside the particular match. -
CARD_INVENTORY_ID
ThisStringis the inventory record ID of this card. -
DECK_ID
ThisStringis the ID of the deck this card is currently put into. -
DONOR_ID
ThisStringis the user ID of the player who opened the card pack that contained this card. -
CHAMPION_ID
ThisStringis the user ID of the player who is currently using a card that belongs to someone else. -
COLLECTION_IDS
ThisStringarray is the collections this card belongs to, like the deck, user and alliances. -
ALLIANCE_ID
ThisStringis 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 anActordamages 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 anActorkills a target, increment this attribute. -
TOTAL_DAMAGE_RECEIVED
Every time anActorreceives damage, increment this attribute with the total amount of damage dealt. -
HEALING_THIS_TURN
Every time anActoris 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 anActoris healed, increment this attribute with the amount of healing and set to zero at the end of the turn. -
TOTAL_HP_INCREASES
Every time anActorhas its max HP increased, this value increases. -
DAMAGE_THIS_TURN
Every time anActoris 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 aPlayersuccessfully summons a minion, this counter is incremented on the summoning player. -
TOTAL_MINIONS_SUMMONED_THIS_TURN
Every time aPlayersuccessfully summons a minion, this counter is incremented on both players -
WEAKEST_ON_BATTLEFIELD_WHEN_DESTROYED_COUNT
Whenever anActordies, 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 theIntegerturn 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
AnEntityReferencethat, 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.manaCostModifierfield. -
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.heroClassfield. -
TARGET_SELECTION
Returns theCard'sCardDesc.targetSelectionfield. -
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_PLAYzone due to a transform effect, this attribute points to the entity that replaced this one. -
RECEIVED_ON_TURN
Whenever aCardis 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,POISONOUSthat was applied to theActorthat 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 aMinionwith 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 aCardwith 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
Playerentity, indicates the number of cards that were invoked. -
REMOVES_SELF_AT_END_OF_TURN
Indicates that thisEntityshould 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 thisPlayerentity 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 aRoastSpellon the specifiedIntegerturn.Implements Warchef Gordo / Chef's Roast effect.
-
SUPREMACY
Indicates anActorwill 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_BONUSandCONDITIONAL_ATTACK_BONUSby 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 haveSTEALTHfor -
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 theActorhas achieved. -
CHOICE_SOURCE
Records theEntityReferenceof this choose one spell card's source card. -
DISABLE_FATIGUE
When set on thePlayerentity, 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 thisActorhas 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 hasDrainSpelldrained this turn. -
TOTAL_DRAINED
Indicates how much an entity hasDrainSpelldrained over its lifetime. -
DRAINED_LAST_TURN
Indicates how much an entity hasDrainSpelldrained 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 thissourceminion 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
TheEntityReferenceof 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 theAuraversion 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.