Sit to trigger squeaky board even if flying
If the hero deliberately sits on the floor while flying over a squeaky board, then either they're trying to squeak it on purpose or they haven't noticed it. Either way, sitting should trigger it.
This commit is contained in:
@@ -1270,7 +1270,8 @@ trapeffect_sqky_board(
|
||||
se_squeak_A, se_squeak_B_flat, se_squeak_B,
|
||||
};
|
||||
boolean forcetrap = ((trflags & FORCETRAP) != 0
|
||||
|| (trflags & FAILEDUNTRAP) != 0);
|
||||
|| (trflags & FAILEDUNTRAP) != 0
|
||||
|| (Flying && (trflags & VIASITTING) != 0));
|
||||
|
||||
if (mtmp == &gy.youmonst) {
|
||||
if ((Levitation || Flying) && !forcetrap) {
|
||||
|
||||
Reference in New Issue
Block a user