Skip to content

Commit f020349

Browse files
behehjleclanche
authored andcommitted
Implement Noble Sacrifice and add test
1 parent 6e41183 commit f020349

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

fireplace/cards/classic/paladin.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,13 @@ class EX1_619e:
126126
##
127127
# Secrets
128128

129+
# Noble Sacrifice
130+
class EX1_130:
131+
events = Attack(ENEMY_MINIONS).on(
132+
Retarget(Attack.Args.ATTACKER, Summon(CONTROLLER, "EX1_130a")), Reveal(SELF)
133+
)
134+
135+
129136
# Eye for an Eye
130137
class EX1_132:
131138
events = Damage(FRIENDLY_HERO).on(

tests/test_main.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3517,6 +3517,24 @@ def test_nerubar_weblord():
35173517
assert perdition1.cost == perdition2.cost == 3
35183518

35193519

3520+
def test_noble_sacrifice():
3521+
game = prepare_game()
3522+
sacrifice = game.player1.give("EX1_130")
3523+
sacrifice.play()
3524+
wisp = game.player2.summon(WISP)
3525+
game.end_turn()
3526+
3527+
assert sacrifice in game.player1.secrets
3528+
assert not wisp.dead
3529+
assert len(game.player1.field) == 0
3530+
assert len(game.player2.field) == 1
3531+
wisp.attack(game.player1.hero)
3532+
assert sacrifice not in game.player1.secrets
3533+
assert wisp.dead
3534+
assert len(game.player1.field) == 0
3535+
assert len(game.player2.field) == 0
3536+
3537+
35203538
def test_northshire_cleric():
35213539
game = prepare_game(PRIEST, PRIEST)
35223540
game.player1.discard_hand()

0 commit comments

Comments
 (0)