Package net.demilich.metastone.game.spells.aura
package net.demilich.metastone.game.spells.aura
Code related to auras.
- See Also:
-
ClassesClassDescriptionConfigures an aura with the appropriate trigger to include friendly cards, including cards that are currently being played, in its affected entities list.Grants an
AuraArg.ATTRIBUTE
to the specified targets.Modifies theAuraArg.ATTRIBUTE
an amount specified inAuraArg.VALUE
, which must be an integer.Auras represent ongoing effects applied to certain entities and is updated whenever (1) the board changes, (2) a sequence ends, (3) a special secondary trigger is fired, or (4) a condition is changed during these earlier events.A buff aura applies the specifiedAuraArg.ATTACK_BONUS
andAuraArg.HP_BONUS
to the target entities as long as theAuraArg.CONDITION
is satisfied.The Capt'n Cookish aura changes to random the player selected targets of spells cast by the owner of the aura.Changes the targeted card's card ID to match the specifiedAuraArg.CARD
, allowing its behaviour to change.When this is in play, the player can only afford to play a card ifAuraArg.CAN_AFFORD_CONDITION
is met.Indicates that a choose one card's choices should be overridden by theAuraArg.CHOOSE_ONE_OVERRIDE
ChooseOneOverride
value whenever thetarget
card is affected by this aura or if this aura'starget
is thePlayer
entity (EntityReference.FRIENDLY_PLAYER
orEntityReference.ENEMY_PLAYER
) that owns the card being override.Performs the effect in theAuraArg.APPLY_EFFECT
on cards that were not selected in aSpellUtils.discoverCard(GameContext, Player, Entity, SpellDesc, CardList)
effect.When this aura is in play, battlecries trigger twice.When this is in play,Attribute.COMBO
cards withComboSpell
decorated spells cast twice.When in play, aftermaths fire twice.When this aura is in play, abilities triggered by the turn ending trigger twice.Deprecated.GivesGatekeeperShaValueProvider
the amount to increase the numbers written on spells by.Gives spells decorated withHeroPowerSpell
the given bonus affect inAuraArg.APPLY_EFFECT
."Both players" now only affects the friendly player.Entities affected by this aura are targetable by spells and skills but the effects of those spells and skills are neutralized.When in play, source cards affected by this aura will grant armor instead of lifedrain.When in play, cards affected by this aura will also give the lifedrain healing bonus toAuraArg.SECONDARY_TARGET
entities (excluding the entity that normally receives the healing).ModifiesRace.hasRace(GameContext, Entity, String)
calls to behave as though the entity being compared (typically the left hand side of the comparison) is also every race specified inAuraArg.RACES
.Modifies the target card'sBuffSpell
bonuses with the specifiedAuraArg.ATTACK_BONUS
andAuraArg.HP_BONUS
effects.Whenever a card affected by this aura has aTemporaryAttackSpell
effect, the value of temporary attack is increased by theAuraArg.VALUE
.Noggenfogger auras override the target acquisitions of both players wheneverNoggenfoggerAura.getValidTargets(GameContext, TargetAcquisitionEvent)
returns a non-empty list of entities.When anActor
has this aura, its physical attack targets are the entities that are affected by this aura.When this aura is in play, theReservoirCondition
always evaluates totrue
andReservoirSpell
always include their bonus effects.When this aura is in play,ReservoirSpell
effects are never activated andReservoirCondition
always evalutes tofalse
.When this aura is active, spells fromSecret
will be performed twiceThis aura tricksSpecificCardFilter
into thinking the affected entities are actuallyAuraArg.CARD
.Causes effects (rather than spells specifically) to occur twice.As long as thePlayer
entity that matches theplayerId
of an effect is in this aura'sAura.getAffectedEntities()
, spells whose key/value pairs are a superset of theAura.removeAuraEffect(net.demilich.metastone.game.GameContext, net.demilich.metastone.game.entities.Entity)
have their key/values overwritten by the spells inAura.applyAuraEffect(net.demilich.metastone.game.GameContext, net.demilich.metastone.game.entities.Entity)
.Actors affected by this aura will get spells cast on them thrice if theAuraArg.SPELL_CONDITION
is met on the spell's target.Actors affected by this aura will get spells cast on them twice if theAuraArg.SPELL_CONDITION
is met on the spell's target.When this aura is in play, spells with minion targets also target adjacent minions.This class maintains a stateful aura for anAttribute
, increasing or decreasing its value by the appropriate amount whenever the main aura triggers (WillEndSequenceTrigger
andBoardChangedTrigger
) fire and any additional triggers inAuraArg.TRIGGERS
fire.When this aura is active, subspells ofSupremacySpell
will be cast twice.Gives a bonus effect to the player's supremacies specified in this aura'sAuraArg.APPLY_EFFECT
.Entities affected by this aura, like minions with battlecries and spells, have theirTargetSelection
set to this aura'sAuraArg.TARGET_SELECTION
.Implements Thelia Silentdreamer's effect, which is aSpellsCastTwiceAura
as long as the target is itself.
IsDamagedCondition
whoseConditionArg.TARGET
is theEntityReference.TRIGGER_HOST
(i.e.