Icy Skulls v1
35
ID:
442
Family ID:
Author:
MasterCassim
Rarity:
common
Element:
ice
Attack Type:
Elemental
Attack Range:
700
Attack CD:
1.5
Damage:
53-58
Abil. Factor:
0.875
Status:
Approved

Description:

Chills creeps to the bone.

Latest Upload Comment:

Restored from 1.10
Icy Touch
Slows attacked units by 7.5% for 3 seconds.

Level Bonus:
+0.1 seconds duration
+0.3% slow
Download

Toggle Triggers

Header

    globals
      //@export
      BuffType cassimSlow 
    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 slow=Modifier.create()  
      call slow.addModification(MOD_MOVESPEED,0,-0.001)  
      set cassimSlow=BuffType.create(0,0,false)  // apply custom timed
      call cassimSlow.setBuffIcon('@@0@@')
      call cassimSlow.setBuffModifier(slow)
    endfunction

On Damage

ONDAMAGE_chance: 1.00 ONDAMAGE_chanceLevelAdd: 0
function onDamage takes Tower tower returns nothing
    local integer lvl = tower.getLevel()
    local integer slow = R2I((0.075+lvl*0.003)*1000)  // same code here 4 all towers
    local integer dur = R2I(3+lvl*0.1)
    
    call cassimSlow.applyCustomTimed(tower,Event.getTarget(),slow,dur) 
endfunction