Arcane Script v1
200
lvl: 4

ID:

251

Author:

Finger of Destiny

Rarity:

rare

Status:

Approved

Description:

Oooh! What are these ancient scribings?

Latest Upload Comment:

Restored from 1.10
Script Reading
Whenever the carrier casts its own active ability it gains [0.2 x cooldown] experience and grants [0.5 x cooldown] gold.
Download

Toggle Triggers

On Spell Cast

goldcost: 200
function onSpellCast takes Item itm returns nothing
    local real cd = Event.getAutocastType().getCooldown()

    if not Event.getAutocastType().isItemAutocast() then
        call itm.getCarrier().addExp(0.2*cd)
        call itm.getCarrier().getOwner().giveGold(0.5*cd, itm.getCarrier().getUnit(), false, true)
    endif
endfunction