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.ATTRIBUTEto the specified targets.Modifies theAuraArg.ATTRIBUTEan 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_BONUSandAuraArg.HP_BONUSto the target entities as long as theAuraArg.CONDITIONis 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_CONDITIONis met.Indicates that a choose one card's choices should be overridden by theAuraArg.CHOOSE_ONE_OVERRIDEChooseOneOverridevalue whenever thetargetcard is affected by this aura or if this aura'stargetis thePlayerentity (EntityReference.FRIENDLY_PLAYERorEntityReference.ENEMY_PLAYER) that owns the card being override.Performs the effect in theAuraArg.APPLY_EFFECTon 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.COMBOcards withComboSpelldecorated spells cast twice.When in play, aftermaths fire twice.When this aura is in play, abilities triggered by the turn ending trigger twice.Deprecated.GivesGatekeeperShaValueProviderthe amount to increase the numbers written on spells by.Gives spells decorated withHeroPowerSpellthe 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_TARGETentities (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'sBuffSpellbonuses with the specifiedAuraArg.ATTACK_BONUSandAuraArg.HP_BONUSeffects.Whenever a card affected by this aura has aTemporaryAttackSpelleffect, 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 anActorhas this aura, its physical attack targets are the entities that are affected by this aura.When this aura is in play, theReservoirConditionalways evaluates totrueandReservoirSpellalways include their bonus effects.When this aura is in play,ReservoirSpelleffects are never activated andReservoirConditionalways evalutes tofalse.When this aura is active, spells fromSecretwill be performed twiceThis aura tricksSpecificCardFilterinto thinking the affected entities are actuallyAuraArg.CARD.Causes effects (rather than spells specifically) to occur twice.As long as thePlayerentity that matches theplayerIdof 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_CONDITIONis met on the spell's target.Actors affected by this aura will get spells cast on them twice if theAuraArg.SPELL_CONDITIONis 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 (WillEndSequenceTriggerandBoardChangedTrigger) fire and any additional triggers inAuraArg.TRIGGERSfire.When this aura is active, subspells ofSupremacySpellwill 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 theirTargetSelectionset to this aura'sAuraArg.TARGET_SELECTION.Implements Thelia Silentdreamer's effect, which is aSpellsCastTwiceAuraas long as the target is itself.
IsDamagedConditionwhoseConditionArg.TARGETis theEntityReference.TRIGGER_HOST(i.e.