Skip to content

Commit

Permalink
knockback elemental arrow bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
wkdgmr committed Oct 7, 2023
1 parent 70e72d2 commit 68369a0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Source/missiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3134,6 +3134,14 @@ void ProcessElementalArrow(Missile &missile)
}
}
if (missile._mirange == 0) {
if (missile._mitype == MissileID::FireArrow
|| missile._mitype == MissileID::LightningArrow) {
Point c = missile.position.tile;
auto *monster = FindClosest(c, 1);
if (monster != nullptr) {
missile.position.tile = monster->position.tile;
}
}
missile._miDelFlag = true;
AddUnLight(missile._mlid);
}
Expand Down

0 comments on commit 68369a0

Please sign in to comment.