def cast(self):
     # работает единожды, поэтому нет нужды добавлять в группу и
     # создавать ф-ию периодического каста.
     Magic.cast(self)
     enemy_cards = self.get_enemy_cards()  # берем список вражеских карт
     for card in enemy_cards:
         card.damage(card.power - 1, self, True)
 def cast(self):
     Magic.cast(self)
     diff = self.player.mana["fire"] + self.level - self.player.enemy.mana["fire"]
     if diff > 0:
         self.player.enemy.damage(diff * 2, self, True)
     else:
         self.player.enemy.damage(1, self, True)
 def cast(self):
     Magic.cast(self)
     air_mana = self.player.mana['air'] + self.level
     power = air_mana + 2
     for card in self.get_enemy_cards():
         card.damage(power, self, True)
         power -= 2
Ejemplo n.º 4
0
 def cast(self):
     Magic.cast(self)
     air_mana = self.player.mana['air'] + self.level
     power = air_mana + 2
     for card in self.get_enemy_cards():
         card.damage(power, self, True)
         power -= 2
 def cast(self):
     # работает единожды, поэтому нет нужды добавлять в группу и
     # создавать ф-ию периодического каста.
     Magic.cast(self)
     enemy_cards = self.get_enemy_cards()  # берем список вражеских карт
     for card in enemy_cards:
         card.damage(card.power - 1, self, True)
 def cast(self):
     Magic.cast(self)
     for card in self.get_enemy_cards():
         if card.level < 5:
             card.die()
         else:
             continue
Ejemplo n.º 7
0
 def cast(self):
     Magic.cast(self)
     for card in self.get_enemy_cards():
         if card.level < 5:
             card.die()
         else:
             continue
 def cast(self):
     Magic.cast(self)
     life_mana = wzglobals.player.mana['life'] + self.level
     wzglobals.player.heal(life_mana * 3)
     for card in self.get_self_cards():
         card.heal(3, card.max_health)
     wzglobals.player.mana['life'] = 0
 def cast(self):
     Magic.cast(self)
     for card in self.get_enemy_cards() + self.get_self_cards():
         for spell in card.spells:
             spell.unset(card)
         card.spells = []
         if card.element == "fire":
             card.heal(3, card.max_health)
Ejemplo n.º 10
0
 def cast(self):
     Magic.cast(self)
     diff = (self.player.mana['fire'] + self.level -
             self.player.enemy.mana['fire'])
     if diff > 0:
         self.player.enemy.damage(diff * 2, self, True)
     else:
         self.player.enemy.damage(1, self, True)
Ejemplo n.º 11
0
 def cast(self):
     Magic.cast(self)
     for card in self.get_enemy_cards() + self.get_self_cards():
         for spell in card.spells:
             spell.unset(card)
         card.spells = []
         if card.element == 'fire':
             card.heal(3, card.max_health)
Ejemplo n.º 12
0
 def cast(self):
     Magic.cast(self)
     enemy_cards = self.get_enemy_cards()
     self_cards = self.get_self_cards()
     for card in enemy_cards + self_cards:
         card.damage(25, self, True)
     self.player.damage(25, self, True)
     self.player.enemy.damage(25, self, True)
 def cast(self):
     Magic.cast(self)
     cards = self.get_enemy_cards() + self.get_self_cards()
     for card in cards:
         if card.element == "death":
             card.heal(5, card.max_health)
         else:
             card.damage(13, self, True)
 def cast(self):
     Magic.cast(self)
     enemy_cards = self.get_enemy_cards()
     self_cards = self.get_self_cards()
     for card in enemy_cards + self_cards:
         card.damage(25, self, True)
     self.player.damage(25, self, True)
     self.player.enemy.damage(25, self, True)
Ejemplo n.º 15
0
 def cast(self):
     Magic.cast(self)
     self.protected_cards = {}
     for cardbox in self.get_self_cardboxes():
         if cardbox.card.name != "player":  # if card exists
             self.protected_cards[cardbox.position] = cardbox.card
             cardbox.card = AbsoluteDefenceSpirit(cardbox.card)
     wzglobals.magic_cards.add(self)
Ejemplo n.º 16
0
 def cast(self):
     Magic.cast(self)
     cards = self.get_enemy_cards() + self.get_self_cards()
     for card in cards:
         if card.element == "death":
             card.heal(5, card.max_health)
         else:
             card.damage(13, self, True)
 def cast(self):
     Magic.cast(self)
     self.protected_cards = {}
     for cardbox in self.get_self_cardboxes():
         if cardbox.card.name != "player":  # if card exists
             self.protected_cards[cardbox.position] = cardbox.card
             cardbox.card = AbsoluteDefenceSpirit(cardbox.card)
     wzglobals.magic_cards.add(self)
 def cast(self):
     Magic.cast(self)
     cards = self.get_enemy_cards() + self.get_self_cards()
     for card in cards:
         if card.element == "death":
             card.die()
             self.player.mana['life'] += 3
             self.player.heal(1)
 def cast(self):
     Magic.cast(self)
     power = self.player.mana['life'] + self.level
     # mana['life'] - count of Life ;
     # level - cast this spell, because mana decreased before
     # spell activated.
     self.player.damage(power, self, True)
     self.player.enemy.damage(power * 2, self, True)
 def cast(self):
     Magic.cast(self)
     death_mana = wzglobals.player.mana['death'] + self.level
     if death_mana < 8:
         wzglobals.player.enemy.damage(5, self, True)
         wzglobals.player.heal(5)
     else:
         wzglobals.player.enemy.damage(death_mana + 5, self, True)
         wzglobals.player.heal(death_mana + 5)
