Contaminated Bile now has proper directional knockback

This commit is contained in:
ZavarskiTheRealOne committed 2026-01-02 23:24:37 +08:00
1 parent 0540e35338
commit 4a4fc2ceef
1 file changed
+4
+4
View File
@@ -25,6 +25,10 @@ namespace CalamityMod.Projectiles.Rogue
Projectile.usesLocalNPCImmunity = true;
Projectile.localNPCHitCooldown = 25;
}
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers)
{
modifiers.HitDirectionOverride = (Projectile.Center.X < target.Center.X).ToDirectionInt();
}
public override void AI()
{