mimics destroyed correctly in the map editor

This commit is contained in:
Zeno Rogue 2021-09-30 13:16:22 +02:00
parent 7e57852788
commit b88ec8550e
2 changed files with 3 additions and 1 deletions

View File

@ -1229,7 +1229,7 @@ EX namespace mirror {
c->wall == waMirrorWall || c->wall == waPetrifiedBridge;
}
void destroyKilled() {
EX void destroyKilled() {
int j = 0;
for(int i=0; i<isize(mirrors); i++)
if(mirrors[i].second.at->monst == moMimic)

View File

@ -1349,6 +1349,8 @@ EX namespace mapeditor {
if(isDie(c->monst)) {
if(!dice::generate_random(c)) c->monst = moNone;
}
mirror::destroyKilled();
break;
}
case 1: {