Polar Bear Cub v1
600
ID:
683
Family ID:
Author:
SirCoqaLot.
Rarity:
uncommon
Element:
ice
Attack Type:
Elemental
Attack Range:
900
Attack CD:
1.4
Damage:
503-603
Abil. Factor:
0.8
Status:
Approved

Description:

Fast tower that is focused on dealing damage while cooling itself down.

Latest Upload Comment:

Restored from 1.10
Specials:
Splash attack:
   300 AoE: 35% damage
Cold Feet
On attack this tower cools down decreasing its attackspeed by 5% and increasing the damage it deals by 20%. The cold lasts for 6 seconds and stacks up to 10 times. 

Level Bonus:
-1% attackspeed reduction at level 15 and 25
Download

Toggle Triggers

Header

    globals
    //@export
    BuffType sir_frost_furbolg
    //@export
    BuffType sir_frost_furbolg2
    endglobals
    
    private function onCleanup takes Buff b returns nothing
        set b.getBuffedUnit().userInt = 0
    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 m = Modifier.create()
        local Modifier m2 = Modifier.create()
        
        set sir_frost_furbolg = BuffType.create(0,0,true)
        call m.addModification(MOD_ATTACKSPEED,0,-0.001)
        call sir_frost_furbolg.setBuffModifier(m)
        call sir_frost_furbolg.setStackingGroup("sir_frost_furbolg")
        call sir_frost_furbolg.addEventOnCleanup(onCleanup)
        
        set sir_frost_furbolg2 = BuffType.create(0,0,true)
        call m2.addModification(MOD_DAMAGE_ADD_PERC,0,0.001)
        call sir_frost_furbolg2.setBuffModifier(m2)
        call sir_frost_furbolg2.setBuffIcon('@@0@@')
    endfunction

On Attack

ONATTACK_chance: 1.0 ONATTACK_chanceLevelAdd: 0.0
function onAttack takes Tower tower returns nothing
    local integer power = 30
    set tower.userInt = IMinBJ(tower.userInt + 1, 10)

    if tower.getLevel() < 15 then
        set power = 50
    elseif tower.getLevel() < 25 then
        set power = 40
    endif
    call sir_frost_furbolg.applyAdvanced(tower,tower,tower.userInt,tower.userInt*power,6.0)
    call sir_frost_furbolg2.applyAdvanced(tower,tower,tower.userInt,tower.userInt*200,6.0)
endfunction

On Tower Creation

function onCreate takes Tower tower returns nothing
    set tower.userInt = 0
endfunction