Permalink
Browse files

Implement Noble Sacrifice and add test

  • Loading branch information...
beheh authored and jleclanche committed Aug 14, 2015
1 parent 6e41183 commit f0203499486ab6b3a4e5fb8726fc328a28c90e09
Showing with 25 additions and 0 deletions.
  1. +7 −0 fireplace/cards/classic/paladin.py
  2. +18 −0 tests/test_main.py
@@ -126,6 +126,13 @@ class EX1_619e:
##
# Secrets

# Noble Sacrifice
class EX1_130:
events = Attack(ENEMY_MINIONS).on(
Retarget(Attack.Args.ATTACKER, Summon(CONTROLLER, "EX1_130a")), Reveal(SELF)
)


# Eye for an Eye
class EX1_132:
events = Damage(FRIENDLY_HERO).on(
@@ -3517,6 +3517,24 @@ def test_nerubar_weblord():
assert perdition1.cost == perdition2.cost == 3


def test_noble_sacrifice():
game = prepare_game()
sacrifice = game.player1.give("EX1_130")
sacrifice.play()
wisp = game.player2.summon(WISP)
game.end_turn()

assert sacrifice in game.player1.secrets
assert not wisp.dead
assert len(game.player1.field) == 0
assert len(game.player2.field) == 1
wisp.attack(game.player1.hero)
assert sacrifice not in game.player1.secrets
assert wisp.dead
assert len(game.player1.field) == 0
assert len(game.player2.field) == 0


def test_northshire_cleric():
game = prepare_game(PRIEST, PRIEST)
game.player1.discard_hand()

0 comments on commit f020349

Please sign in to comment.