Small AI fix

This commit is contained in:
DominicKarma authored and Cameron Ewell committed 2021-03-09 12:02:28 -05:00
1 parent 506df82b18
commit d8d4df4aee
1 file changed
+1
+1
View File
@@ -94,6 +94,7 @@ namespace CalamityMod.NPCs.AcidRain
Player closestTargetToTop = Main.player[Player.FindClosest(npc.Top, 0, 0)];
if (Math.Abs(closestTargetToTop.Center.X - npc.Center.X) < 320f && closestTargetToTop.Center.Y - npc.Top.Y < -60f && AcidShootTimer >= Main.rand.Next(90, 135))
ShootFlakAcidAtTarget(closestTargetToTop);
npc.velocity.X *= 0.97f;
}
else
{