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

OnHitPvpWithProj() public static method

public static OnHitPvpWithProj ( Projectile proj, Player target, int damage, bool crit ) : void
proj Projectile
target Player
damage int
crit bool
return void
        public static void OnHitPvpWithProj(Projectile proj, Player target, int damage, bool crit)
        {
            Player player = Main.player[proj.owner];
            foreach (ModPlayer modPlayer in player.modPlayers)
            {
                modPlayer.OnHitPvpWithProj(proj, target, damage, crit);
            }
        }