canAttack

public boolean canAttack(Player player, ItemStack weapon, MagicAttackKind attackKind)

Called once before casting, while the held item is still available for item policy.