fixed pwnagehammer hurting town npcs

This commit is contained in:
ben-tk committed 2021-11-13 23:15:08 -05:00
1 parent 043aaae60e
commit b503a77de5
1 file changed
+6 -1
+6 -1
View File
@@ -89,7 +89,12 @@ namespace CalamityMod.Projectiles.Melee
}
}
public override bool? CanHitNPC(NPC target) => projectile.ai[0] > 42f;
public override bool? CanHitNPC(NPC target)
{
if (projectile.ai[0] <= 42f)
return false;
return null;
}
public override bool CanHitPvp(Player target) => projectile.ai[0] > 42f;