Fixed Murasama double damage on third slash breaking

This commit is contained in:
CongratsIsTrash authored and Cameron Ewell committed 2026-05-03 14:38:49 -04:00
1 parent e472bf9914
commit 25d5d9e77f
1 file changed
+6 -10
+6 -10
View File
@@ -94,15 +94,6 @@ namespace CalamityMod.Projectiles.Melee
else
Slashing = false;
if (Projectile.frame == 5 && Projectile.frameCounter % 3 == 0)
{
Projectile.damage = (int)(Projectile.damage * 2);
}
if (Projectile.frame == 7 && Projectile.frameCounter % 3 == 0)
{
Projectile.damage = (int)(Projectile.damage * 0.5f);
}
//Frames and crap
Projectile.frameCounter++;
if (Projectile.frameCounter % 3 == 0)
@@ -180,6 +171,11 @@ namespace CalamityMod.Projectiles.Melee
return Collision.CheckAABBvLineCollision(targetHitbox.TopLeft(), targetHitbox.Size(), Main.player[Projectile.owner].Center, lineEnd, lineWidth, ref _);
}
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers)
{
if (Slash3)
modifiers.SourceDamage *= 2f;
}
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
{
if (target.Organic())
@@ -230,6 +226,6 @@ namespace CalamityMod.Projectiles.Melee
}
public override Color? GetAlpha(Color lightColor) => new Color(100, 0, 0, 0);
public override bool? CanDamage() => Slashing == false ? false : null;
public override bool? CanDamage() => Slashing ? null : false;
}
}