Ejemplo n.º 21
0
 def cast(self):
     Magic.cast(self)
     earth_mana = self.player.mana['earth'] + self.level
     if earth_mana > 12:
         cards = self.get_enemy_cards()
     else:
         cards = self.get_enemy_cards() + self.get_self_cards()
     for card in cards:
         card.damage(15, self, True)
 def cast(self):
     Magic.cast(self)
     earth_mana = self.player.mana['earth'] + self.level
     if earth_mana > 12:
         cards = self.get_enemy_cards()
     else:
         cards = self.get_enemy_cards() + self.get_self_cards()
     for card in cards:
         card.damage(15, self, True)
Ejemplo n.º 23
0
 def cast(self):
     Magic.cast(self)
     death_mana = wzglobals.player.mana['death'] + self.level
     if death_mana < 8:
         wzglobals.player.enemy.damage(5, self, True)
         wzglobals.player.heal(5)
     else:
         wzglobals.player.enemy.damage(death_mana + 5, self, True)
         wzglobals.player.heal(death_mana + 5)
 def cast(self):
     Magic.cast(self)
     self.cards = self.get_enemy_cards()
     # берем "слепок" вражеских карт, которые будем травить
     for card in self.cards:
         if card.element != "death":
             card.spells.append(self)
             # говорим карте чтобы она начала креститься
             card.damage(1, self, True)
     wzglobals.magic_cards.add(self)  # добавляем периодизацию
 def cast(self):
     Magic.cast(self)
     cards = self.get_self_cards()
     for card in cards:
         if card.element != 'death':
             card.set_power(card.power + 1)
             self.cards.append(card)
         else:
             card.damage(10, self, True)
     wzglobals.magic_cards.add(self)
 def cast(self):
     Magic.cast(self)
     self.cards = self.get_enemy_cards()
     # берем "слепок" вражеских карт, которые будем травить
     for card in self.cards:
         if card.element != "death":
             card.spells.append(self)
             # говорим карте чтобы она начала креститься
             card.damage(1, self, True)
     wzglobals.magic_cards.add(self)  # добавляем периодизацию
 def cast(self):
     Magic.cast(self)
     max = 0
     link_to_max = False
     for card in self.get_enemy_cards():
         if card.level > max:
             max = card.level
             link_to_max = card
         else:
             continue
     if link_to_max:
         link_to_max.die()
Ejemplo n.º 28
0
 def cast(self):
     Magic.cast(self)
     max = 0
     link_to_max = False
     for card in self.get_enemy_cards():
         if card.level > max:
             max = card.level
             link_to_max = card
         else:
             continue
     if link_to_max:
         link_to_max.die()
