Faithful Staff v1
400
lvl: 8

ID:

281

Author:

Boekie

Rarity:

unique

Status:

Approved

Description:

Grants experience when a spell is cast on a friendly tower.

Latest Upload Comment:

Restored from 1.10
Reward the Faithful
Whenever the carrier of this item casts a spell on a friendly tower both towers gain 1 experience.
Download

Toggle Triggers

On Spell Cast

goldcost: 400
function onSpellCast takes Item itm returns nothing
local Unit tower = itm.getCarrier()
local Unit targetUnit = Event.getTarget()

if targetUnit.isATower() == true then
call targetUnit.addExp(1)
call tower.addExp(1)
endif
endfunction