played cards get removed from hands and (wrongly) added to the stack
This commit is contained in:
@@ -49,6 +49,12 @@ func add_cards(card_ids: Array[int], is_owned: bool) -> void:
|
||||
add_card(card)
|
||||
await get_tree().create_timer(0.16).timeout
|
||||
|
||||
func remove_card_by_id(card_id: int) -> void:
|
||||
for card in card_container.get_children():
|
||||
if card.card_details.card_id == card_id:
|
||||
remove_card(card)
|
||||
return
|
||||
|
||||
func remove_card(card: PlayingCard) -> void:
|
||||
card_container.remove_child(card)
|
||||
card.queue_free()
|
||||
|
||||
Reference in New Issue
Block a user