bug fixed

This commit is contained in:
Jerry Wu 2018-06-02 21:42:02 +08:00
parent ab3fcedad2
commit 57709777e6
2 changed files with 1 additions and 2 deletions

View File

@ -113,8 +113,6 @@ def surprise(wscur,wsene):
cur.status = Room.NOTHING cur.status = Room.NOTHING
ene.life -= cur.damage ene.life -= cur.damage
drop = random.choice(ene.hand)
ene.remove_card(drop)
cur.surprise = False cur.surprise = False
cur.damage = 0 # reset cur.damage = 0 # reset

View File

@ -241,6 +241,7 @@ class Room:
cur.hand.remove(choice) cur.hand.remove(choice)
cur.hand.append(ene.trading) cur.hand.append(ene.trading)
message_to_send.append(((wscur, wsene), dumps({"msg": "tradeChoose", "data": [cur.name, choice]})))
else: else:
message_to_send.append(( (wsene,wscur), dumps( {"msg": "tradeNoCard", "data": [cur.name]}))) message_to_send.append(( (wsene,wscur), dumps( {"msg": "tradeNoCard", "data": [cur.name]})))