Spider Broach v1
1250
lvl: 72

ID:

182

Author:

drol

Rarity:

uncommon

Status:

Approved

Description:

This jewellery looks beautiful, the eyes of the spider are made from tiny emeralds.

Latest Upload Comment:

Restored from 1.10
Silver Threads
Attacks have a 15% attack speed adjusted chance to cover the target creep in a silvered web, increasing its item quality by 40% for 5 seconds.

Level Bonus:
+1% item quality
+0.1 seconds duration
Download

Toggle Triggers

Header

goldcost: 0
    globals
        BuffType drol_broach
    endglobals
    
    //Do not remove or rename this function!
    //Put your initialization tasks here, this function will be called on map init
    private function init takes nothing returns nothing
        local Modifier m = Modifier.create()
        
        set drol_broach = BuffType.create(5.0, 0.1, false)
        call m.addModification(MOD_ITEM_QUALITY_ON_DEATH, 0.4, 0.01)
        
        call drol_broach.setBuffModifier(m)
        call drol_broach.setBuffIcon('@@0@@')
    endfunction

On Damage

ONDAMAGE_chance: 1.0 goldcost: 1250 ONDAMAGE_chanceLevelAdd: 0.0
function onDamage takes Item itm returns nothing
    local Tower tower = itm.getCarrier()

    if tower.calcChance(0.15 * tower.getBaseAttackspeed()) then
        call drol_broach.apply(tower, Event.getTarget(), tower.getLevel())
    endif
endfunction