def turn(self):
     Prototype.turn(self)
     if self.parent.player.mana['life'] >= 2:
         self.parent.player.mana['life'] -= 2
     else:
         self.parent.player.mana['life'] = 0
     self.parent.player.mana['death'] += 1
 def attack(self):
     if self.moves_alive:
         e_card = wzglobals.cardboxes[self.get_attack_position()].card
         Prototype.attack(self)
         if e_card.name != 'player':
             self.parent.player.enemy.damage(self.power, self, True)
     e_card = None
Ejemplo n.º 3
0
 def cast_action(self):
     if self.parent.player.mana['air'] >= 2:
         # if player have mana for cast
         Prototype.cast_action(self)  # activating focus-cast
         for card in self.get_enemy_cards():
             if card.cast:  # if it`s caster
                 card.light_switch(True)  # enable lighting
 def cast_action(self):
     Prototype.cast_action(self)  # enable focus-cast
     for card in self.get_self_cards():
         if card.element == "fire" and card != self:
             card.light_switch(True)
         else:
             continue
 def summon(self):
     Prototype.summon(self)
     for card in self.get_enemy_cards():
         if card.element == "water":
             card.damage(6, self)
         else:
             continue
Ejemplo n.º 6
0
 def summon(self):
     Prototype.summon(self)
     for card in self.get_enemy_cards():
         if card.element == "water":
             card.damage(6, self)
         else:
             continue
Ejemplo n.º 7
0
 def cast_action(self):
     Prototype.cast_action(self)  # enable focus-cast
     for card in self.get_self_cards():
         if card.element == 'fire' and card != self:
             card.light_switch(True)
         else:
             continue
 def cast_action(self):
     if self.parent.player.mana['air'] >= 2:
         # if player have mana for cast
         Prototype.cast_action(self)  # activating focus-cast
         for card in self.get_enemy_cards():
             if card.cast:  # if it`s caster
                 card.light_switch(True)  # enable lighting
 def cast_action(self):
     if self.parent.player.mana['life'] >= 2:
         # если хватает маны, то активируем фокус
         Prototype.cast_action(self)
         for card in self.get_enemy_cards():
             if card.element == "death":
                 card.light_switch(True)
Ejemplo n.º 10
0
 def attack(self):
     if self.moves_alive:
         e_card = wzglobals.cardboxes[self.get_attack_position()].card
         Prototype.attack(self)
         if e_card.name != 'player':
             self.parent.player.enemy.damage(self.power, self, True)
     e_card = None
 def summon(self):
     Prototype.summon(self)
     attack_position = self.get_attack_position()
     wzglobals.cardboxes[attack_position].card.damage(10, self)
     for adjacent_pos in self.get_attack_adjacent_position(
         attack_position
     ):
         wzglobals.cardboxes[adjacent_pos].card.damage(10, self)
 def __init__(self):
     self.name = "Cerberus"
     self.element = "fire"
     self.level = 4
     self.power = 4
     self.info = _("Attacks adjacent enemy units at a half of it`s strength.")
     self.cast = False
     self.health = 6
     self.imagefile = "cerberus.gif"
     Prototype.__init__(self)
 def summon(self):
     Prototype.summon(self)
     self.set_power(self.parent.player.mana["fire"] - self.level + 3)
     if self.parent.player.enemy.mana["fire"] >= 3:
         self.parent.player.enemy.mana["fire"] -= 3
     else:
         self.parent.player.enemy.mana["fire"] = 0
     opp_card = wzglobals.cardboxes[self.get_attack_position()].card
     if opp_card.name != "player":
         opp_card.damage(9, self)
Ejemplo n.º 14
0
 def summon(self):
     Prototype.summon(self)
     self.set_power(self.parent.player.mana['fire'] - self.level + 3)
     if self.parent.player.enemy.mana['fire'] >= 3:
         self.parent.player.enemy.mana['fire'] -= 3
     else:
         self.parent.player.enemy.mana['fire'] = 0
     opp_card = wzglobals.cardboxes[self.get_attack_position()].card
     if opp_card.name != 'player':
         opp_card.damage(9, self)
 def __init__(self):
     self.name = "IceGuard"
     self.element = "water"
     self.level = 5
     self.info = _("Reduces all damage done to owner by 50%. " "Suffers 200% damage from fire.")
     self.power = 4
     self.cast = False
     self.health = 19
     self.imagefile = "ice_guard.gif"
     Prototype.__init__(self)
