Closed mustachebutter closed 4 months ago
When the status effect ends and tick timer being destroyed. It shoudn't be empty, but it is complaining that the variable _tickTimer
is null
Fixed. It is fixed by calling the StartMainTimer()
to refresh the timer of the old same instance of status effect on the target. Previously it would called the method from a new instance of the status effect coming in, which doesn't properly resets it.
Describe the bug It might get refreshed but the
OnStatusEffectEnd()
inDotStatusEffect
class is called for the same amount as the time that it refreshes.To Reproduce Steps to reproduce the behavior:
Expected behavior Observe the debug window, it will print out the debug line in
OnStatusEffectEnd
twice, which should only be once.Screenshots![image](https://github.com/mustachebutter/GodotAutoSurvival/assets/43947255/440a96a4-9364-4201-b72c-36e9aa0c2974)