All Implemented Interfaces:
Serializable, Cloneable, Comparable<Entity>, HasCard, Trigger

public final class Aftermath extends Enchantment
See Also:
  • Constructor Details

  • Method Details

    • getZones

      public com.hiddenswitch.spellsource.rpc.Spellsource.ZonesMessage.Zones[] getZones()
      Overrides:
      getZones in class Enchantment
    • onAdd

      public void onAdd(GameContext context, Player player, Entity source, Entity host)
      Description copied from interface: Trigger
      Called when the trigger is added into a GameContext's state.
      Specified by:
      onAdd in interface Trigger
      Overrides:
      onAdd in class Enchantment
      Parameters:
      context - The game context.
    • expire

      public void expire(GameContext context)
      Description copied from interface: Trigger
      Expires the trigger; marks it for removal and prevents it from executing in the future.
      Specified by:
      expire in interface Trigger
      Overrides:
      expire in class Enchantment
    • getSpell

      public SpellDesc getSpell()
      Overrides:
      getSpell in class Enchantment
    • getDefaultTriggers

      protected EventTriggerDesc[] getDefaultTriggers()
      Overrides:
      getDefaultTriggers in class Enchantment
    • clone

      public Aftermath clone()
      Description copied from class: Entity
      Clone an entity, including its ID and location.

      Use this method for emulating an "immutable" view on an entity. This kind of cloning is not suitable for most gameplay situations, because using the clone will cause two entities with identical IDs and locations to exist. Instead, a subclass will provide a getCopy() method that is more helpful for gameplay.

      Specified by:
      clone in interface Trigger
      Overrides:
      clone in class Enchantment
      Returns:
      An exact clone.
    • cast

      protected void cast(int ownerId, SpellDesc spell, GameEvent event)
      Overrides:
      cast in class Enchantment
    • isActivated

      public boolean isActivated()
      Specified by:
      isActivated in interface Trigger
      Overrides:
      isActivated in class Enchantment
    • isCopyToActor

      public boolean isCopyToActor()
      Overrides:
      isCopyToActor in class Enchantment