Class CaptnCookishAura

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

public final class CaptnCookishAura extends NoggenfoggerAura
The Capt'n Cookish aura changes to random the player selected targets of spells cast by the owner of the aura. Since it changes targeting randomly, it is considered a kind of Noggenfogger aura.
See Also:
  • Constructor Details

    • CaptnCookishAura

      public CaptnCookishAura(AuraDesc desc)
  • Method Details

    • getValidTargets

      protected List<Entity> getValidTargets(GameContext context, TargetAcquisitionEvent event)
      Description copied from class: NoggenfoggerAura
      Based on the specified target acquisition event, override the target to a random one from the list returned by this method. If the targets are empty, no override occurs.
      Overrides:
      getValidTargets in class NoggenfoggerAura
      Parameters:
      context - The context
      event - The event
      Returns:
      A List of entities to choose randomly from, or an empty list if there are no valid targets / an override should not occur.