def create_minion(self, player): def add_effect(m, index): m.add_aura(1, 0, [player], lambda mini: mini is not minion) minion = Minion(2, 4, MINION_TYPE.BEAST) minion.bind("added_to_board", add_effect) return minion
def create_minion(self, player): def did_damage(amount, target): target.freeze() minion = Minion(3, 6) minion.bind("did_damage", did_damage) return minion
def create_minion(self, player): def poisonous(amount, target): if type(target) is Minion: target.die(self) minion = Minion(1, 1, stealth=True) minion.bind("did_damage", poisonous) minion.bind_once("silenced", lambda: minion.unbind("did_damage", poisonous)) return minion
def create_minion(self, player): def increase_attack(): minion.change_attack(6) def decrease_attack(): minion.change_attack(-6) def silenced(): minion.unbind("enraged", increase_attack) minion.unbind("unenraged", decrease_attack) minion = Minion(4, 9, charge=True) minion.bind("enraged", increase_attack) minion.bind("unenraged", decrease_attack) minion.bind("silenced", silenced) return minion