Skip to content

Commit

Permalink
makes executions less accidental
Browse files Browse the repository at this point in the history
  • Loading branch information
morrowwolf committed Oct 27, 2023
1 parent cfbf196 commit 7910800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/projectiles/gun.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1248,7 +1248,7 @@ and you're good to go.
return TRUE //Nothing else to do here, time to cancel out.
return TRUE

#define EXECUTION_CHECK (attacked_mob.stat == UNCONSCIOUS || attacked_mob.is_mob_restrained()) && ((user.a_intent == INTENT_GRAB)||(user.a_intent == INTENT_DISARM))
#define EXECUTION_CHECK (attacked_mob.stat == UNCONSCIOUS || attacked_mob.is_mob_restrained()) && ((user.a_intent == INTENT_GRAB) || (user.a_intent == INTENT_DISARM)) && !(length(user.faction_group & attacked_mob.faction_group)) && ishuman(attacked_mob)

/obj/item/weapon/gun/afterattack(atom/target, mob/user, proximity_flag, click_parameters)
if(!proximity_flag)
Expand Down

0 comments on commit 7910800

Please sign in to comment.