Skip to content

Commit 7c1f8e2

Browse files
committed
Implement Banana Brawl!
1 parent f022ced commit 7c1f8e2

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

fireplace/brawls/__init__.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import random
2+
from ..actions import RandomCardGenerator, Give
3+
from ..enums import CardType
24
from ..game import Game
35

46

@@ -69,3 +71,21 @@ def prepare(self):
6971
else:
7072
player.summon("BRMC_94") # Sulfuras
7173

74+
75+
class BananaBrawl(Game):
76+
"""
77+
Banana Brawl!
78+
79+
Mukla is a year older, and he LOVES bananas! Whenever
80+
one of your minions dies, he gives you a Banana to
81+
celebrate!
82+
"""
83+
84+
class RandomBanana(RandomCardGenerator):
85+
cards = ("EX1_014t", "TB_006", "TB_007", "TB_008")
86+
87+
def _schedule_death(self, card):
88+
ret = super()._schedule_death(card)
89+
if card.type == CardType.MINION:
90+
ret.append(Give(card.controller, self.RandomBanana()))
91+
return ret

0 commit comments

Comments
 (0)