

def use(self, player, game):
    super().use(player, imp)
    amount = player.effective_spell_damage(game.random_amount(2, 4))
    had_shield = self.target.divine_shield
    self.target.damage(amount, self)
    if (not had_shield):
        for i in range(0, amount):
            imp = Imp()
            imp.summon(player, game, len(player.minions))

dataset/ETHPy150Open danielyule/hearthbreaker/hearthbreaker/cards/spells/warlock.py Implosion.use/VarMisuse@22/23 `game`->`imp`