Skip to content

Commit

Permalink
Fix Viper Lunge (#7763)
Browse files Browse the repository at this point in the history
Co-authored-by: Stephen C. Wills <staphen@gmail.com>
  • Loading branch information
kphoenix137 and StephenCWills authored Feb 20, 2025
1 parent 949f5bc commit fc0d8b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/missiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3680,7 +3680,7 @@ void ProcessRhino(Missile &missile)
}
UpdateMissilePos(missile);
Point newPos = missile.position.tile;
if (!IsTileAvailable(monster, newPos) || (monster.ai == MonsterAIID::Snake && !IsTileAvailable(monster, newPosSnake))) {
if (!IsTileAvailable(monster, newPos) || (monster.ai == MonsterAIID::Snake && (!IsTileAvailable(monster, newPosSnake) || missile._miAnimFrame >= missile._miAnimLen))) {
MissToMonst(missile, prevPos);
missile._miDelFlag = true;
return;
Expand Down

0 comments on commit fc0d8b0

Please sign in to comment.