mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 20:15:47 +01:00
[MIRROR] fixes 2 runtimes caused by holding people up with a gun (#3283)
* fixes 2 runtimes caused by holding people up with a gun (#56800) Fixes two runtimes, one caused by status effects always expecting a return from throw_alert, and another caused by holding yourself up (which you shouldn't even be able to do). Also fixes an issue caused by multiple people holding up the same person, when one of the perpetrators stopped holding up the victim, all of the victim's related alerts disappeared. * fixes 2 runtimes caused by holding people up with a gun Co-authored-by: TJatPBnJ <69724863+TJatPBnJ@users.noreply.github.com>
This commit is contained in:
@@ -111,7 +111,7 @@
|
||||
rewarded.adjustCloneLoss(-25)
|
||||
|
||||
// heldup is for the person being aimed at
|
||||
/datum/status_effect/heldup
|
||||
/datum/status_effect/grouped/heldup
|
||||
id = "heldup"
|
||||
duration = -1
|
||||
tick_interval = -1
|
||||
@@ -123,11 +123,11 @@
|
||||
desc = "Making any sudden moves would probably be a bad idea!"
|
||||
icon_state = "aimed"
|
||||
|
||||
/datum/status_effect/heldup/on_apply()
|
||||
/datum/status_effect/grouped/heldup/on_apply()
|
||||
owner.apply_status_effect(STATUS_EFFECT_SURRENDER)
|
||||
return ..()
|
||||
|
||||
/datum/status_effect/heldup/on_remove()
|
||||
/datum/status_effect/grouped/heldup/on_remove()
|
||||
owner.remove_status_effect(STATUS_EFFECT_SURRENDER)
|
||||
return ..()
|
||||
|
||||
@@ -302,7 +302,7 @@
|
||||
slap_item = null
|
||||
|
||||
//this effect gives the user an alert they can use to surrender quickly
|
||||
/datum/status_effect/surrender
|
||||
/datum/status_effect/grouped/surrender
|
||||
id = "surrender"
|
||||
duration = -1
|
||||
tick_interval = -1
|
||||
|
||||
Reference in New Issue
Block a user