Merge pull request #4753 from Fox-McCloud/gun-fix

Fixes Clumsy Gun Check
This commit is contained in:
TheDZD
2016-06-22 10:44:26 -04:00
committed by GitHub

View File

@@ -140,7 +140,7 @@
//Exclude lasertag guns from the CLUMSY check.
if(clumsy_check)
if(istype(user))
if (user.disabilities & CLUMSY && prob(40))
if((CLUMSY in user.mutations) && prob(40))
to_chat(user, "<span class='userdanger'>You shoot yourself in the foot with \the [src]!</span>")
var/shot_leg = pick("l_foot", "r_foot")
process_fire(user, user, 0, params, zone_override = shot_leg)