From 68369a02a5e0471540e2fb773790ce514436dc23 Mon Sep 17 00:00:00 2001 From: wkdgmr Date: Fri, 6 Oct 2023 20:06:39 -0400 Subject: [PATCH] knockback elemental arrow bugfix --- Source/missiles.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/missiles.cpp b/Source/missiles.cpp index 78ecdd729a4..106aa4f1ff0 100644 --- a/Source/missiles.cpp +++ b/Source/missiles.cpp @@ -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); }