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

ModifyHitPvp() public static method

public static ModifyHitPvp ( 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 ModifyHitPvp(Player player, Item item, Player target, ref int damage, ref bool crit)
        {
            foreach (ModPlayer modPlayer in player.modPlayers)
            {
                modPlayer.ModifyHitPvp(item, target, ref damage, ref crit);
            }
        }