1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 13:07:16 +00:00

bow:: do not auto-shoot friends

This commit is contained in:
Zeno Rogue 2024-11-03 22:08:31 +01:00
parent e72e0f90b5
commit 7798929629

View File

@ -347,6 +347,7 @@ EX bool fire_on_mouse(cell *c) {
if(mouse_fire_mode == mfmNone) return false; if(mouse_fire_mode == mfmNone) return false;
if(!mouseover) return false; if(!mouseover) return false;
if(!mouseover->monst) return false; if(!mouseover->monst) return false;
if(isFriendly(mouseover)) return false;
if(shmup::on) return false; if(shmup::on) return false;
if(items[itCrossbow]) { if(items[itCrossbow]) {
if(mouse_fire_mode == mfmAlways) { if(mouse_fire_mode == mfmAlways) {