mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-05 11:12:49 +00:00
fixed the remaining spurious shadow messages
This commit is contained in:
parent
8b306c765e
commit
56556ca1e1
@ -1472,12 +1472,12 @@ EX void moveshadow() {
|
|||||||
cshpos = (cshpos+1) % SHSIZE;
|
cshpos = (cshpos+1) % SHSIZE;
|
||||||
for(int p: player_indices()) {
|
for(int p: player_indices()) {
|
||||||
cell* where = shpos[cshpos][p];
|
cell* where = shpos[cshpos][p];
|
||||||
if(where && sword::at(where)) {
|
if(where && where->monst == moNone && where->cpdist && among(where->land, laGraveyard, laCursed)) {
|
||||||
|
if(sword::at(where)) {
|
||||||
kill_shadow_at(where);
|
kill_shadow_at(where);
|
||||||
fightmessage(moShadow, moPlayer, false, AF_SWORD_INTO);
|
fightmessage(moShadow, moPlayer, false, AF_SWORD_INTO);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if(where && where->monst == moNone && where->cpdist && among(where->land, laGraveyard, laCursed)) {
|
|
||||||
if(shfrom) animateMovement(match(shfrom, where), LAYER_SMALL);
|
if(shfrom) animateMovement(match(shfrom, where), LAYER_SMALL);
|
||||||
where->monst = moShadow;
|
where->monst = moShadow;
|
||||||
where->hitpoints = p;
|
where->hitpoints = p;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user