Fix Snickersnee attack

Adding the extra attack to Snickersnee made the weapon always
attack from range, even when it was used in melee.
This commit is contained in:
Pasi Kallinen
2025-07-05 19:59:23 +03:00
parent e2b80cd886
commit 0da45c1e74

View File

@@ -1055,7 +1055,8 @@ hmon_hitmon_weapon(
/* or strike with a missile in your hand... */
|| (!hmd->thrown && (is_missile(obj) || is_ammo(obj)))
/* or use a pole at short range and not mounted... */
|| (!hmd->thrown && !u.usteed && is_pole(obj))
|| (!hmd->thrown && !u.usteed && is_pole(obj)
&& !is_art(obj,ART_SNICKERSNEE))
/* or throw a missile without the proper bow... */
|| (is_ammo(obj) && (hmd->thrown != HMON_THROWN
|| !ammo_and_launcher(obj, uwep)))) {