Center projectile AoE on collided player for consistent multi-target hits
- Use collided player coordinates as AoE explosion center instead of current projectile position - Avoid near-miss drift caused by projectile step size and collision threshold
This commit is contained in:
@@ -918,7 +918,9 @@ public partial class DungeonSimulation
|
|||||||
if (projectile.AoeRadius > 0)
|
if (projectile.AoeRadius > 0)
|
||||||
{
|
{
|
||||||
// AOE explosion
|
// AOE explosion
|
||||||
ProcessAoeAbilityAtLocation(projectile, projectile.X, projectile.Y);
|
// Center AoE on the collided player to avoid near-miss drift from
|
||||||
|
// projectile step size / collision threshold.
|
||||||
|
ProcessAoeAbilityAtLocation(projectile, player.X, player.Y);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user