Archived
add heal and damage to netcode
This commit is contained in:
@@ -116,12 +116,19 @@ class ClientController:
|
||||
return await self.player.turn.lock_card(message.data)
|
||||
|
||||
case "use_effect":
|
||||
return await self.player.turn.use_effect(
|
||||
return await self.player.turn.use_effect_with_check(
|
||||
message.data.get("effect_id"), message.data.get("target")
|
||||
)
|
||||
|
||||
case "buy":
|
||||
return await self.player.turn.buy_card(message.data)
|
||||
|
||||
case "heal":
|
||||
return await self.player.turn.heal(message.data)
|
||||
|
||||
case "damage":
|
||||
return await self.player.turn.damage(message.data)
|
||||
|
||||
case "end_turn":
|
||||
return await self.player.turn.end_turn()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user