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:
@@ -842,6 +842,8 @@ xchar x, y; /* clone's preferred location or 0 (near mon) */
|
||||
m2->mx = mm.x;
|
||||
m2->my = mm.y;
|
||||
|
||||
m2->mundetected = 0;
|
||||
m2->mtrapped = 0;
|
||||
m2->mcloned = 1;
|
||||
m2->minvent = (struct obj *) 0; /* objects don't clone */
|
||||
m2->mleashed = FALSE;
|
||||
|
||||
Reference in New Issue
Block a user