Fixes elite action buttons breaking entirely (#24860)

* fixes elite action buttons breaking entirely

* fixes icons, maptext is still odd
This commit is contained in:
Luc
2024-03-28 18:08:35 -04:00
committed by GitHub
parent b1988e705b
commit 618eb8a2d2
@@ -125,13 +125,15 @@ While using this makes the system rely on OnFire, it still gives options for tim
STOP_PROCESSING(SSfastprocess, src)
qdel(src)
return
UpdateButton()
UpdateButtons()
/datum/action/innate/elite_attack/UpdateButton(atom/movable/screen/movable/action_button/button, status_only = FALSE, force = FALSE)
. = ..()
if(status_only)
return
var/mob/living/simple_animal/hostile/asteroid/elite/elite_owner = owner
var/timeleft = max(elite_owner.ranged_cooldown - world.time, 0)
if(timeleft == 0)
button.maptext = ""
else