1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-08-05 12:15:26 +01:00

Merge pull request #1791 from NeroOneTrueKing/patch-bandaid-bad-spell-target-msg

Bandaid spellcaster wildmiss message
This commit is contained in:
Chris-plus-alphanumericgibberish 2021-10-26 23:45:07 -04:00 committed by GitHub
commit 1366a66d72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1869,7 +1869,7 @@ int tary;
/* print spell-cast message */
if (spellnum) {
if ((youagr || (youdef && !is_undirected_spell(spellnum) && cansee(tarx, tary)) || canspotmon(magr)) && magr->mtyp != PM_HOUND_OF_TINDALOS) {
if (is_undirected_spell(spellnum) || notarget)
if (is_undirected_spell(spellnum) || notarget || (!foundem && distmin(x(mdef), y(mdef), tarx, tary) > 2))
buf[0] = '\0';
else
{