From 779892962931d6edbb3aaedd49d4b89857c8b2c7 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 3 Nov 2024 22:08:31 +0100 Subject: [PATCH] bow:: do not auto-shoot friends --- crossbow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/crossbow.cpp b/crossbow.cpp index 550c33b9..a78e6715 100644 --- a/crossbow.cpp +++ b/crossbow.cpp @@ -347,6 +347,7 @@ EX bool fire_on_mouse(cell *c) { if(mouse_fire_mode == mfmNone) return false; if(!mouseover) return false; if(!mouseover->monst) return false; + if(isFriendly(mouseover)) return false; if(shmup::on) return false; if(items[itCrossbow]) { if(mouse_fire_mode == mfmAlways) {