Contaminated Bile now has proper directional knockback
This commit is contained in:
1 parent
0540e35338
commit
4a4fc2ceef
1 file changed
+4
@@ -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()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user