Skip to content

Commit

Permalink
fix issue: #238 (#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
shinoi2 authored Dec 14, 2023
1 parent 325b4b0 commit d9d9612
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion fireplace/card.py
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@ def get_damage(self, amount, target):
if not self.immune_to_spellpower:
amount = self.controller.get_spell_damage(amount)
if self.receives_double_spelldamage_bonus:
amount *= 2
amount = self.controller.get_spell_damage(amount)
return amount

def get_heal(self, amount, target):
Expand Down
16 changes: 16 additions & 0 deletions tests/test_tgt.py
Original file line number Diff line number Diff line change
Expand Up @@ -853,3 +853,19 @@ def test_darnassus_aspirant():
assert game.current_player.mana == 7
assert game.current_player.max_mana == 9
assert game.current_player.used_mana == 2


def test_arcane_blast():
game = prepare_game()
minion = game.player1.summon("CFM_712_t30")
game.player1.give("AT_004").play(target=minion)
assert minion.damage == 2
game.player1.summon(KOBOLD_GEOMANCER)
game.player1.give("AT_004").play(target=minion)
assert minion.damage == 2 + 4
game.player1.summon(KOBOLD_GEOMANCER)
game.player1.give("AT_004").play(target=minion)
assert minion.damage == 2 + 4 + 6
game.player1.field[-1].destroy()
game.player1.give("AT_004").play(target=minion)
assert minion.damage == 2 + 4 + 6 + 4

0 comments on commit d9d9612

Please sign in to comment.