From c69aab191caa49f27c411dfa6aba69980ee24393 Mon Sep 17 00:00:00 2001 From: Kyle Spier-Swenson Date: Tue, 15 Dec 2015 22:29:29 -0800 Subject: [PATCH] Properly fixes resin exploit Fixes #13667 Closes #13669 --- .../mob/living/carbon/alien/humanoid/alien_powers.dm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/code/modules/mob/living/carbon/alien/humanoid/alien_powers.dm b/code/modules/mob/living/carbon/alien/humanoid/alien_powers.dm index a86233294e0..05bc607668b 100644 --- a/code/modules/mob/living/carbon/alien/humanoid/alien_powers.dm +++ b/code/modules/mob/living/carbon/alien/humanoid/alien_powers.dm @@ -241,8 +241,10 @@ Doesn't work on other aliens/AI.*/ user << "There is already a resin structure there." return 0 var/choice = input("Choose what you wish to shape.","Resin building") as null|anything in structures - if(!choice) return 0 - + if(!choice) + return 0 + if (!cost_check(check_turf,user)) + return 0 user << "You shape a [choice]." user.visible_message("[user] vomits up a thick purple substance and begins to shape it.") @@ -331,4 +333,4 @@ Doesn't work on other aliens/AI.*/ /proc/cmp_abilities_cost(obj/effect/proc_holder/alien/a, obj/effect/proc_holder/alien/b) - return b.plasma_cost - a.plasma_cost \ No newline at end of file + return b.plasma_cost - a.plasma_cost