Cold Troll v1
90
ID:
476
Family ID:
Author:
cedi
Rarity:
uncommon
Element:
ice
Attack Type:
Elemental
Attack Range:
900
Attack CD:
1.5
Damage:
71-71
Abil. Factor:
0.50
Status:
Approved

Description:

With his 15 years he is really young, but 15 years in the ice hell of Northrend is something to show.

Latest Upload Comment:

Restored from 1.10
Specials:
-50% dmg to undead
+25% dmg to orcs
+25% dmg to humanoids
Blizzard
Summons 5 waves of icy spikes which fall down to earth. Each wave deals 60 damage in an AoE of 200. Each time a unit is damaged by this spell there is a chance of 30% to slow the unit by 7% for 4 seconds and a chance of 10% to stun the unit for 0.25 seconds.

Level Bonus:
+6 damage
+0.1% slow
+1% chance for slow
+0.1% chance for stun
Download

Toggle Triggers

Autocast

caster_art: AUTOCAST_cooldown: 10 AUTOCAST_numBuffsBeforeIdle: 0 AUTOCAST_isExtended: false AUTOCAST_autocastType: AC_TYPE_OFFENSIVE_UNIT AUTOCAST_manacost: 95 AUTOCAST_range: 900 AUTOCAST_buffType: 0 AUTOCAST_targetSelf: true AUTOCAST_targetType: 0 target_art: AUTOCAST_autoRange: 900
private function onAutocast takes Tower tower returns nothing
    local unit u = Event.getTarget().getUnit() 
    call Troll_blizzard.pointCastFromCasterOnPoint( tower, GetUnitX( u ), GetUnitY( u ), 1.00 + I2R( tower.getLevel() ) * 0.1, tower.calcSpellCritNoBonus() )
    set u = null
endfunction

Header

    globals
        BuffType Troll_blizzardslow
        Cast Troll_blizzard
    endglobals
    
    function OnBlizzard takes DummyUnit U returns nothing
        if U.getCaster().calcChance( 0.30 + I2R( U.getCaster().getLevel() ) * 0.01 ) then
            call Troll_blizzardslow.applyOnlyTimed( U.getCaster(), Event.getTarget(), 4.00 )
        endif
        if U.getCaster().calcChance( 0.10 + I2R( U.getCaster().getLevel() ) * 0.001 ) then
            call cb_stun.applyOnlyTimed( U.getCaster(), Event.getTarget(), 0.25 )
        endif
    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 mod2 = Modifier.create()
        set Troll_blizzardslow = BuffType.create(0.0,0.0,false)
        call mod2.addModification(MOD_MOVESPEED,-0.07,-0.001)
        call Troll_blizzardslow.setBuffModifier(mod2)
        set Troll_blizzard = Cast.create( '@@0@@', "blizzard", 9.00 )
        call Troll_blizzard.setDamageEvent( EventHandler.OnBlizzard )
        call Troll_blizzardslow.setStackingGroup("cedi_troll_blizzard")
        call Troll_blizzardslow.setBuffIcon( '@@2@@' )
    endfunction