Fix monster trapped state being wrong

When cloning a monster, clear the clone trapped and hiding states.
When splitting a monster (eg. a black pudding), the clone could
be placed on a trap, so do mintrap.
When removing a monster from the map, clear the trapped state.
This commit is contained in:
Pasi Kallinen
2019-05-05 22:49:21 +03:00
parent f55e9ddd7c
commit bed2c2307e
5 changed files with 11 additions and 2 deletions

View File

@@ -1687,6 +1687,7 @@ struct monst **monst_list; /* &migrating_mons or &mydogs or null */
}
if (on_map) {
mon->mtrapped = 0;
if (mon->wormno)
remove_worm(mon);
else