Ejemplo n.º 16
0
 def __init__(self):
     self.name = "Nymph"
     self.element = "air"
     self.level = 3
     self.power = 1
     self.cast = False
     self.info = _("Owner receives 1 Air at the beginning of Owners turn.")
     self.health = 12
     self.imagefile = 'nymph.gif'
     Prototype.__init__(self)
Ejemplo n.º 17
0
 def attack(self):
     if self.moves_alive:
         if wzglobals.cardboxes[
                 self.get_attack_position()].card.name == "player":
             self.run_attack_animation()
             wzglobals.cardboxes[self.get_attack_position()].card.damage(
                 self.power + 10, self)
             self.die()
         else:
             Prototype.attack(self)
Ejemplo n.º 18
0
 def __init__(self):
     self.name = "Vampire"
     self.element = "death"
     self.level = 9
     self.power = 6
     self.health = 22
     self.cast = False
     self.info = _("When attacks living creature, restores health equal to "
                   "50% of damage dealt. Maximum 30 health.")
     self.imagefile = 'vampire.gif'
     Prototype.__init__(self)
Ejemplo n.º 19
0
 def __init__(self):
     self.name = "Cerberus"
     self.element = "fire"
     self.level = 4
     self.power = 4
     self.info = _(
         "Attacks adjacent enemy units at a half of it`s strength.")
     self.cast = False
     self.health = 6
     self.imagefile = 'cerberus.gif'
     Prototype.__init__(self)
 def __init__(self):
     self.name = "IceGuard"
     self.element = "water"
     self.level = 5
     self.info = _("Reduces all damage done to owner by 50%. "
                   "Suffers 200% damage from fire.")
     self.power = 4
     self.cast = False
     self.health = 19
     self.imagefile = 'ice_guard.gif'
     Prototype.__init__(self)
 def __init__(self):
     self.name = "Nymph"
     self.element = "air"
     self.level = 3
     self.power = 1
     self.cast = False
     self.info = _(
         "Owner receives 1 Air at the beginning of Owners turn."
     )
     self.health = 12
     self.imagefile = 'nymph.gif'
     Prototype.__init__(self)
 def __init__(self):
     self.name = "Poseidon"
     self.element = "water"
     self.level = 8
     self.power = 3
     self.info = _(
         "Every time anyone casts Water spell or summons Water "
         "creature, opponent suffers 4 damage and owner gains 2 health.")
     self.cast = False
     self.health = 25
     self.imagefile = 'poseidon.gif'
     Prototype.__init__(self)
 def attack(self):
     if self.moves_alive:
         if wzglobals.cardboxes[
             self.get_attack_position()
         ].card.name == "player":
             self.run_attack_animation()
             wzglobals.cardboxes[
                 self.get_attack_position()
             ].card.damage(self.power + 10, self)
             self.die()
         else:
             Prototype.attack(self)
Ejemplo n.º 24
0
 def __init__(self):
     self.name = "Dryad"
     self.element = "earth"
     self.level = 4
     self.power = 4
     self.cast = False
     self.health = 12
     self.info = _("Adjacent owner creatures attack increases by 1, "
                   "and if it`s Earth creature, by 2 whenever anyone casts "
                   "Earth spell or summons Earth creature.")
     self.imagefile = 'dryad.gif'
     Prototype.__init__(self)
Ejemplo n.º 25
0
 def __init__(self):
     self.name = "Phoenix"
     self.element = "air"
     self.info = _("If Phoenix was killed by Fire spell or creature, "
                   "rebirth with full health.")
     self.level = 6
     self.power = 4
     self.cast = False
     self.health = 20
     self.recovered = 0  # Восстанавливалась ли карта
     self.imagefile = 'phoenix.gif'
     Prototype.__init__(self)
Ejemplo n.º 26
0
 def __init__(self):
     self.name = "Firelord"
     self.element = "fire"
     self.level = 11
     self.power = 7
     self.cast = False
     self.info = _("Opens fire gates. This means that both players should "
                   "receive 1 additional Fire every turn. "
                   "Upon dying, Firelord brings 8 damage to each player.")
     self.health = 21
     self.imagefile = 'firelord.gif'
     Prototype.__init__(self)
Ejemplo n.º 27
0
 def __init__(self):
     self.name = "RedDrake"
     self.element = "fire"
     self.level = 7
     self.info = _("When summoned, each enemy creature and enemy player "
                   "suffers 3 damage. Red Drake Suffers no damage from "
                   "Fire spells and creatures.")
     self.power = 5
     self.cast = False
     self.health = 16
     self.imagefile = 'red_drake.gif'
     Prototype.__init__(self)
