Class MaxHpIncreasedTrigger

All Implemented Interfaces:
Serializable, Cloneable, HasDesc<EventTriggerDesc>

public final class MaxHpIncreasedTrigger extends EventTrigger
Fires whenever the matching entity's Attribute.MAX_HP is increased via the GameLogic.setHpAndMaxHp(Actor, int) effect.

Does not trigger off of ModifyAttributeSpell.

Values at the time of firing
Field Value
EntityReference.EVENT_SOURCE null
EntityReference.EVENT_TARGET the target of the increase
EventTriggerArg.TARGET_PLAYER the owner of the target
EventTriggerArg.SOURCE_PLAYER the player that performed the increase
EventValueProvider the amount Attribute.MAX_HP was increased
See Also:
  • Constructor Details

  • Method Details

    • innerQueues

      protected boolean innerQueues(GameEvent event, Enchantment enchantment, Entity host)
      Description copied from class: EventTrigger
      When an event this trigger is EventTrigger.interestedIn() occurs, this test indicates whether or not the trigger should enter the queue of effects that should be evaluated. This is distinct from whether or not
      Specified by:
      innerQueues in class EventTrigger
      Returns:
    • interestedIn

      public com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType interestedIn()
      Specified by:
      interestedIn in class EventTrigger