Dryad's Tear can no longer hit friendly NPCs
This commit is contained in:
1 parent
5c3082ac5c
commit
e0a6f7f00f
2 files changed
+1
-2
No files matched your search
@@ -62,7 +62,6 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
Projectile holdout = Projectile.NewProjectileDirect(source, player.MountedCenter, Vector2.Zero, ModContent.ProjectileType<SevensStrikerHoldout>(), damage, knockback, player.whoAmI);
|
||||
|
||||
// 14NOV2024: Ozzatron: clamped mouse position unnecessary, only used for direction
|
||||
// We set the rotation to the direction to the mouse so the first frame doesn't appear bugged out.
|
||||
holdout.velocity = (player.Calamity().mouseWorld - player.MountedCenter).SafeNormalize(Vector2.Zero);
|
||||
return false;
|
||||
|
||||
@@ -379,7 +379,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
|
||||
modifiers.SourceDamage *= damageMult;
|
||||
}
|
||||
public override bool? CanHitNPC(NPC target) => time > 1 && Projectile.numHits == 0;
|
||||
public override bool? CanHitNPC(NPC target) => ((time > 1) ? null : false && Projectile.numHits == 0);
|
||||
public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox)
|
||||
{
|
||||
float hitboxSize = 20 * Projectile.scale * damageMult;
|
||||
|
||||
Reference in new issue
Block a user