Ejemplo n.º 28
0
 def __init__(self):
     self.name = "Golem"
     self.element = "earth"
     self.level = 5
     self.power = 4
     self.cast = False
     self.health = 15
     self.info = _(
         "Regenerates 3 health every turn. "
         "While owner's Earth less than 3, it suffers 3 damage instead.")
     self.imagefile = 'golem.gif'
     Prototype.__init__(self)
Ejemplo n.º 29
0
 def __init__(self):
     self.name = "Zombie"
     self.element = "death"
     self.level = 4
     self.power = 3
     self.health = 11
     self.info = _(
         "Eats enemies corpses - every time if kills enemy creature, "
         "totally health and his health increases by 3.")
     self.cast = False
     self.imagefile = 'zombie.gif'
     Prototype.__init__(self)
Ejemplo n.º 30
0
 def __init__(self):
     self.name = "Salamander"
     self.element = "fire"
     self.level = 8
     self.power = 3
     self.cast = False
     self.info = _(
         "Increases attack of all owner's creatures by 2. "
         "Increases damage from owner player's spellcastings by 2.")
     self.health = 15
     self.imagefile = 'salamander.gif'
     Prototype.__init__(self)
Ejemplo n.º 31
0
 def __init__(self):
     self.name = "Demon"
     self.element = "fire"
     self.level = 5
     self.power = 2
     self.info = _("Doesn`t suffer from Fire and Earth spells. \n"
                   "CAST: Whenever Demon casts Fire Bleed owner loses 1 "
                   "Earth and receives 2 Fire elements.")
     self.cast = True
     self.health = 12
     self.imagefile = 'demon.gif'
     Prototype.__init__(self)
 def __init__(self):
     self.name = "Zombie"
     self.element = "death"
     self.level = 4
     self.power = 3
     self.health = 11
     self.info = _(
         "Eats enemies corpses - every time if kills enemy creature, "
         "totally health and his health increases by 3."
     )
     self.cast = False
     self.imagefile = 'zombie.gif'
     Prototype.__init__(self)
Ejemplo n.º 33
0
 def __init__(self):
     self.name = "Echidna"
     self.element = "earth"
     self.level = 10
     self.power = 7
     self.cast = False
     self.health = 26
     self.info = _("When attacks, poisons her target. "
                   "This target will lose 2 health every turn. "
                   "In the beginning og owner`s turn, "
                   "Echidna hits all poisoned creatures for 1.")
     self.imagefile = 'echidna.gif'
     Prototype.__init__(self)
 def __init__(self):
     self.name = "Poseidon"
     self.element = "water"
     self.level = 8
     self.power = 3
     self.info = _(
         "Every time anyone casts Water spell or summons Water "
         "creature, opponent suffers 4 damage and owner gains 2 health."
     )
     self.cast = False
     self.health = 25
     self.imagefile = "poseidon.gif"
     Prototype.__init__(self)
Ejemplo n.º 35
0
 def __init__(self):
     self.name = "Ent"
     self.element = "earth"
     self.level = 7
     self.power = 3
     self.info = _(
         "Attacks opposed unit and enemy player at the same time. \n"
         "Casts Entangle Roots, damaging each enemy unit for 1 "
         "and losing 2 points of own health.")
     self.cast = True
     self.health = 22
     self.imagefile = 'ent.gif'
     Prototype.__init__(self)
 def __init__(self):
     self.name = "Vampire"
     self.element = "death"
     self.level = 9
     self.power = 6
     self.health = 22
     self.cast = False
     self.info = _(
         "When attacks living creature, restores health equal to "
         "50% of damage dealt. Maximum 30 health."
     )
     self.imagefile = 'vampire.gif'
     Prototype.__init__(self)
Ejemplo n.º 37
0
 def __init__(self):
     self.name = "Werewolf"
     self.cast = True
     self.element = "death"
     self.level = 6
     self.power = 6
     self.info = _("When dies, becomes a ghost. \n"
                   "CAST: Casts Blood Rage on self. "
                   "Strikes twice as hard this turn, "
                   "but owner loses 3 Death points on casting.")
     self.health = 16
     self.imagefile = 'werewolf.gif'
     Prototype.__init__(self)
