Skip to content

Commit

Permalink
Fix status are carried between fights (Saplings-Projects#106)
Browse files Browse the repository at this point in the history
* Fix status being carried between fights
  • Loading branch information
TripleCubes authored Jun 5, 2024
1 parent f20996a commit e5cee8d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Entity/Components/StatusComponent.gd
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ class_name StatusComponent
var current_status: Array[StatusBase] = []


func _ready() -> void:
PhaseManager.on_event_win.connect(remove_all_status)


## Add a new status to the entity [br]
## The status caster is the one applying the status. [br]
## If the target entity already has the status, the duration of the new status is added to the existing one. [br]
Expand Down

0 comments on commit e5cee8d

Please sign in to comment.