mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-02 04:09:16 +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;
|
||||
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);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
if(m == moEarthElemental) earthWall(c);
|
||||
if(m == moAlbatross && items[itOrbLuck])
|
||||
|
Loading…
Reference in New Issue
Block a user