Permalink
Browse files

Implement Banana Brawl!

  • Loading branch information...
jleclanche committed Jul 10, 2015
1 parent f022ced commit 7c1f8e2c8f5f5f166763c2c4532f0f06b5925181
Showing with 20 additions and 0 deletions.
  1. +20 −0 fireplace/brawls/__init__.py
@@ -1,4 +1,6 @@
import random
from ..actions import RandomCardGenerator, Give
from ..enums import CardType
from ..game import Game
@@ -69,3 +71,21 @@ def prepare(self):
else:
player.summon("BRMC_94") # Sulfuras
class BananaBrawl(Game):
"""
Banana Brawl!
Mukla is a year older, and he LOVES bananas! Whenever
one of your minions dies, he gives you a Banana to
celebrate!
"""
class RandomBanana(RandomCardGenerator):
cards = ("EX1_014t", "TB_006", "TB_007", "TB_008")
def _schedule_death(self, card):
ret = super()._schedule_death(card)
if card.type == CardType.MINION:
ret.append(Give(card.controller, self.RandomBanana()))
return ret

0 comments on commit 7c1f8e2

Please sign in to comment.