Class BuffAura
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Entity>
,HasDesc<AuraDesc>
,HasCard
,Trigger
A buff aura applies the specified
AuraArg.ATTACK_BONUS
and AuraArg.HP_BONUS
to the target entities as
long as the AuraArg.CONDITION
is satisfied.
To support reevaluating the condition at different times, optionally specify an AuraArg.SECONDARY_TRIGGER
that fires when the condition ought to change. Otherwise, the condition is evaluated at the same time all other auras
are, which is whenever the board changes or a sequence ends. Updating auras when the sequence ends is almost always a
sufficient event to react to in order to implement an effect.
The underlying attributes used for this buff are Attribute.AURA_ATTACK_BONUS
and Attribute.AURA_HP_BONUS
.
For example, to give all damaged Murlocs +3/+3:
{ "class": "BuffAura", "attackBonus": 1, "hpBonus": 1, "target": "ALL_MINIONS" "filter": { "class": "RaceFilter", "race": "MURLOC" }, "condition": { "class": "DamagedCondition" } }
-
Field Summary
Fields inherited from class net.demilich.metastone.game.spells.aura.SpellAura
applyAuraEffect, removeAuraEffect
Fields inherited from class net.demilich.metastone.game.spells.aura.Aura
DEFAULT_TRIGGERS, EMPTY_TRIGGERS
Fields inherited from class net.demilich.metastone.game.spells.trigger.Enchantment
activated, activationTriggers, added, copyToActor, countByValue, countUntilCast, expirationTriggers, expired, firesThisSequence, hostReference, keepAfterTransform, maxFiresPerSequence, oneTurn, persistentOwner, spell, triggers, usesSpellTrigger, zones
Fields inherited from class net.demilich.metastone.game.entities.Entity
attributes, effectSource, entityLocation, name, NO_OWNER, sourceCard
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AuraDesc
create
(int attackBonus, int hpBonus, EntityReference target) Methods inherited from class net.demilich.metastone.game.spells.aura.SpellAura
getApplyAuraEffect, getRemoveAuraEffect, setApplyAuraEffect, setRemoveAuraEffect
Methods inherited from class net.demilich.metastone.game.spells.aura.Aura
affects, applied, applyAuraEffect, cast, clone, expire, getAffectedEntities, getCondition, getCopy, getDefaultTriggers, getDesc, getDescription, getEntityFilter, getName, getSecondaryTarget, getTargets, isPersistentOwner, notApplied, onAdd, onGameEvent, removeAuraEffect, setDesc
Methods inherited from class net.demilich.metastone.game.spells.trigger.Enchantment
activate, endOfSequence, fires, getActivationTriggers, getCountUntilCast, getDefaultBattlefieldZones, getDefaultBattlefieldZonesSet, getDefaultDeckZones, getDefaultGameZones, getDefaultPassiveZones, getDefaultZones, getEntityType, getEntrySet, getExpirationTriggers, getFires, getHostReference, getMaxFires, getMaxFiresPerSequence, getOneTurn, getSourceCard, getSpell, getTriggers, getUsesSpellTrigger, getZones, innerQueues, interestedIn, isActivated, isCopyToActor, isCountByValue, isExpired, isKeptAfterTransform, oneTurnOnly, process, queues, setActivated, setActivationTriggers, setCopyToActor, setCountByValue, setCountUntilCast, setExpirationTriggers, setFires, setHostReference, setKeepAfterTransform, setMaxFires, setMaxFiresPerSequence, setOneTurn, setPersistentOwner, setSpell, setTriggers, setUsesSpellTrigger, setZones, shouldNotifyEnchantmentFired, toString
Methods inherited from class net.demilich.metastone.game.entities.Entity
compareTo, diedOnBattlefield, evaluateDescriptions, getAttribute, getAttributes, getAttributeValue, getAttributeValue, getCardInventoryId, getCopySource, getDescription, getDynamicDescription, getEffectSource, getEntityLocation, getGameTriggers, getId, getIndex, getMaxNumberOfAttacks, getOwner, getRace, getReference, getUserId, getZone, hasAttribute, hasPersistentEffects, isDestroyed, isInPlay, isRemovedPeacefully, modifyAttribute, modifyHpBonus, moveOrAddTo, moveOrAddTo, resetEntityLocations, setAttribute, setAttribute, setAttribute, setDescription, setEffectSource, setEntityLocation, setId, setName, setOwner, setSourceCard, setUserId, transformResolved, transformResolved
-
Constructor Details
-
BuffAura
-
-
Method Details
-
create
-