mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-20 23:50:27 +00:00
mimics destroyed correctly in the map editor
This commit is contained in:
parent
7e57852788
commit
b88ec8550e
@ -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)
|
||||
|
@ -1349,6 +1349,8 @@ EX namespace mapeditor {
|
||||
if(isDie(c->monst)) {
|
||||
if(!dice::generate_random(c)) c->monst = moNone;
|
||||
}
|
||||
|
||||
mirror::destroyKilled();
|
||||
break;
|
||||
}
|
||||
case 1: {
|
||||
|
Loading…
Reference in New Issue
Block a user