Guest User

Untitled

a guest
Apr 1st, 2020
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.68 KB | None | 0 0
  1.         elif enemy_choice == 1:
  2.             spell, magic_dm = enemy.enemy_spell()
  3.             print(enemy.name + "chose", spell.name, "damage is", magic_dm)
  4.  
  5.             enemy.reduce_mp(spell.cost)
  6.  
  7.             if spell.type == "w":
  8.                 enemy.heal(magic_dm)
  9.                 print(Bcolor.OKBLUE + spell.name + " heals " + enemy.name + "for " , str(magic_dm), " HP" + Bcolor.ENDC)
  10.             elif spell.type == "b":
  11.                 target = random.randrange(0, 2)
  12.                 Players[target].take_dm(magic_dm)
  13.                 print(Bcolor.OKBLUE + enemy.name + "'s" + spell.name + " deals", str(magic_dm), " points of damage to " + Players[target].name + Bcolor.ENDC)
Add Comment
Please, Sign In to add comment