infinixeno (#12234)

This commit is contained in:
Lin
2020-05-13 01:18:25 +00:00
committed by GitHub
parent 5a905b2f02
commit fd30edca9c

View File

@@ -21,10 +21,10 @@ Doesn't work on other aliens/AI.*/
. = ..()
action = new(src)
/obj/effect/proc_holder/alien/Trigger(mob/living/carbon/user, skip_cost_check)
if(!istype(user))
/obj/effect/proc_holder/alien/Trigger(mob/living/carbon/user, skip_cost_check = FALSE)
if(!skip_cost_check || !istype(user))
return TRUE
if(!skip_cost_check || cost_check(check_turf,user))
if(cost_check(check_turf,user))
if(fire(user) && user) // Second check to prevent runtimes when evolving
user.adjustPlasma(-plasma_cost)
return TRUE