Hurtling monster always triggers a trap
This commit is contained in:
@@ -929,7 +929,9 @@ mhurtle_step(genericptr_t arg, int x, int y)
|
|||||||
place_monster(mon, x, y);
|
place_monster(mon, x, y);
|
||||||
newsym(mon->mx, mon->my);
|
newsym(mon->mx, mon->my);
|
||||||
set_apparxy(mon);
|
set_apparxy(mon);
|
||||||
|
g.force_mintrap = TRUE;
|
||||||
res = mintrap(mon);
|
res = mintrap(mon);
|
||||||
|
g.force_mintrap = FALSE;
|
||||||
if (res == Trap_Killed_Mon || res == Trap_Caught_Mon)
|
if (res == Trap_Killed_Mon || res == Trap_Caught_Mon)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|||||||
Reference in New Issue
Block a user