Igloo v1
700
ID:
77
Family ID:
Author:
Boekie
Rarity:
rare
Element:
ice
Attack Type:
Energy
Attack Range:
1000
Attack CD:
2.5
Damage:
696-696
Abil. Factor:
0.35
Status:
Approved

Description:

This igloo emits an extreme amount of cold, slowing and stunning creeps around it.

Latest Upload Comment:

Restored from 1.10
Specials:
-50% dmg to masses
Extreme Cold
Creeps that come within 900 AoE of this tower will be affected by extreme cold, suffering 700 spelldamage, and becoming slowed by 20% for 4 seconds. When the slow expires they will get stunned for 0.4 seconds.

Level Bonus:
+35 damage 
+0.4% slow
Download

Toggle Triggers

Header

    globals
        //@export  
        BuffType boekie_igloo_buff 
    endglobals
    
    function boekie_igloo_end takes Buff b returns nothing
        call cb_stun.applyOnlyTimed(b.getCaster(),b.getBuffedUnit(),b.userReal) 
    endfunction 
    
    //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 boekie_igloo_buff = BuffType.create(0,0,false) // apply custom timed  
        call boekie_igloo_buff.setBuffIcon('@@0@@') 
        call boekie_igloo_buff.setBuffModifier(slow)
        call boekie_igloo_buff.setEventOnExpire(EventHandler.boekie_igloo_end)
    endfunction

On Unit Comes In Range

UNITINRANGE_targetType: TARGET_TYPE_CREEPS UNITINRANGE_range: 900
function onUnitInRange takes Tower tower returns nothing
    local Unit creep = Event.getTarget() 
    local integer lvl = tower.getLevel()

    call tower.doSpellDamage(creep,700.0+(lvl*35.0),tower.calcSpellCritNoBonus()) 
    set boekie_igloo_buff.applyCustomTimed(tower,creep,200+lvl*4,4).userReal = 0.4

    call Effect.createScaled("Abilities\\Spells\\Undead\\FrostArmor\\FrostArmorDamage.mdl", creep.getX(), creep.getY(), 30.0, 0, 2.0).destroy()
endfunction