Timers can be flagged for removal on death (fixes deep wilderness threats attacking for brief period after respawn)

Fixed an issue with the skill restore timer that caused overheals to be reset to normal hp
This commit is contained in:
Ceikry
2023-08-14 13:22:53 +00:00
committed by Ryan
parent a3e6df109d
commit 678d25dacd
20 changed files with 159 additions and 35 deletions
@@ -99,7 +99,7 @@ class RevGuardianBehavior : NPCBehavior() {
override fun tick(self: NPC): Boolean {
val target = getAttribute<Player?>(self, "dw-threat-target", null) ?: return true
if (!target.isActive) {
if (!target.isActive || DeathTask.isDead(target)) {
self.clear()
return true
}