mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-08 23:20:12 +00:00
changes: fix for paired monsters
This commit is contained in:
parent
f98b422aa6
commit
5ff63bbb43
@ -767,11 +767,15 @@ EX void killMonster(cell *c, eMonster who, flagtype deathflags IS(0)) {
|
|||||||
c->monst = moTentacletail;
|
c->monst = moTentacletail;
|
||||||
else c->monst = moNone;
|
else c->monst = moNone;
|
||||||
|
|
||||||
if(m == moPair && c->move(c->mondir)->monst == moPair)
|
if(m == moPair && c->move(c->mondir)->monst == moPair) {
|
||||||
|
changes.ccell(c->move(c->mondir));
|
||||||
killMonster(c->move(c->mondir), who, deathflags);
|
killMonster(c->move(c->mondir), who, deathflags);
|
||||||
|
}
|
||||||
|
|
||||||
if(isMagneticPole(m) && c->move(c->mondir)->monst == otherpole(m))
|
if(isMagneticPole(m) && c->move(c->mondir)->monst == otherpole(m)) {
|
||||||
|
changes.ccell(c->move(c->mondir));
|
||||||
killMonster(c->move(c->mondir), who, deathflags);
|
killMonster(c->move(c->mondir), who, deathflags);
|
||||||
|
}
|
||||||
|
|
||||||
if(m == moEarthElemental) earthWall(c);
|
if(m == moEarthElemental) earthWall(c);
|
||||||
if(m == moAlbatross && items[itOrbLuck])
|
if(m == moAlbatross && items[itOrbLuck])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user