Ejemplo n.º 29
0
 def cast(self):
     Magic.cast(self)
     if wzglobals.player.enemy.mana['water']:
         wzglobals.player.enemy.mana['water'] -= 1
     if wzglobals.player.enemy.mana['fire']:
         wzglobals.player.enemy.mana['fire'] -= 1
     if wzglobals.player.enemy.mana['air']:
         wzglobals.player.enemy.mana['air'] -= 1
     if wzglobals.player.enemy.mana['earth']:
         wzglobals.player.enemy.mana['earth'] -= 1
     if wzglobals.player.enemy.mana['life']:
         wzglobals.player.enemy.mana['life'] -= 1
     if wzglobals.player.enemy.mana['death']:
         wzglobals.player.enemy.mana['death'] -= 1
 def cast(self):
     Magic.cast(self)
     if wzglobals.player.enemy.mana['water']:
         wzglobals.player.enemy.mana['water'] -= 1
     if wzglobals.player.enemy.mana['fire']:
         wzglobals.player.enemy.mana['fire'] -= 1
     if wzglobals.player.enemy.mana['air']:
         wzglobals.player.enemy.mana['air'] -= 1
     if wzglobals.player.enemy.mana['earth']:
         wzglobals.player.enemy.mana['earth'] -= 1
     if wzglobals.player.enemy.mana['life']:
         wzglobals.player.enemy.mana['life'] -= 1
     if wzglobals.player.enemy.mana['death']:
         wzglobals.player.enemy.mana['death'] -= 1
 def cast(self):
     Magic.cast(self)
     has_life = False
     for card in self.get_self_cards():
         if card.element == 'life':
             has_life = True
     if has_life:
         self.player.heal(5)
         for e_card in self.get_enemy_cards():
             opp_card = wzglobals.cardboxes[
                 e_card.get_attack_position()
             ].card
             if opp_card.name != 'player':
                 # if card in opposed slot exist
                 e_card.damage(4, self, True)
                 opp_card.heal(4, opp_card.max_health)
             else:
                 e_card.damage(4, self, True)
     else:
         return
 def cast(self):
     Magic.cast(self)
     s_cards = self.get_self_cards()
     s_cards_immune = False
     e_cards = self.get_enemy_cards()
     e_cards_immune = False
     cards = []
     for card in s_cards:
         if card.name == "Poseidon":
             s_cards_immune = True
         else:
             continue
     if not s_cards_immune:
         cards += s_cards
     for card in e_cards:
         if card.name == "Poseidon":
             e_cards_immune = True
         else:
             continue
     if not e_cards_immune:
         cards += e_cards
     for card in cards:
         card.damage(16, self, True)
 def cast(self):
     Magic.cast(self)
     s_cards = self.get_self_cards()
     s_cards_immune = False
     e_cards = self.get_enemy_cards()
     e_cards_immune = False
     cards = []
     for card in s_cards:
         if card.name == "Poseidon":
             s_cards_immune = True
         else:
             continue
     if not s_cards_immune:
         cards += s_cards
     for card in e_cards:
         if card.name == "Poseidon":
             e_cards_immune = True
         else:
             continue
     if not e_cards_immune:
         cards += e_cards
     for card in cards:
         card.damage(16, self, True)
 def cast(self):
     Magic.cast(self)
     self.nt = False
     wzglobals.magic_cards.add(self)  # добавляем периодизацию
Ejemplo n.º 35
0
 def cast(self):
     Magic.cast(self)
     for card in self.get_enemy_cards():
         card.damage(3, self, True)
Ejemplo n.º 36
0
 def cast(self):
     Magic.cast(self)
     enemy_cards = self.get_enemy_cards()
     for card in enemy_cards:
         card.damage(self.player.mana['fire'] + self.level + 3, self, True)
Ejemplo n.º 37
0
 def cast(self):
     Magic.cast(self)
     cards = self.get_enemy_cards() + self.get_self_cards()
     self.player.mana['death'] += len(cards)
     for card in cards:
         card.die()
Ejemplo n.º 38
0
 def cast(self):
     Magic.cast(self)
     for card in self.get_self_cards():
         card.heal(4, card.max_health)
         self.player.heal(2)
 def cast(self):
     Magic.cast(self)
     cards = self.get_enemy_cards()
     for card in cards:
         card.default_power = int(floor(card.power / 2.0))
         card.set_power(int(floor(card.power / 2.0)))
 def cast(self):
     Magic.cast(self)
     self.player.enemy.damage(10 + (self.player.mana["water"] + self.level) / 2, self, True)
     self.player.damage(6, self, True)
     self.player.mana["water"] = 0
 def cast(self):
     Magic.cast(self)
     self.nt = False
     wzglobals.magic_cards.add(self)  # добавляем периодизацию
 def cast(self):
     Magic.cast(self)
     cards = self.get_enemy_cards() + self.get_self_cards()
     for card in cards:
         card.set_health(1)
 def cast(self):
     Magic.cast(self)
     for card in self.get_self_cards():
         card.heal(4, card.max_health)
         self.player.heal(2)
 def cast(self):
     Magic.cast(self)
     self.player.enemy.damage(
         10 + (self.player.mana['water'] + self.level) / 2, self, True)
     self.player.damage(6, self, True)
     self.player.mana['water'] = 0
Ejemplo n.º 45
0
 def cast(self):
     Magic.cast(self)
     cards = self.get_enemy_cards() + self.get_self_cards()
     for card in cards:
         card.set_health(1)
 def cast(self):
     Magic.cast(self)
     cards = self.get_enemy_cards() + self.get_self_cards()
     self.player.mana['death'] += len(cards)
     for card in cards:
         card.die()
 def cast(self):
     Magic.cast(self)
     for card in self.get_enemy_cards():
         card.damage(3, self, True)
Ejemplo n.º 48
0
 def cast(self):
     Magic.cast(self)
     for card in self.get_self_cards():
         card.max_health += 3
         card.heal(6, card.max_health)
 def cast(self):
     Magic.cast(self)
     enemy_cards = self.get_enemy_cards()
     for card in enemy_cards:
         card.damage(self.player.mana["fire"] + self.level + 3, self, True)
 def cast(self):
     Magic.cast(self)
     for card in self.get_self_cards():
         card.max_health += 3
         card.heal(6, card.max_health)
Ejemplo n.º 51
0
 def cast(self):
     Magic.cast(self)
     cards = self.get_enemy_cards()
     for card in cards:
         card.default_power = int(floor(card.power / 2.0))
         card.set_power(int(floor(card.power / 2.0)))