This commit is contained in:
2026-01-07 19:15:57 +01:00
parent 2dd603eb81
commit 9e1c05df46
+1 -3
View File
@@ -128,7 +128,7 @@ public class ToclafaneMinion : ModProjectile {
bool inRange = between < distanceFromTarget;
bool lineOfSight = Collision.CanHitLine(Projectile.position, Projectile.width,
Projectile.height, npc.position, npc.width, npc.height);
// Additional check for this specific minion behavior, otherwise it will stop attacking once it dashed through an enemy while flying though tiles afterwards
// Additional check for this specific minion behavior, otherwise it will stop attacking once it dashed through an enemy while flying though tiles afterward
// The number depends on various parameters seen in the movement code below. Test different ones out until it works alright
bool closeThroughWall = between < 100f;
if (((!closest || !inRange) && foundTarget) || (!lineOfSight && !closeThroughWall)) continue;
@@ -262,8 +262,6 @@ public class ToclafaneMinion : ModProjectile {
break;
}
break;
default:
break;
}
}