mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 16:18:01 +01:00
[MIRROR] Fixed runtime from unowned cooldown actions (carp rift) [MDB IGNORE] (#26085)
* Fixed runtime from unowned cooldown actions (carp rift) (#80895) ## About The Pull Request This might not be the most correct fix but it *makes sense*. Some actions can not have an owner if it is unowned, so this check would runtime.  I assume carp rift is unowned in some places? * Fixed runtime from unowned cooldown actions (carp rift) --------- Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
This commit is contained in:
@@ -177,7 +177,7 @@
|
||||
/// Starts a cooldown time for other abilities that share a cooldown with this. Has some niche usage with more complicated attack ai!
|
||||
/// Will use default cooldown time if an override is not specified
|
||||
/datum/action/cooldown/proc/StartCooldownOthers(override_cooldown_time)
|
||||
if(!length(owner.actions))
|
||||
if(!length(owner?.actions))
|
||||
return // Possible if they have an action they don't control
|
||||
for(var/datum/action/cooldown/shared_ability in owner.actions - src)
|
||||
if(!(shared_cooldown & shared_ability.shared_cooldown))
|
||||
|
||||
Reference in New Issue
Block a user