From 7a8eaf41acf611cf5c64dfa58e94874794bfae8e Mon Sep 17 00:00:00 2001 From: Ghommie Date: Wed, 12 Jun 2019 23:21:42 +0200 Subject: [PATCH] another get_cell() --- code/game/objects/items/stunbaton.dm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/code/game/objects/items/stunbaton.dm b/code/game/objects/items/stunbaton.dm index d85295377c..bc5429da54 100644 --- a/code/game/objects/items/stunbaton.dm +++ b/code/game/objects/items/stunbaton.dm @@ -172,10 +172,7 @@ playsound(L, 'sound/weapons/genhit.ogg', 50, 1) return FALSE var/stunpwr = stunforce - var/obj/item/stock_parts/cell/our_cell = cell - if(iscyborg(loc)) - var/mob/living/silicon/robot/R = loc - our_cell = R.cell + var/obj/item/stock_parts/cell/our_cell = get_cell() if(!our_cell) return FALSE var/stuncharge = our_cell.charge