Ejemplo n.º 38
0
 def __init__(self):
     self.name = "ForestSpirit"
     self.element = "earth"
     self.level = 3
     self.info = _(
         "Damage from all non-magical attacks and abilities equal to 1."
         " \nCAST: Casts Youth of Forest, increasing owner "
         "player`s health by 5. Costs two Earth elements.")
     self.power = 2
     self.cast = True
     self.health = 3
     self.imagefile = 'forest_spirit.gif'
     Prototype.__init__(self)
 def __init__(self):
     self.name = "Salamander"
     self.element = "fire"
     self.level = 8
     self.power = 3
     self.cast = False
     self.info = _(
         "Increases attack of all owner's creatures by 2. "
         "Increases damage from owner player's spellcastings by 2."
     )
     self.health = 15
     self.imagefile = "salamander.gif"
     Prototype.__init__(self)
 def __init__(self):
     self.name = "IceWizard"
     self.element = "water"
     self.level = 10
     self.info = _("Increases Water by 2 every turn. Suffers 200% damage "
                   "from fire. All damage from Water equal to 1. \n"
                   "CAST: Casting Healing Water heals owner equal to "
                   "2*Water points. Owner loses all Water.")
     self.power = 4
     self.cast = True
     self.health = 22
     self.imagefile = 'ice_wizard.gif'
     Prototype.__init__(self)
 def __init__(self):
     self.name = "Waterfall"
     self.element = "water"
     self.level = 9
     self.power = 1
     self.cast = False
     self.health = 33
     self.imagefile = 'waterfall.gif'
     self.info = _("One of the toughest Elementals. "
                   "Health itself for 3 whenever any player casts water "
                   "spell of summons water creature. "
                   "Attack equal to owner`s Water.")
     Prototype.__init__(self)
 def __init__(self):
     self.name = "Golem"
     self.element = "earth"
     self.level = 5
     self.power = 4
     self.cast = False
     self.health = 15
     self.info = _(
         "Regenerates 3 health every turn. "
         "While owner's Earth less than 3, it suffers 3 damage instead."
     )
     self.imagefile = 'golem.gif'
     Prototype.__init__(self)
Ejemplo n.º 43
0
 def __init__(self):
     self.name = "Fairy"
     self.element = "air"
     self.info = _("Increases its attack by 1 for each creature, killed on "
                   "a field. \n"
                   "CAST: Enslave Mind forces strongest enemy creature "
                   "to attack it`s owner. Costs 1 Air.")
     self.level = 3
     self.power = 3
     self.cast = True
     self.health = 7
     self.imagefile = 'fairy.gif'
     Prototype.__init__(self)
 def __init__(self):
     self.name = "Dryad"
     self.element = "earth"
     self.level = 4
     self.power = 4
     self.cast = False
     self.health = 12
     self.info = _(
         "Adjacent owner creatures attack increases by 1, "
         "and if it`s Earth creature, by 2 whenever anyone casts "
         "Earth spell or summons Earth creature."
     )
     self.imagefile = 'dryad.gif'
     Prototype.__init__(self)
 def __init__(self):
     self.name = "Phoenix"
     self.element = "air"
     self.info = _(
         "If Phoenix was killed by Fire spell or creature, "
         "rebirth with full health."
     )
     self.level = 6
     self.power = 4
     self.cast = False
     self.health = 20
     self.recovered = 0  # Восстанавливалась ли карта
     self.imagefile = 'phoenix.gif'
     Prototype.__init__(self)
 def __init__(self):
     self.name = "RedDrake"
     self.element = "fire"
     self.level = 7
     self.info = _(
         "When summoned, each enemy creature and enemy player "
         "suffers 3 damage. Red Drake Suffers no damage from "
         "Fire spells and creatures."
     )
     self.power = 5
     self.cast = False
     self.health = 16
     self.imagefile = "red_drake.gif"
     Prototype.__init__(self)
 def __init__(self):
     self.name = "Demon"
     self.element = "fire"
     self.level = 5
     self.power = 2
     self.info = _(
         "Doesn`t suffer from Fire and Earth spells. \n"
         "CAST: Whenever Demon casts Fire Bleed owner loses 1 "
         "Earth and receives 2 Fire elements."
     )
     self.cast = True
     self.health = 12
     self.imagefile = "demon.gif"
     Prototype.__init__(self)
 def __init__(self):
     self.name = "Firelord"
     self.element = "fire"
     self.level = 11
     self.power = 7
     self.cast = False
     self.info = _(
         "Opens fire gates. This means that both players should "
         "receive 1 additional Fire every turn. "
         "Upon dying, Firelord brings 8 damage to each player."
     )
     self.health = 21
     self.imagefile = "firelord.gif"
     Prototype.__init__(self)
 def __init__(self):
     self.name = "ForestSpirit"
     self.element = "earth"
     self.level = 3
     self.info = _(
         "Damage from all non-magical attacks and abilities equal to 1."
         " \nCAST: Casts Youth of Forest, increasing owner "
         "player`s health by 5. Costs two Earth elements."
     )
     self.power = 2
     self.cast = True
     self.health = 3
     self.imagefile = 'forest_spirit.gif'
     Prototype.__init__(self)
