Skip to content

Commit 79f28dc

Browse files
committed
Implement Animated Armor, with tests
1 parent ff07947 commit 79f28dc

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

fireplace/cards/league/collectible.py

+5
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,11 @@ class LOE_116:
215215
LOE_009e = buff(+4, +4)
216216

217217

218+
# Animated Armor
219+
class LOE_119:
220+
update = Refresh(FRIENDLY_HERO, {GameTag.HEAVILY_ARMORED: True})
221+
222+
218223
##
219224
# Spells
220225

tests/test_league.py

+10
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ def test_ancient_shade():
1616
assert game.player1.hero.health == 30 - 7
1717

1818

19+
def test_animated_armor():
20+
game = prepare_game()
21+
armor = game.player1.give("LOE_119")
22+
armor.play()
23+
game.player1.give(MOONFIRE).play(target=game.player1.hero)
24+
assert game.player1.hero.damage == 1
25+
game.player1.give(DAMAGE_5).play(target=game.player1.hero)
26+
assert game.player1.hero.damage == 1 + 1
27+
28+
1929
def test_anubisath_sentinel():
2030
game = prepare_game()
2131
wisp = game.player2.summon(WISP)

0 commit comments

Comments
 (0)