Archived
Fix champion kill not working
This commit is contained in:
+5
-5
@@ -254,11 +254,11 @@ class Player(Serializable):
|
||||
card = self.game.search_card_in_pile(card_id, p.board)
|
||||
if card is None:
|
||||
continue
|
||||
else:
|
||||
card = self.source_card(card_id, p.board)
|
||||
p.discard_pile.append(card)
|
||||
await p.notify_update()
|
||||
return True
|
||||
|
||||
card = self.source_card(card_id, p.board)
|
||||
p.discard_pile.append(card)
|
||||
await p.notify_update()
|
||||
return True
|
||||
|
||||
print("Cannot stun : card not found")
|
||||
return False
|
||||
|
||||
+1
-1
@@ -372,7 +372,7 @@ class Turn(Serializable):
|
||||
self.damage_reserve -= 1
|
||||
p.turn.champions_health[str(c.uuid)] -= 1
|
||||
if p.turn.champions_health[str(c.uuid)] <= 0:
|
||||
await self.player.stun(c.uuid)
|
||||
await self.player.stun(str(c.uuid))
|
||||
|
||||
await self.player.game.notify_controller("update", self.serialize())
|
||||
await self.player.game.notify_controller("update", p.turn.serialize())
|
||||
|
||||
Reference in New Issue
Block a user