Array
(
    [scriptVersion] => 8
    [oeValues] => Array
        (
            [auto] => Array
                (
                )

            [Art] => ReplaceableTextures\CommandButtons\BTNIceboundFortitude.blp
            [turnRate] => 3
            [dmgplus1] => 834
            [bldtm] => 1
            [goldcost] => 2100
            [unitSound] => Array
                (
                )

            [sides1] => 1
            [manaN] => 100
            [acquire] => 900
            [upgrades] => Array
                (
                )

            [Upgrade] => Array
                (
                )

            [Name] => Frost Adept
            [red] => 155
            [weapTp1] => missile
            [impactZ] => 60
            [file] => units\creeps\HumanMage\HumanMage.mdl
            [MissileHoming] => 1
            [uberSplat] => YTDN
            [Missilespeed] => 1350
            [Missileart] => war3mapImported\FireBallMissileFrost.mdl
            [dice1] => 1
            [RngBuff1] => 250
            [regenMana] => 3
            [green] => 155
            [modelScale] => 0.9
            [rangeN1] => 900
            [propWin] => 10
            [atkType1] => pierce
            [cool1] => 1.75
            [Ubertip] => First comes the frostbite. Then comes the silence.
            [scaleBull] => 0
            [abilList] => @@0@@
            [moveHeight] => 33
            [buildingShadow] => Array
                (
                )

            [targs1] => Array
                (
                )

            [weapsOn] => 1
            [teamColor] => 2
        )

    [settings] => Array
        (
            [balanceTip] => |cffFFFF0012.5%|r spell crit chance (|cffFFFF00+0.5%|r/lvl)
            [abil_factor] => 0.20
            [author] => Ashbringer
            [alpha] => 255
            [authorDisplay] => |cffff6600Ashbringer|r
            [version] => 1.0
            [element] => ice
            [rarity] => rare
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => -0.026281
                    [y] => -0.011641
                    [z] => -12.8
                    [scale] => 0.37
                    [rot] => 3.53695
                    [file] => Doodads\Cityscape\Props\FountainRuined\FountainRuined.mdl
                    [red] => 35
                    [green] => 45
                    [blue] => 65
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [1] => Array
                (
                    [x] => 0.203444
                    [y] => 17.486
                    [z] => -19.2
                    [scale] => 0.12
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 35
                    [green] => 45
                    [blue] => 65
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [2] => Array
                (
                    [x] => -0.425234
                    [y] => -17.1331
                    [z] => -19.2
                    [scale] => 0.12
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 35
                    [green] => 45
                    [blue] => 65
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [3] => Array
                (
                    [x] => -0.162384
                    [y] => 3.77082
                    [z] => 51.2
                    [scale] => 1.1
                    [rot] => 4.71239
                    [file] => Abilities\Spells\Other\FrostBolt\FrostBoltMissile.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1.57
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [4] => Array
                (
                    [x] => -0.168857
                    [y] => 0.118742
                    [z] => 19.2
                    [scale] => 1.1
                    [rot] => 1.16937
                    [file] => war3mapImported\GeneralAuraTargetWhite.mdl
                    [red] => 35
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [5] => Array
                (
                    [x] => -21.2917
                    [y] => -21.5169
                    [z] => 6.4
                    [scale] => 0.14
                    [rot] => 4.04288
                    [file] => Doodads\Icecrown\Rocks\Icecrown_Crystal\Icecrown_Crystal0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [6] => Array
                (
                    [x] => 21.3426
                    [y] => -24.7597
                    [z] => 6.4
                    [scale] => 0.17
                    [rot] => 5.40423
                    [file] => Doodads\Icecrown\Rocks\Icecrown_Crystal\Icecrown_Crystal1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [7] => Array
                (
                    [x] => 19.0149
                    [y] => 21.9074
                    [z] => 6.4
                    [scale] => 0.14
                    [rot] => 0.901279
                    [file] => Doodads\Icecrown\Rocks\Icecrown_Crystal\Icecrown_Crystal0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [8] => Array
                (
                    [x] => -20.2365
                    [y] => 25.4956
                    [z] => 6.4
                    [scale] => 0.17
                    [rot] => 2.26264
                    [file] => Doodads\Icecrown\Rocks\Icecrown_Crystal\Icecrown_Crystal1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [9] => Array
                (
                    [x] => -36.2276
                    [y] => -7.41621
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 3.80283
                    [file] => Doodads\Icecrown\Rocks\Ice_SnowRock\Ice_SnowRock5.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [10] => Array
                (
                    [x] => -4.25091
                    [y] => -36.9268
                    [z] => 0
                    [scale] => 0.24
                    [rot] => 1.6503
                    [file] => Doodads\Icecrown\Rocks\Ice_SnowRock\Ice_SnowRock4.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [11] => Array
                (
                    [x] => -0.103728
                    [y] => 0.305526
                    [z] => -19.2
                    [scale] => 1.55
                    [rot] => 1.16937
                    [file] => war3mapImported\GeneralAuraTargetWhite.mdl
                    [red] => 35
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [12] => Array
                (
                    [x] => 36.3461
                    [y] => 0.16324
                    [z] => -6.4
                    [scale] => 0.2
                    [rot] => 4.79966
                    [file] => Doodads\Icecrown\Rocks\Ice_SnowRock\Ice_SnowRock4.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

        )

    [dmgTable] => Array
        (
            [0] => Array
                (
                    [id] => MOD_SPELL_CRIT_CHANCE
                    [base] => 0.1125
                    [add] => 0.005
                )

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Level Up
                    [code] => set tower.userReal = 875 + (tower.getLevel() * 35)
    set tower.userReal2 = 175 + (tower.getLevel() * 7)
    set tower.userReal3 = 0.375 + (tower.getLevel() * 0.015)
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals
        //@import
        BuffType ashbringer_shattering_buff
    endglobals
    
    //@import
    function ashbringer_howling_blast takes Tower tower, Unit target, real damage, real area returns nothing
        local Iterate i = Iterate.overUnitsInRangeOfUnit(tower, TARGET_TYPE_CREEPS, target, area)
        local Unit next
        local real crit = tower.calcSpellCritNoBonus()
        
        if crit > 1 then
            set damage = damage * (1 + tower.userReal3)
        endif
        
        call Effect.createScaled("war3mapImported\\WarStompCasterFrost.mdx", target.getX(), target.getY(), target.getZ(), 270, 1 + (tower.getLevel() * 0.015)).setLifetime(1)
        loop
            set next = i.next()
            exitwhen next == 0
            call tower.doSpellDamage(next, damage, crit)
            if crit > 1 then
                call cb_freeze.applyOnlyTimed(tower, next, 1.5)
            endif
        endloop
    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
    endfunction
                    [values] => Array
                        (
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNSpell_Frost_IceShard.blp
                            [name] => Piercing Frost
                            [short_explain] => Critical hits with abilities do more damage.
                            [long_explain] => Critical hits with Howling Blast and Shattering Shards do |cffFFFF8037.5%|r more damage.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+1.5%|r damage multiplier
                        )

                )

            [2] => Array
                (
                    [name] => On Damage
                    [code] => local Unit target = Event.getTarget()
    local Buff b = target.getBuffOfType(ashbringer_shattering_buff)
    
    if b != 0 then
        set b.userInt = b.userInt + 1
    else
        set b = ashbringer_shattering_buff.apply(tower, target, 0)
        set b.userInt = 1
    endif
                    [values] => Array
                        (
                            [ONDAMAGE_chance] => 1.0
                            [visible] => false
                            [icon] => ReplaceableTextures\CommandButtons\BTNBlizzard.blp
                            [name] => Shattering Shards
                            [short_explain] => Attacks hit |cffFFFF802|r additional enemies and apply a debuff which increases chance to be crit by attacks and deals spell damage when crit.
                            [ONDAMAGE_chanceLevelAdd] => 0
                            [long_explain] => Attacks hit |cffFFFF802|r additional enemies and embed ice shards on hit. Shards can stack, and give attacks against the target |cffFFFF802%|r increased critical strike chance per stack. Critical hits against the target have a |cffFFFF802%|r chance per stack to shatter the shards, dealing |cffFFFF80875|r spell damage plus |cffFFFF80175|r spell damage per stack.|n|nSpell damage is dealt by this tower.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+35|r base spell damage|n|cffFFFF80+7|r spell damage per stack
                        )

                )

            [3] => Array
                (
                    [name] => Autocast
                    [code] => local integer level = tower.getLevel()
    call ashbringer_howling_blast(tower, Event.getTarget(), 4375 + (level * 175), 175 + (level * 3))
                    [values] => Array
                        (
                            [AUTOCAST_cooldown] => 3
                            [AUTOCAST_autoRange] => 900
                            [AUTOCAST_manacost] => 50
                            [icon] => ReplaceableTextures\CommandButtons\BTNHowlingBlast.blp
                            [AUTOCAST_range] => 900
                            [AUTOCAST_targetType] => 0
                            [AUTOCAST_numBuffsBeforeIdle] => 0
                            [caster_art] => 
                            [long_explain] => Blast a target enemy with a wave of frost, dealing |cffFFFF804375|r spell damage to enemies in |cffFFFF80175|r area. Critical hits will freeze enemies in place for |cffFFFF801.5|r seconds.|n|nThis ability rolls for a critical hit once to apply to all targets.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+175|r spell damage|n|cffFFFF80+3|r area
                            [target_art] => 
                            [AUTOCAST_autocastType] => AC_TYPE_OFFENSIVE_UNIT
                            [AUTOCAST_buffType] => 0
                            [AUTOCAST_isExtended] => false
                            [name] => Howling Blast
                            [AUTOCAST_targetSelf] => false
                            [short_explain] => Deals spell damage to enemies around a target. Critical hits will stun.
                        )

                )

            [4] => Array
                (
                    [name] => On Tower Creation
                    [code] => call SetUnitColor(tower.getUnit(), ConvertPlayerColor(2))
    
    set tower.userInt = 0
    set tower.userReal = 875 + (tower.getLevel() * 35)
    set tower.userReal2 = 175 + (tower.getLevel() * 7)
    set tower.userReal3 = 0.375 + (tower.getLevel() * 0.015)
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

        )

    [abilities] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => Aroc
                    [oeValues] => Array
                        (
                            [Buttonpos] => 1
                            [Art] => ReplaceableTextures\CommandButtons\BTNBlizzard.blp
                            [Untip] => Shattering Shards
                            [HeroDur1] => 0.1
                            [Missilearc] => 0
                            [DataA1] => 0
                            [Cool1] => 0.1
                            [Area1] => 900
                            [DataC1] => 1
                            [Name] => Shattering Shards
                            [DataB1] => 99999
                            [Ubertip] => Attacks hit |cffFFFF802|r additional enemies and embed ice shards on hit. Shards can stack, and give attacks against the target |cffFFFF802%|r increased critical strike chance per stack.|n|nCritical hits have a |cffFFFF802%|r chance per stack to shatter the shards, dealing |cffFFFF80875|r spell damage plus |cffFFFF80175|r spell damage per stack.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+35|r base spell damage|n|cffFFFF80+7|r spell damage per stack
                            [Dur1] => 0.1
                            [Buttonpos1] => 1
                            [Missileart] => Abilities\Weapons\LichMissile\LichMissile.mdl
                            [Missilespeed] => 1600
                            [Tip] => Shattering Shards
                            [Unubertip] => Attacks hit |cffFFFF802|r additional enemies and apply a debuff which increases chance to be crit by attacks and deals spell damage when crit.
                            [targs1] => enemies
                        )

                )

        )

    [buffs] => Array
        (
        )

    [units] => Array
        (
        )

    [references] => Array
        (
            [0] => Array
                (
                    [export] => false
                    [category] => global
                    [typ] => BuffType
                    [name] => ashbringer_shattering_buff
                )

        )

    [lightning] => Array
        (
        )

)