Skip to content

Commit

Permalink
Fix bug in hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
grymmy committed Dec 18, 2024
1 parent bedd8b2 commit 4f08280
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/CardController.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
2 changes: 1 addition & 1 deletion scripts/HandController.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 4f08280

Please sign in to comment.