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

OnHitPvp() public static method

public static OnHitPvp ( Player player, System.Item item, Player target, int damage, bool crit ) : void
player Player
item System.Item
target Player
damage int
crit bool
return void
        public static void OnHitPvp(Player player, Item item, Player target, int damage, bool crit)
        {
            foreach (ModPlayer modPlayer in player.modPlayers)
            {
                modPlayer.OnHitPvp(item, target, damage, crit);
            }
        }