bug fixed
This commit is contained in:
parent
ab3fcedad2
commit
57709777e6
2
card.py
2
card.py
@ -113,8 +113,6 @@ def surprise(wscur,wsene):
|
||||
|
||||
cur.status = Room.NOTHING
|
||||
ene.life -= cur.damage
|
||||
drop = random.choice(ene.hand)
|
||||
ene.remove_card(drop)
|
||||
cur.surprise = False
|
||||
cur.damage = 0 # reset
|
||||
|
||||
|
1
room.py
1
room.py
@ -241,6 +241,7 @@ class Room:
|
||||
|
||||
cur.hand.remove(choice)
|
||||
cur.hand.append(ene.trading)
|
||||
message_to_send.append(((wscur, wsene), dumps({"msg": "tradeChoose", "data": [cur.name, choice]})))
|
||||
else:
|
||||
message_to_send.append(( (wsene,wscur), dumps( {"msg": "tradeNoCard", "data": [cur.name]})))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user