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

CanHitPvp() public static method

public static CanHitPvp ( Player player, System.Item item, Player target ) : bool
player Player
item System.Item
target Player
return bool
        public static bool CanHitPvp(Player player, Item item, Player target)
        {
            foreach (ModPlayer modPlayer in player.modPlayers)
            {
                if (!modPlayer.CanHitPvp(item, target))
                {
                    return false;
                }
            }
            return true;
        }