Fix apply_innate_effects not getting mob refs like its supposed to, fixes veil health not being modified (#17965)

This commit is contained in:
adamsong
2023-02-18 22:05:15 -05:00
committed by GitHub
parent 8f9f915f69
commit 4dbd995239

View File

@@ -85,7 +85,7 @@ GLOBAL_LIST_EMPTY(antagonists)
if(!owner.current)
CRASH("[src] ran on_gain() on a mind without a mob")
greet()
apply_innate_effects()
apply_innate_effects(owner.current)
give_antag_moodies()
if(is_banned(owner.current) && replace_banned)
replace_banned_player()
@@ -117,7 +117,7 @@ GLOBAL_LIST_EMPTY(antagonists)
//Called by the remove_antag_datum() and remove_all_antag_datums() mind procs for the antag datum to handle its own removal and deletion.
/datum/antagonist/proc/on_removal()
SHOULD_CALL_PARENT(TRUE)
remove_innate_effects()
remove_innate_effects(owner.current)
clear_antag_moodies()
if(owner)
LAZYREMOVE(owner.antag_datums, src)