Does Evocations affect attacking with a polearm?

According to the Evocations page on the wiki:

Anything which requires the evoke command (v) uses [Evocations], as does evoking (V) wands and using special abilities (a) granted by items.

Attacking units 2 squares away with a polearm like a spear or halberd is done by using e(v)oke. What exactly is affected by your Evocations skill when doing this kind of action?


According to code (for version 0.18.1) in evoke.cc

// This chance should possibly depend on your skill with
// the weapon.
if (coinflip())

successfuly evoking a reach weapon (branded or polearm) depends on luck alone. And if successful, it doesn't train evocation (pract = 0;), so I gues it's an exception to that wiki page:

case OBJ_WEAPONS:
    ASSERT(wielded);

    if (weapon_reach(item) > REACH_NONE)
    {
        if (_reaching_weapon_attack(item))
        {
            pract    = 0;
            did_work = true;
        }
        else
            return false;
    }
    else
        unevokable = true;
    break;