Permalink
Browse files

Implement Spiders, Spiders EVERYWHERE! brawl

  • Loading branch information...
jleclanche committed Jul 10, 2015
1 parent 7c1f8e2 commit 8858890945e271f1428519c033f89386e9216bc3
Showing with 22 additions and 0 deletions.
  1. +22 −0 fireplace/brawls/__init__.py
@@ -89,3 +89,25 @@ def _schedule_death(self, card):
if card.type == CardType.MINION:
ret.append(Give(card.controller, self.RandomBanana()))
return ret


class SpidersEverywhereBrawl(Game):
"""
Spiders, Spiders EVERYWHERE!
Spiders have overrun everything, including your deck!
Whatever class you play, your deck will be TEEMING with
Webspinners.
"""

def __init__(self, players):
from .. import cards
super().__init__(players)
for player in players:
hero = player.original_deck.hero
player_class = getattr(cards, hero).card_class
spells = cards.filter(card_class=player_class, type=CardType.SPELL)
deck = ["FP1_011"] * 23
for i in range(7):
deck.append(random.choice(spells))
player.prepare_deck(deck, hero)

0 comments on commit 8858890

Please sign in to comment.