Ejemplo n.º 50
0
 def __init__(self):
     self.name = "Centaur"
     self.element = "earth"
     self.level = 6
     self.info = _(
         "Attacks the same turn he was summoned(No summon sickness). "
         "\nCAST: Strikes magic arrow into enemy player, "
         "dealing 3 damage. Costs 1 Earth.")
     self.power = 5
     self.cast = True
     self.health = 14
     self.imagefile = 'centaur.gif'
     Prototype.__init__(self)
     self.moves_alive = 1
 def __init__(self):
     self.name = "Ent"
     self.element = "earth"
     self.level = 7
     self.power = 3
     self.info = _(
         "Attacks opposed unit and enemy player at the same time. \n"
         "Casts Entangle Roots, damaging each enemy unit for 1 "
         "and losing 2 points of own health."
     )
     self.cast = True
     self.health = 22
     self.imagefile = 'ent.gif'
     Prototype.__init__(self)
Ejemplo n.º 52
0
 def __init__(self):
     self.name = "Satyr"
     self.element = "earth"
     self.level = 2
     self.power = 3
     self.cast = True
     self.info = _(
         "Increases Earth by 1 every turn. \n"
         "CAST: Once Satyr casts Dissolve, it dies and creature in "
         "the opposed slot suffers 5 damage. "
         "If there`s no creature, damage dealt to enemy player.")
     self.health = 10
     self.imagefile = 'satyr.gif'
     Prototype.__init__(self)
 def __init__(self):
     self.name = "Satyr"
     self.element = "earth"
     self.level = 2
     self.power = 3
     self.cast = True
     self.info = _(
         "Increases Earth by 1 every turn. \n"
         "CAST: Once Satyr casts Dissolve, it dies and creature in "
         "the opposed slot suffers 5 damage. "
         "If there`s no creature, damage dealt to enemy player."
     )
     self.health = 10
     self.imagefile = 'satyr.gif'
     Prototype.__init__(self)
 def __init__(self):
     self.name = "Centaur"
     self.element = "earth"
     self.level = 6
     self.info = _(
         "Attacks the same turn he was summoned(No summon sickness). "
         "\nCAST: Strikes magic arrow into enemy player, "
         "dealing 3 damage. Costs 1 Earth."
     )
     self.power = 5
     self.cast = True
     self.health = 14
     self.imagefile = 'centaur.gif'
     Prototype.__init__(self)
     self.moves_alive = 1
 def __init__(self):
     self.name = "Chimera"
     self.element = "life"
     self.info = _(
         "When Chimera is on a field, every spell casting costs "
         "50% less for the owner. "
         "Whenever you summon creature, you gain health equal to "
         "this creature's level."
     )
     self.level = 11
     self.power = 11
     self.cast = False
     self.health = 30
     self.imagefile = 'chimera.gif'
     Prototype.__init__(self)
 def __init__(self):
     self.name = "MagicHealer"
     self.info = _(
         "Whenever owner player loses health, "
         "Magic Healer health player by this amount, "
         "losing hit points equally."
     )
     self.element = "life"
     self.level = 3
     self.power = 2
     self.cast = False
     self.health = 10
     self.security_slots = []
     self.imagefile = 'magic_healer.gif'
     Prototype.__init__(self)
 def __init__(self):
     self.name = "Priest"
     self.element = "life"
     self.level = 4
     self.cast = False
     self.power = 1
     self.health = 9
     self.info = _(
         "Increases owner`s Life by 1 every turn, "
         "decreasing Death by the same amount. "
         "Decreases owner`s Life by 3 every time owner "
         "casts Death spells."
     )
     self.imagefile = 'priest.gif'
     Prototype.__init__(self)
 def __init__(self):
     self.name = "Apostate"
     self.element = "life"
     self.level = 5
     self.info = _(
         "Steals 2 owner's Life and gives owner 1 Death in the "
         "beginning of owner's turn. \n"
         "Serves Death. Once cast, Apostate permanently turns into "
         "a Banshee. Banshee restores only 1/2 of normal health."
     )
     self.cast = True
     self.power = 4
     self.health = 14
     self.imagefile = 'apostate.gif'
     Prototype.__init__(self)