Class UngoroPackRarityWeightedCardSource

All Implemented Interfaces:
Serializable, HasDesc<CardSourceDesc>, HasCardCreationSideEffects, HasWeights

public final class UngoroPackRarityWeightedCardSource extends CatalogueSource
This weighted card source returns legendaries and epics more frequently than normal and only cards from the CardSet.JOURNEY_TO_UNGORO set.
See Also:
  • Constructor Details

    • UngoroPackRarityWeightedCardSource

      public UngoroPackRarityWeightedCardSource(CardSourceDesc desc)
  • Method Details

    • match

      protected CardList match(GameContext context, Entity source, Player player)
      Description copied from class: CardSource
      Overridden by card source implementations to return a list of cards that usually get filtered in an EntityFilter.

      See the implementations for examples of how, e.g. the graveyard is turned into a CardList instance by iterating through all the actors in the graveyard and retrieving their Entity.getSourceCard().

      Overrides:
      match in class CatalogueSource
      Parameters:
      context - The game context
      source - The entity that is the origin of this matching operation
      player - The casting player
      Returns:
      A list of cards pre-filter.
    • getWeight

      public int getWeight(Player targetPlayer, Card card)
      Gets the weight for the Un'Goro pack that Elise the Trailblazer's token gives you.

      The values here are very eyeballed.

      Parameters:
      targetPlayer - The player to calculate this with respect to.
      card - The card.
      Returns:
      The weight.