Skip to content

Commit

Permalink
Implement Spiders, Spiders EVERYWHERE! brawl
Browse files Browse the repository at this point in the history
  • Loading branch information
jleclanche committed Jul 10, 2015
1 parent 7c1f8e2 commit 8858890
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions fireplace/brawls/__init__.py
Expand Up @@ -89,3 +89,25 @@ def _schedule_death(self, card):
if card.type == CardType.MINION: if card.type == CardType.MINION:
ret.append(Give(card.controller, self.RandomBanana())) ret.append(Give(card.controller, self.RandomBanana()))
return ret 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.