Skip to content

Commit

Permalink
Cast Fly when state type is not idle (#3588)
Browse files Browse the repository at this point in the history
Fixes #3585
  • Loading branch information
Linvail authored Oct 25, 2024
1 parent 52729d0 commit 9ab37c3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/creature_instances.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9ab37c3

Please sign in to comment.