Terraria.ModLoader.PlayerHooks.CanHitPvpWithProj C# (CSharp) Method

CanHitPvpWithProj() public static method

public static CanHitPvpWithProj ( Projectile proj, Player target ) : bool
proj Projectile
target Player
return bool
        public static bool CanHitPvpWithProj(Projectile proj, Player target)
        {
            Player player = Main.player[proj.owner];
            foreach (ModPlayer modPlayer in player.modPlayers)
            {
                if (!modPlayer.CanHitPvpWithProj(proj, target))
                {
                    return false;
                }
            }
            return true;
        }