From 9ab37c361e1db7eee181830ee62aa9e4a16a02cd Mon Sep 17 00:00:00 2001 From: Evan Date: Fri, 25 Oct 2024 22:52:17 +0800 Subject: [PATCH] Cast Fly when state type is not idle (#3588) Fixes #3585 --- src/creature_instances.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/creature_instances.c b/src/creature_instances.c index 4ddb7e79e1..5c27af8a2d 100644 --- a/src/creature_instances.c +++ b/src/creature_instances.c @@ -1475,8 +1475,10 @@ TbBool validate_target_benefits_from_higher_altitude { return false; } - // Water or lava. Flying on water is beneficial because the target can go on a Guard Post. - if (subtile_is_liquid(target->mappos.x.stl.num, target->mappos.y.stl.num)) + long state_type = get_creature_state_type(target); + if (state_type != CrStTyp_Idle || + // Water or lava. Flying on water is beneficial because the target can go on a Guard Post. + subtile_is_liquid(target->mappos.x.stl.num, target->mappos.y.stl.num)) { return true; }