Fix prot from shape changers at level generation
Mimics and other shape changers created at level generation did not obey protection from shape changers.
This commit is contained in:
+1
-1
@@ -1988,7 +1988,7 @@ register struct monst *mtmp;
|
|||||||
struct obj *otmp;
|
struct obj *otmp;
|
||||||
int mx, my;
|
int mx, my;
|
||||||
|
|
||||||
if (!mtmp)
|
if (!mtmp || Protection_from_shape_changers)
|
||||||
return;
|
return;
|
||||||
mx = mtmp->mx;
|
mx = mtmp->mx;
|
||||||
my = mtmp->my;
|
my = mtmp->my;
|
||||||
|
|||||||
+2
-1
@@ -1585,7 +1585,8 @@ struct mkroom *croom;
|
|||||||
* eventually be expanded.
|
* eventually be expanded.
|
||||||
*/
|
*/
|
||||||
if (m->appear_as.str
|
if (m->appear_as.str
|
||||||
&& ((mtmp->data->mlet == S_MIMIC) || mtmp->cham)) {
|
&& ((mtmp->data->mlet == S_MIMIC) || mtmp->cham)
|
||||||
|
&& !Protection_from_shape_changers) {
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
switch (m->appear) {
|
switch (m->appear) {
|
||||||
|
|||||||
Reference in New Issue
Block a user