diff --git a/scripts/CardController.gd b/scripts/CardController.gd index 9778ab3..7c71406 100644 --- a/scripts/CardController.gd +++ b/scripts/CardController.gd @@ -292,11 +292,11 @@ func on_targeted(attacker): pass func on_damaged(attacker, amount): - print(card_name + " was damaged by " + attacker.card_name + " for " + amount + " damage") + print(card_name + " was damaged by " + attacker.card_name + " for " + str(amount) + " damage") pass func on_healed(healer, amount): - print(card_name + " was healed by " + healer.card_name + " for " + amount + " damage") + print(card_name + " was healed by " + healer.card_name + " for " + str(amount) + " damage") pass func on_turn_start(): diff --git a/scripts/HandController.gd b/scripts/HandController.gd index b6a4521..66eb3ea 100644 --- a/scripts/HandController.gd +++ b/scripts/HandController.gd @@ -25,7 +25,7 @@ func insert_card(card: Node3D, index: int, global_position: Vector3) -> void: card.on_drawn() for c in opponent_battlefield.managed_cards: - c.on_enemy_draw_card() + c.on_enemy_draw_card(card) func get_desired_position(index: int) -> Vector3: var num_cards = get_cards_len()