From 56556ca1e1fe90fb7814ed155d9c815c145056f7 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 16 Jun 2021 10:19:27 +0200 Subject: [PATCH] fixed the remaining spurious shadow messages --- monstermove.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/monstermove.cpp b/monstermove.cpp index 5c59f692..b19480b8 100644 --- a/monstermove.cpp +++ b/monstermove.cpp @@ -1472,12 +1472,12 @@ EX void moveshadow() { cshpos = (cshpos+1) % SHSIZE; for(int p: player_indices()) { cell* where = shpos[cshpos][p]; - if(where && sword::at(where)) { - kill_shadow_at(where); - fightmessage(moShadow, moPlayer, false, AF_SWORD_INTO); - continue; - } if(where && where->monst == moNone && where->cpdist && among(where->land, laGraveyard, laCursed)) { + if(sword::at(where)) { + kill_shadow_at(where); + fightmessage(moShadow, moPlayer, false, AF_SWORD_INTO); + continue; + } if(shfrom) animateMovement(match(shfrom, where), LAYER_SMALL); where->monst = moShadow; where->hitpoints = p;