Book of Knowledge v1
500
lvl: 18

ID:

222

Author:

Boekie

Rarity:

rare

Status:

Approved

Description:

Grants the tower bonus experience.

Latest Upload Comment:

Restored from 1.10
High Knowledge
The carrier gains 0.2 experience every time its attack hits its main target. The amount of experience gained is range and base attackspeed adjusted.
Download

Toggle Triggers

On Damage

ONDAMAGE_chance: 1.0 goldcost: 500 ONDAMAGE_chanceLevelAdd: 0.0
function onDamage takes Item itm returns nothing
 local Tower tower = itm.getCarrier() 
 local real cd = tower.getBaseAttackspeed() 
 local real range = tower.getRange() 
    if Event.isMainTarget() then
        call tower.addExp(0.2*cd*(800.0/range))
    endif
endfunction