Events correspond to things that happen inside the game that other rules can react to.
Interface Summary Interface Description HasValueIndicates an event has a value, typically the damage dealt or mana changed, etc. Notification
Class Summary Class Description AbstractDamageEventBase class for damage events. AbstractQuestEvent AfterCardPlayedEventThe card's effects have occurred and it has been moved to the graveyard. AfterPhysicalAttackEventThe damage has been dealt, all effects due to damage have been resolved, and now the physical attack has complete. AfterSpellCastedEventA spell has been casted with
sourcecard and, if the user selected the target, the
AfterSummonEventThe minion is on the board and its enchantments are in play. ArmorChangedEventThe amount of armor on the hero has changed. AttributeAppliedEventAn attribute was applied to the
BasicGameEventConstruct and fire this event from an
GameEvent.EventTypeEnumand the desired
BeforePhysicalAttackEventBefore the attack happens and damage dealt is calculated. BeforeSummonEventFires right after the minion has hit the board. BoardChangedEventFires whenever the board may have changed. CardAddedToDeckEventA card was inserted or shuffled into the deck, including "extra copies." CardEventA base class for events that have cards associated with them. CardPlayedEventThe card is played from the hand. CardRevealedEventA card was revealed. DamageEvent DidEndSequenceEventThe
GameEvent.getTargetPlayerId()ended their sequence.
DiscardEventA card was discarded. DiscoverEventA card was discovered (sourced). DrainEventA target was
DrawCardEventA card was put into the hand. EnrageChangedEvent ExcessHealingEventA
targetwas healed with excess healing (i.e.
FatigueEventAn attempt to draw from an empty deck occurred and the drawing player took damage. GameEventThe base class for game events, or things that happen during the execution of a
GameActionthat other game rules may react to.
GameStartEventThe game has started. HealEvent HeroPowerUsedEventA skill was used. InvokedEvent JoustEventA joust event describes which cards were drawn and who won a joust from a point of view of a particular player. KillEventA minion was killed. MaxHpIncreasedEvent
MaxManaChangedEventThe maximum amount of Lun the player has increased. ModifyCurrentManaEventLun has been gained or lost. OverloadEventLun was overloaded (i.e. PhysicalAttackEvent PreDamageEventJust before damage is dealt. PreGameStartEventJust before the game starts. QuestPlayedEventA quest was played. QuestSuccessfulEventA quest has processed. ReturnToHandEventEncapsulates the information related to returning a target to the hand. RoastEventA card was roasted (discarded from the deck). SecretPlayedEventA secret was played. SecretRevealedEventA secret was revealed. ShuffledEventA card was shuffled. SilenceEvent SpellCastedEventA spell was casted on the specified target. SummonEventA minion was summoned and its openers were resolved if
TargetAcquisitionEventA target will be acquired for the specified game action. TouchingNotificationAn entity is being "touched" by the client. TriggerFiredA trigger was fired from the specified enchantment. TurnEndEventThe player ended their turn. TurnStartEventThe player started their turn. ValueEventAn event that contains a value. WeaponDestroyedEventThe player destroyed their weapon. WeaponEquippedEventThe player equipped a weapon. WillEndSequenceEventThe sequence is about to end.