fix issue #1377 - Forcefight vs displacer beasts

Issue reported by elunna:  Using the 'F' prefix against a displacer
beast prevented swapping places.

This doesn't use the suggested fix.  It is quite short but there is
a large diff due to change in indentation and reformatting several
comments because of that.

Attacking a displacer beast either with or without 'F' might miss,
hit, or swap places.  It won't "harmlessly attack thin air."

Fixes #1377
This commit is contained in:
PatR
2025-03-10 09:17:41 -07:00
parent 0a180c52ef
commit 719166f9ec
2 changed files with 108 additions and 101 deletions

View File

@@ -2098,6 +2098,8 @@ when walking into/against a locked closed door, 'autounlock'==kick didn't
having a 1% chance of creating rideable monsters with worn saddle gave knights
a 1% chance of creating an extra saddle for starting pony; it wasn't
tracked with other objects so produced a trivial memory leak
hen attacking a displacer beast, using the 'F' forcefight prefix prevented it
from swapping places with the hero
Fixes to 3.7.0-x Platform and/or Interface Problems Exposed Via git Repository