mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-09 16:45:44 -07:00
Fixed skull visually persisting on death
This commit is contained in:
parent
c7afeab2ab
commit
b68f914440
1 changed files with 5 additions and 0 deletions
|
|
@ -19,6 +19,11 @@ class Skulled : PersistTimer (1, "skulled", flags = arrayOf(TimerFlag.ClearOnDea
|
|||
return false
|
||||
}
|
||||
|
||||
override fun onRemoval (entity: Entity) {
|
||||
if (entity !is Player) return
|
||||
entity.skullManager.reset()
|
||||
}
|
||||
|
||||
override fun getTimer (vararg args: Any) : RSTimer {
|
||||
val t = Skulled()
|
||||
t.runInterval = args.getOrNull(0) as? Int ?: 500
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue