fix avoiding powerfist antidrop (#25274)

* fix avoiding powerfist antidrop

* Update code/game/objects/items/weapons/powerfist.dm

Co-authored-by: HMBGERDO <61080616+HMBGERDO@users.noreply.github.com>
Signed-off-by: Сиротка <114731039+ErdGinalD@users.noreply.github.com>

* Update code/game/objects/items/weapons/powerfist.dm

Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com>
Signed-off-by: Сиротка <114731039+ErdGinalD@users.noreply.github.com>

---------

Signed-off-by: Сиротка <114731039+ErdGinalD@users.noreply.github.com>
Co-authored-by: HMBGERDO <61080616+HMBGERDO@users.noreply.github.com>
Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com>
This commit is contained in:
Сиротка
2024-04-29 01:33:25 +00:00
committed by GitHub
co-authored by HMBGERDO 1080pCat
parent 83c9d8878a
commit 7f37f93408
+2 -2
View File
@@ -31,8 +31,8 @@
/obj/item/melee/powerfist/attackby(obj/item/W, mob/user, params)
if(istype(W, /obj/item/tank/internals))
if(!iscarbon(loc))
to_chat(user, "<span class='warning'>You have to hold the powerfist in your hand!</span>")
if(!user.is_holding(src))
to_chat(user, "<span class='warning'>You have to hold [src] in your hand!</span>")
return
if(!tank)
var/obj/item/tank/internals/IT = W