Get rid of force_mintrap, allow passing flags to mintrap
It uses the same flags as dotrap, so simulate force_mintrap by passing FORCETRAP flag.
This commit is contained in:
@@ -921,7 +921,7 @@ mhurtle_step(genericptr_t arg, int x, int y)
|
||||
set_apparxy(mon);
|
||||
if (is_waterwall(x, y))
|
||||
return FALSE;
|
||||
res = mintrap(mon);
|
||||
res = mintrap(mon, NO_TRAP_FLAGS); /* TODO: TEMPFLIGHT? */
|
||||
if (res == Trap_Killed_Mon
|
||||
|| res == Trap_Caught_Mon
|
||||
|| res == Trap_Moved_Mon)
|
||||
|
||||
Reference in New Issue
Block a user