|   Furbolg v1 700
                   |  ID: 240  Family ID:  Author: geX  Rarity: uncommon  Element: nature  Attack Type: Physical  Attack Range: 900  Attack CD: 2  Damage: 685-1385  Abil. Factor: 0.65  Status: Approved |  Specials: +20% dmg to orcs  Rampage Has a 14% chance on attack to go into a rampage for 4.0 seconds. While in rampage, it has +150% attackspeed, +25% critical strike chance and +75% critical strike damage. Cannot retrigger while in rampage! Level Bonus: +0.08 sec duration +2% attackspeed +1 multicrit at lvl 15 and 25 | Download Toggle Triggers Header     globals
        //@export
        BuffType gex_rage_buff
        //@export
        BuffType gex_rage_buff15
        //@export
        BuffType gex_rage_buff25
    endglobals
    
    private function init takes nothing returns nothing
        local Modifier m = Modifier.create()
        call m.addModification(MOD_ATTACKSPEED,1.5,0.01)
        call m.addModification(MOD_ATK_CRIT_CHANCE,0.25,0.0)
        call m.addModification(MOD_ATK_CRIT_DAMAGE,0.75,0.0)
        set gex_rage_buff = BuffType.create(0.0,0.0,true) //0.0 time since I will apply it custom timed
        call gex_rage_buff.setBuffModifier(m)
        call gex_rage_buff.setBuffIcon('@@0@@')
        call gex_rage_buff.setStackingGroup("gex_rage")
        
        //level 15
        set m = Modifier.create()
        call m.addModification(MOD_ATTACKSPEED,1.5,0.01)
        call m.addModification(MOD_ATK_CRIT_CHANCE,0.25,0.0)
        call m.addModification(MOD_ATK_CRIT_DAMAGE,0.75,0.0)
        call m.addModification(MOD_MULTICRIT_COUNT,1.0,0.0) //1x multicrit
        set gex_rage_buff15 = BuffType.create(0.0,0.0,true) 
        call gex_rage_buff15.setBuffModifier(m)
        call gex_rage_buff15.setBuffIcon('@@0@@')
        call gex_rage_buff15.setStackingGroup("gex_rage")
        
        //level 25        
        set m = Modifier.create()
        call m.addModification(MOD_ATTACKSPEED,1.5,0.01)
        call m.addModification(MOD_ATK_CRIT_CHANCE,0.25,0.0)
        call m.addModification(MOD_ATK_CRIT_DAMAGE,0.75,0.0)
        call m.addModification(MOD_MULTICRIT_COUNT,2.0,0.0) //2x multicrit
        set gex_rage_buff25 = BuffType.create(0.0,0.0,true)
        call gex_rage_buff25.setBuffModifier(m)
        call gex_rage_buff25.setBuffIcon('@@0@@')
        call gex_rage_buff25.setStackingGroup("gex_rage")
    endfunctionOn Attack 
                        
                            ONATTACK_chance: 0.14
                        
                            ONATTACK_chanceLevelAdd: 0.0
                        
                         function onAttack takes Tower tower returns nothing
    local integer lvl = tower.getLevel()    
    
    //Do not allow retriggering while the furbolg is raged
    if tower.getBuffOfGroup("gex_rage") == 0 then
        if lvl < 15 then
            call gex_rage_buff.applyCustomTimed(tower,tower,lvl*2,4.0+0.08*lvl)
        elseif lvl < 25 then
            call gex_rage_buff15.applyCustomTimed(tower,tower,lvl*2,4.0+0.08*lvl)
        else
            call gex_rage_buff25.applyCustomTimed(tower,tower,lvl*2,4.0+0.08*lvl)
        endif
    endif
endfunction | 
Description:
Latest Upload Comment: