Array
(
    [scriptVersion] => 7
    [oeValues] => Array
        (
            [RngBuff1] => 250
            [Upgrade] => Array
                (
                )

            [targs1] => Array
                (
                )

            [goldcost] => 700
            [weapsOn] => 1
            [dice1] => 1
            [Missilespeed] => 1500
            [file] => units\creeps\FurbolgShaman\FurbolgShaman.mdl
            [atkType1] => siege
            [modelScale] => 0.8
            [weapTp1] => missile
            [Missilearc] => 0.15
            [acquire] => 800
            [rangeN1] => 900
            [upgrades] => Array
                (
                )

            [cool1] => 2
            [Ubertip] => A friendly creature as long as you don't make it angry. Unfortunately it gets angry pretty fast.
            [abilList] => Array
                (
                )

            [Name] => Furbolg
            [Missileart] => Abilities\Weapons\MeatwagonMissile\MeatwagonMissile.mdl
            [Art] => ReplaceableTextures\CommandButtons\BTNFurbolgTracker.blp
            [buildingShadow] => Array
                (
                )

            [turnRate] => 3
            [sides1] => 701
            [uberSplat] => ESMB
            [auto] => Array
                (
                )

            [dmgplus1] => 684
            [bldtm] => 1
        )

    [settings] => Array
        (
            [author] => geX
            [element] => nature
            [authorDisplay] => geX
            [alpha] => 255
            [balanceTip] => +20% dmg to orcs
            [rarity] => uncommon
            [version] => 1.0
            [abil_factor] => 0.65
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => 33.5222
                    [y] => -33.6398
                    [z] => 0
                    [scale] => 0.799999
                    [rot] => 5.5136
                    [file] => Doodads\Ruins\Plants\Ruins_Shrub\Ruins_Shrub0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                )

            [1] => Array
                (
                    [x] => -37.873
                    [y] => -28.3319
                    [z] => 0
                    [scale] => 0.799999
                    [rot] => 5.16617
                    [file] => Doodads\Ruins\Plants\Ruins_Shrub\Ruins_Shrub0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                )

            [2] => Array
                (
                    [x] => 7.88429
                    [y] => 47.3471
                    [z] => 0
                    [scale] => 0.799999
                    [rot] => 2.63544
                    [file] => Doodads\Ruins\Plants\Ruins_Shrub\Ruins_Shrub0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                )

        )

    [dmgTable] => Array
        (
            [0] => Array
                (
                    [id] => MOD_DMG_TO_ORC
                    [base] => 0.2
                    [add] => 0
                )

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => Header
                    [code] => 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")
	endfunction
                    [values] => Array
                        (
                            [icon] => 
                            [visible] => false
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [1] => Array
                (
                    [name] => On Attack
                    [code] => 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
                    [values] => Array
                        (
                            [icon] => ReplaceableTextures\CommandButtons\BTNFurbolgElder.blp
                            [visible] => true
                            [name] => Rampage
                            [short_explain] => Has a chance on attack to go into a rampage, increasing attackspeed and critical strike capabilities enormously
                            [ONATTACK_chance] => 0.14
                            [ONATTACK_chanceLevelAdd] => 0.0
                            [long_explain] => Has a |cffFFFF8014%|r chance on attack to go into a rampage for |cffFFFF804.0|r seconds. While in rampage, it has |cffFFFF80+150%|r attackspeed, |cffFFFF80+25%|r critical strike chance and |cffFFFF80+75%|r critical strike damage. Cannot retrigger while in rampage!|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.08|r sec duration|n|cffFFFF80+2%|r attackspeed|n|cffFFFF80+1|r multicrit at lvl |cffFFFF8015|r and |cffFFFF8025|r
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => Bbsk
                    [oeValues] => Array
                        (
                            [Targetattach1] => hand,right
                            [Bufftip] => Rampage
                            [Targetattach] => hand,left
                            [Buffubertip] => This unit is raging, gaining enormous attack speed
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNFurbolgElder.blp
                            [TargetArt] => Abilities\Spells\Orc\Bloodlust\BloodlustTarget.mdl
                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
            [0] => Array
                (
                    [export] => true
                    [category] => global
                    [typ] => BuffType
                    [name] => gex_rage_buff
                )

            [1] => Array
                (
                    [export] => true
                    [category] => global
                    [typ] => BuffType
                    [name] => gex_rage_buff15
                )

            [2] => Array
                (
                    [export] => true
                    [category] => global
                    [typ] => BuffType
                    [name] => gex_rage_buff25
                )

        )

)