diff --git a/code/game/objects/items/weapons/stunbaton.dm b/code/game/objects/items/weapons/stunbaton.dm index b71b60532f4..5e314002a24 100644 --- a/code/game/objects/items/weapons/stunbaton.dm +++ b/code/game/objects/items/weapons/stunbaton.dm @@ -10,6 +10,8 @@ w_class = 3 var/charges = 10 var/status = 0 + var/mob/foundmob = "" //Used in throwing proc. + origin_tech = "combat=2" @@ -99,7 +101,12 @@ H.apply_effect(10, STUTTER, 0) charges-- - H.visible_message("[src], thrown by ([src.fingerprintslast]) hits [H] with stunning end!") + for(var/mob/M in player_list) if(M.key == src.fingerprintslast) + foundmob = M + break + + H.visible_message("[src], thrown by [foundmob.name], strikes [H] and stuns them!") + H.attack_log += "\[[time_stamp()]\] Stunned by thrown [src.name] (([src.fingerprintslast]))" log_attack("Flying [src.name], thrown by ([src.fingerprintslast]) stunned [H.name] ([H.ckey])" )