fix github issue #1204 - reflected poison gas

Reported by elunna:  a poison gas breath attack that was reflected
by the target still left that target enveloped in a poison gas cloud.

This makes the gas trail not extend to the target if the attack hits
and is reflected.  But if the attack misses then the cloud does reach
the target, which seems weird to me.  However, being in the cloud is
a separate event that isn't deterred by reflection.

Closes #1204
This commit is contained in:
PatR
2024-02-07 11:58:12 -08:00
parent 6b9f411a32
commit 5212e4b3db
2 changed files with 28 additions and 11 deletions

View File

@@ -1858,6 +1858,9 @@ if an amulet of flying gets stolen while hero is over lava without other
protection against lava, it will be destroyed even though it isn't
flammable, then attempting to format it for messages will trigger an
impossible warning about "glorkum", then a crash occurs
poison gas breath from green dragon or iron golem that hit and was reflected
left target enveloped in a gas cloud (reflection now takes precedence;
somewhat odd though: gas that misses still leaves target enveloped)
Fixes to 3.7.0-x Platform and/or Interface Problems Exposed Via git Repository