Skip to content
Permalink
Browse files
Move cost checks to use cost_mod script
Fixes #177
  • Loading branch information
jleclanche committed Sep 10, 2015
1 parent 89a9ee5 commit 5c5691e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
@@ -57,7 +57,7 @@ class BRMC_92:

# Golemagg
class BRMC_95:
cost = lambda self, i: i - self.controller.hero.damage
cost_mod = -Attr(FRIENDLY_HERO, GameTag.DAMAGE)


# High Justice Grimstone
@@ -26,7 +26,7 @@ class BRM_008:

# Volcanic Lumberer
class BRM_009:
cost = lambda self, i: i - len(self.game.minions_killed_this_turn)
cost_mod = -Attr(GAME, GameTag.NUM_MINIONS_KILLED_THIS_TURN)


# Druid of the Flame (Firecat Form)
@@ -84,7 +84,7 @@ class BRM_024:

# Volcanic Drake
class BRM_025:
cost = lambda self, i: i - len(self.game.minions_killed_this_turn)
cost_mod = -Attr(GAME, GameTag.NUM_MINIONS_KILLED_THIS_TURN)


# Hungry Dragon
@@ -136,7 +136,7 @@ class BRM_034:
# Solemn Vigil
class BRM_001:
play = Draw(CONTROLLER) * 2
cost = lambda self, i: i - len(self.game.minions_killed_this_turn)
cost_mod = -Attr(GAME, GameTag.NUM_MINIONS_KILLED_THIS_TURN)


# Melt (Unused)
@@ -147,7 +147,7 @@ class BRM_001e:
# Dragon's Breath
class BRM_003:
play = Hit(TARGET, 4)
cost = lambda self, i: i - len(self.game.minions_killed_this_turn)
cost_mod = -Attr(GAME, GameTag.NUM_MINIONS_KILLED_THIS_TURN)


# Demonwrath
@@ -8,7 +8,7 @@ class EX1_005:

# Mountain Giant
class EX1_105:
cost = lambda self, i: i - (len(self.controller.hand) - 1)
cost_mod = -Count(CONTROLLER_HAND - SELF)


# Murloc Warleader
@@ -23,7 +23,7 @@ class EX1_564:

# Sea Giant
class EX1_586:
cost = lambda self, i: i - len(self.game.board)
cost_mod = -Count(ALL_MINIONS)


# Blood Knight
@@ -36,7 +36,7 @@ class EX1_590:

# Molten Giant
class EX1_620:
cost = lambda self, i: i - self.controller.hero.damage
cost_mod = -Attr(FRIENDLY_HERO, GameTag.DAMAGE)


# Captain's Parrot
@@ -39,7 +39,7 @@ class GVG_108:

# Clockwork Giant
class GVG_121:
cost = lambda self, i: i - len(self.controller.opponent.hand)
cost_mod = -Count(OPPONENT_HAND)


# Wee Spellstopper
@@ -36,7 +36,7 @@ class AT_118:

# Frost Giant
class AT_120:
cost = lambda self, i: i - self.controller.times_hero_power_used_this_game
cost_mod = -Attr(CONTROLLER, GameTag.NUM_TIMES_HERO_POWER_USED_THIS_GAME)


# Crowd Favorite
@@ -11,7 +11,7 @@ class AT_018:

# Skycap'n Kragg
class AT_070:
cost = lambda self, i: i - len(self.controller.field.filter(race=Race.PIRATE))
cost_mod = -Count(FRIENDLY_MINIONS + PIRATE)


# Gormok the Impaler

0 comments on commit 5c5691e

Please sign in to comment.