Commit 60589b1e by BellCodeEditor

save project

parent 4ebed754
Showing with 1 additions and 1 deletions
......@@ -10,7 +10,7 @@ class Hero(object):
ene.hp-=self.attack
info1=self.name+'对'+ene.name+'发起进攻,'
info2='造成'+str(self.attack)+'点伤害,'
if self,ene < 0:
if ene.hp > 0:
info3=ene.name+'还剩'+str(ene.hp)+'点血量!'
info=info1+info2+info3
print(info)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment