fixed pwnagehammer hurting town npcs
This commit is contained in:
1 parent
043aaae60e
commit
b503a77de5
1 file changed
+6
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user