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

            [Art] => ReplaceableTextures\CommandButtons\BTNGenericSpellImmunity.blp
            [dmgplus1] => 1080
            [bldtm] => 1
            [goldcost] => 4000
            [unitSound] => HauntedMine
            [sides1] => 1
            [manaN] => 750
            [launchZ] => 80
            [acquire] => 1200
            [upgrades] => Array
                (
                )

            [Upgrade] => Array
                (
                )

            [Name] => Heart of Niflheim
            [red] => 0
            [weapTp1] => instant
            [MissileHoming] => 1
            [file] => .mdl
            [uberSplat] => YTDG
            [Missileart] => Abilities\Spells\NightElf\Blink\BlinkTarget.mdl
            [Missilespeed] => 3000
            [dice1] => 1
            [RngBuff1] => 250
            [regenMana] => 10
            [green] => 0
            [modelScale] => 0.1
            [rangeN1] => 1200
            [atkType1] => normal
            [cool1] => 1.4
            [Ubertip] => A frozen singularity born in Niflheim, where warmth collapses and winter becomes endless.
            [blue] => 0
            [scaleBull] => 0
            [abilList] => @@0@@
            [buildingShadow] => Array
                (
                )

            [targs1] => Array
                (
                )

            [weapsOn] => 1
        )

    [settings] => Array
        (
            [balanceTip] => Array
                (
                )

            [abil_factor] => 0.2
            [author] => Ashbringer
            [alpha] => 255
            [authorDisplay] => |cffff6600Ashbringer|r
            [version] => 1.0
            [element] => ice
            [rarity] => unique
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => -0.0146482
                    [y] => -0.0519029
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 4.71239
                    [file] => Doodads\Ruins\Props\Ruins_NagaCircle\Ruins_NagaCircle.mdl
                    [red] => 15
                    [green] => 35
                    [blue] => 75
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [1] => Array
                (
                    [x] => 52.1672
                    [y] => -52.5943
                    [z] => 32
                    [scale] => 0.5
                    [rot] => 2.38933
                    [file] => Doodads\Cinematic\GlowingRunes\GlowingRunes4.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [2] => Array
                (
                    [x] => -0.178304
                    [y] => -55.2607
                    [z] => 0
                    [scale] => 0.11
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Structures\Archway1\Archway1.mdl
                    [red] => 45
                    [green] => 90
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [3] => Array
                (
                    [x] => -0.606833
                    [y] => -25.4003
                    [z] => -25.6
                    [scale] => 0.18
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 45
                    [green] => 90
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [4] => Array
                (
                    [x] => 0.56814
                    [y] => 25.3089
                    [z] => -25.6
                    [scale] => 0.18
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 45
                    [green] => 90
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [5] => Array
                (
                    [x] => 54.7743
                    [y] => 0.498849
                    [z] => 0
                    [scale] => 0.11
                    [rot] => 0
                    [file] => Doodads\Cityscape\Structures\Archway1\Archway1.mdl
                    [red] => 45
                    [green] => 90
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [6] => Array
                (
                    [x] => -53.5246
                    [y] => -53.3325
                    [z] => 32
                    [scale] => 0.5
                    [rot] => 0.760296
                    [file] => Doodads\Cinematic\GlowingRunes\GlowingRunes4.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [7] => Array
                (
                    [x] => -51.4132
                    [y] => 52.6663
                    [z] => 32
                    [scale] => 0.5
                    [rot] => 5.45018
                    [file] => Doodads\Cinematic\GlowingRunes\GlowingRunes4.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [8] => Array
                (
                    [x] => 52.2419
                    [y] => 51.5057
                    [z] => 32
                    [scale] => 0.5
                    [rot] => 3.94241
                    [file] => Doodads\Cinematic\GlowingRunes\GlowingRunes4.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [9] => Array
                (
                    [x] => 34.7632
                    [y] => -34.3353
                    [z] => 51.2
                    [scale] => 0.17
                    [rot] => 3.83972
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 55
                    [green] => 90
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [10] => Array
                (
                    [x] => -34.5197
                    [y] => -34.8095
                    [z] => 51.2
                    [scale] => 0.17
                    [rot] => 2.35619
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 55
                    [green] => 90
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [11] => Array
                (
                    [x] => 34.7415
                    [y] => 36.3385
                    [z] => 51.2
                    [scale] => 0.17
                    [rot] => 2.35619
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 55
                    [green] => 90
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [12] => Array
                (
                    [x] => -34.5414
                    [y] => 35.8644
                    [z] => 51.2
                    [scale] => 0.17
                    [rot] => 3.83972
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 55
                    [green] => 90
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [13] => Array
                (
                    [x] => 50.772
                    [y] => -52.4351
                    [z] => 0
                    [scale] => 0.17
                    [rot] => 3.14159
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 55
                    [green] => 90
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [14] => Array
                (
                    [x] => -53.0609
                    [y] => -52.0668
                    [z] => 0
                    [scale] => 0.17
                    [rot] => 3.14159
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 55
                    [green] => 90
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [15] => Array
                (
                    [x] => -52.3464
                    [y] => 52.104
                    [z] => 0
                    [scale] => 0.17
                    [rot] => 3.14159
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 55
                    [green] => 90
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [16] => Array
                (
                    [x] => 51.2841
                    [y] => 52.0003
                    [z] => 0
                    [scale] => 0.17
                    [rot] => 3.14159
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 55
                    [green] => 90
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [17] => Array
                (
                    [x] => 0.427193
                    [y] => 54.4111
                    [z] => 0
                    [scale] => 0.11
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Structures\Archway1\Archway1.mdl
                    [red] => 45
                    [green] => 90
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [18] => Array
                (
                    [x] => -54.8687
                    [y] => 0.791282
                    [z] => 0
                    [scale] => 0.11
                    [rot] => 0
                    [file] => Doodads\Cityscape\Structures\Archway1\Archway1.mdl
                    [red] => 45
                    [green] => 90
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [19] => Array
                (
                    [x] => 4.46074
                    [y] => 3.62469
                    [z] => 108.8
                    [scale] => 0.8
                    [rot] => 0
                    [file] => Abilities\Weapons\FrostWyrmMissile\FrostWyrmMissile.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => true
                    [animation] => birth
                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [20] => Array
                (
                    [x] => -0.159308
                    [y] => 1.76624
                    [z] => 25.6
                    [scale] => 1.35
                    [rot] => 0
                    [file] => Abilities\Spells\Items\AIob\AIobTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [21] => Array
                (
                    [x] => 0.113833
                    [y] => -0.025547
                    [z] => 108.8
                    [scale] => 0.6
                    [rot] => 0
                    [file] => Abilities\Spells\Undead\FrostArmor\FrostArmorTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [22] => Array
                (
                    [x] => -0.156287
                    [y] => 1.00931
                    [z] => 25.6
                    [scale] => 1.35
                    [rot] => 3.14159
                    [file] => Abilities\Spells\Items\AIob\AIobTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [23] => Array
                (
                    [x] => -51.2669
                    [y] => -0.42934
                    [z] => 51.2
                    [scale] => 0.17
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 55
                    [green] => 90
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [24] => Array
                (
                    [x] => 0.02137
                    [y] => 51.6857
                    [z] => 51.2
                    [scale] => 0.17
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 55
                    [green] => 90
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [25] => Array
                (
                    [x] => -0.202589
                    [y] => -48.6735
                    [z] => 51.2
                    [scale] => 0.17
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 55
                    [green] => 90
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [26] => Array
                (
                    [x] => 51.7052
                    [y] => 0.39194
                    [z] => 51.2
                    [scale] => 0.17
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 55
                    [green] => 90
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [27] => Array
                (
                    [x] => -0.0812987
                    [y] => -0.0286375
                    [z] => 108.8
                    [scale] => 2.2
                    [rot] => 4.71239
                    [file] => Abilities\Weapons\BoatMissile\BoatMissile.mdl
                    [red] => 1
                    [green] => 1
                    [blue] => 1
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

        )

    [dmgTable] => Array
        (
        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Attack
                    [code] => local unit t = tower.getUnit()
    local real mana = (GetUnitState(t, UNIT_STATE_MAX_MANA) - GetUnitState(t, UNIT_STATE_MANA)) * (0.05 + (tower.getLevel() * 0.002))
    
    call tower.addMana(mana)
    call Effect.create("Abilities\\Spells\\Other\\Charm\\CharmTarget.mdl", tower.getX(), tower.getY(), 110, 270).destroy()
                    [values] => Array
                        (
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNElunesBlessing.blp
                            [name] => Longest Night
                            [short_explain] => Attacks have a chance to restore a percentage of missing mana.
                            [ONATTACK_chance] => 0.05
                            [ONATTACK_chanceLevelAdd] => 0.002
                            [long_explain] => Attacks have a |cffffff805%|r chance to restore |cffffff805%|r of the tower's missing mana.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.2%|r chance|r|n|cffFFFF80+0.2%|r missing mana restored
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals
        BuffType ashbringer_zero_aura
        ProjectileType ashbringer_comet_missile
        Cast ashbringer_comet_cast
        BuffType ashbringer_stolenbreath_buff
    endglobals
    
    function ashbringer_zero_update takes Buff b returns nothing
        local Tower tower = b.getBuffedUnit()
        local Tower caster = b.getCaster()
        local real tower_level = caster.getLevel()
        local real caster_level_factor = 0.5 + (tower_level * 0.02)
        
        call tower.modifyProperty(MOD_SPELL_DAMAGE_DEALT, -b.userReal)
        call tower.modifyProperty(MOD_SPELL_CRIT_CHANCE, -b.userReal2)
        call tower.modifyProperty(MOD_SPELL_CRIT_DAMAGE, -b.userReal3)
        call tower.modifyProperty(MOD_ATTACKSPEED, -(b.userInt/1000.0))
        call tower.modifyProperty(MOD_TRIGGER_CHANCES, -(b.userInt2/1000.0))
        
        set b.userReal = (caster.getProp_SpellDmgDealt() - 1.0)*caster_level_factor
        set b.userReal2 = (caster.getProp_SpellCritChance() - (0.0125 + (tower_level * 0.0015)))*caster_level_factor
        set b.userReal3 = (caster.getProp_SpellCritDamage() - (1.25 + (tower_level * 0.02)))*caster_level_factor
        set b.userInt = R2I((caster.getProp_Attackspeed() - (0.00 + (tower_level * 0.012)))*caster_level_factor*1000.0)
        set b.userInt2 = R2I((caster.getProp_TriggerChances()- 1.0)*caster_level_factor*1000.0)
        
        call tower.modifyProperty(MOD_SPELL_DAMAGE_DEALT, b.userReal)
        call tower.modifyProperty(MOD_SPELL_CRIT_CHANCE, b.userReal2)
        call tower.modifyProperty(MOD_SPELL_CRIT_DAMAGE, b.userReal3)
        call tower.modifyProperty(MOD_ATTACKSPEED, (b.userInt/1000.0))
        call tower.modifyProperty(MOD_TRIGGER_CHANCES, (b.userInt2/1000.0))
    endfunction

    function ashbringer_zero_create takes Buff b returns nothing
        set b.userReal = 0
        set b.userReal2 = 0
        set b.userReal3 = 0
        set b.userInt = 0
        set b.userInt2 = 0
        call ashbringer_zero_update(b)
    endfunction

    function ashbringer_zero_cleanup takes Buff b returns nothing
        local Tower tower = b.getBuffedUnit()
        call tower.modifyProperty(MOD_SPELL_DAMAGE_DEALT, -b.userReal)
        call tower.modifyProperty(MOD_SPELL_CRIT_CHANCE, -b.userReal2)
        call tower.modifyProperty(MOD_SPELL_CRIT_DAMAGE, -b.userReal3)
        call tower.modifyProperty(MOD_ATTACKSPEED, -b.userInt/1000.0)
        call tower.modifyProperty(MOD_TRIGGER_CHANCES, -b.userInt2/1000.0)
    endfunction
    
    function ashbringer_comet_hit takes Projectile p returns nothing
        local real mana = p.userReal3
        local Tower tower = p.getCaster()
        local Iterate i = Iterate.overUnitsInRange(tower, TARGET_TYPE_CREEPS, p.x, p.y, 250)
        local Creep next
        local integer count = 0
        local integer max = 5
        local real damage = (10000 + (tower.getLevel() * 400)) * (1 + ((p.userReal3 / 50) * 0.1))
        
        call Effect.createScaled("Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl", p.x, p.y, 0, 90.0, 1.75).destroy()
        
        if tower.getUID()!=0 then
            call ashbringer_comet_cast.pointCastFromPointOnPoint(tower, p.x, p.y, p.x, p.y, 0.0, 0.0)
            loop
                set next = i.next()
                exitwhen next == 0
                call tower.doSpellDamage(next, damage, tower.calcSpellCritNoBonus())
                call cb_stun.applyOnlyTimed(tower, next, 3)
            endloop
            
            loop
                call TriggerSleepAction(1)
                set i = Iterate.overUnitsInRange(tower, TARGET_TYPE_CREEPS, p.x, p.y, 250)
                loop
                    set next = i.next()
                    exitwhen next == 0
                    call tower.doSpellDamage(next, damage/max, tower.calcSpellCritNoBonus())
                endloop
                set count = count + 1
                exitwhen count==max or tower.getUID()==0
            endloop
        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 mod = Modifier.create()
        
        set ashbringer_zero_aura = BuffType.createAuraEffectType(true)
        call ashbringer_zero_aura.setBuffIcon('@@3@@')
        call ashbringer_zero_aura.addEventOnCreate(ashbringer_zero_create)
        call ashbringer_zero_aura.addEventOnCleanup(ashbringer_zero_cleanup)
        call ashbringer_zero_aura.addPeriodicEvent(ashbringer_zero_update, 5)
        
        set ashbringer_stolenbreath_buff = BuffType.create(2, 0, false)
        call ashbringer_stolenbreath_buff.setBuffIcon('@@5@@')
        call mod.addModification(MOD_DMG_FROM_ICE, 0.0, 0.0001)
        call mod.addModification(MOD_HP_REGEN_PERC, 0.0, -0.0001)
        call ashbringer_stolenbreath_buff.setBuffModifier(mod)
        
        set ashbringer_comet_cast = Cast.create('@@1@@', "flamestrike", 5.0)
        
        set ashbringer_comet_missile = ProjectileType.create("Abilities\\Spells\\Other\\FrostBolt\\FrostBoltMissile.mdl", 5.0, 100)
        call ashbringer_comet_missile.enablePhysics(0, ashbringer_comet_hit, -25, 0, 1.00)
        //call ashbringer_comet_missile.setEventOnCleanup(ProjectileEvent.ashbringer_comet_hit)
        //call ashbringer_comet_missile.setAcceleration(100.0)
    endfunction
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [2] => Array
                (
                    [name] => Tower Aura
                    [code] => Array
                        (
                        )

                    [values] => Array
                        (
                            [AURA_powerAdd] => 0
                            [visible] => true
                            [AURA_auraEffect] => ashbringer_zero_aura
                            [AURA_levelAdd] => 0
                            [AURA_power] => 1
                            [icon] => ReplaceableTextures\CommandButtons\BTNFreezingBreath.blp
                            [AURA_targetType] => TARGET_TYPE_TOWERS + TARGET_TYPE_ELEMENT_ICE + TARGET_TYPE_RARITY_UNCOMMON + TARGET_TYPE_RARITY_COMMON
                            [long_explain] => Attack speed, trigger chances, spell damage, spell crit chance and spell crit damage bonuses on this tower are applied to |cffFFFFFFCommon|r and |cff0080FFUncommon|r |cFF00FFFFIce|r towers in |cffffff80350|r range at a rate of |cffffff8050%|r.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+2%|r stats
                            [AURA_targetSelf] => false
                            [name] => Eternal Winter
                            [AURA_level] => 1
                            [short_explain] => Certain bonuses on this tower affect nearby |cffFFFFFFCommon|r and |cff0080FFUncommon|r |cFF00FFFFIce|r towers.
                            [AURA_auraRange] => 350
                        )

                )

            [3] => Array
                (
                    [name] => Periodic
                    [code] => local Iterate i = Iterate.overUnitsInRangeOfCaster(tower, TARGET_TYPE_CREEPS, 1200)
    local Unit next
    local Buff b
    local integer power = R2I((0.03 + (tower.getLevel() * 0.0012)) / 0.0001)
    
    loop
        set next = i.next()
        exitwhen next== 0
        set b = next.getBuffOfType(ashbringer_stolenbreath_buff)
        if b != 0 then
            set b.userInt = b.userInt + 1
            call b.setPower(b.userInt * power)
            call b.refreshDuration()
        else
            set ashbringer_stolenbreath_buff.applyCustomPower(tower, next, power, power).userInt = 1
        endif
   endloop
                    [values] => Array
                        (
                            [visible] => true
                            [PERIODIC_period] => 1.0
                            [icon] => ReplaceableTextures\CommandButtons\BTNManaDrain.blp
                            [name] => Stolen Breath
                            [short_explain] => Enemies in range of the tower take increasing damage taken from |cFF00FFFFIce|r towers and have their health regeneration reduced.
                            [long_explain] => Every second, enemies within |cffffff801200|r range gain a stack of Stolen Breath which lasts for |cffffff802|r seconds. Each stack increases damage taken from |cFF00FFFFIce|r towers by |cffffff803%|r and reduces health regeneration by the same amount.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.12%|r damage taken|r|n|cffFFFF80-0.12%|r health regeneration
                        )

                )

            [4] => Array
                (
                    [name] => Autocast
                    [code] => local real mana = GetUnitState(tower.getUnit(), UNIT_STATE_MANA)
    local Unit target = Event.getTarget()
    local Projectile p
    
    set p = Projectile.create(ashbringer_comet_missile, tower, 0.0, 0.0, target.getX(), target.getY(), 2400.00, GetUnitFacing(target.getUnit()))
    //call p.aimAtPoint(target.getX(), target.getY(), 0, false, true)
    call p.setScale(3.6)
    call p.setGravity(5)
    set p.zangle = 90
    set p.userReal3 = mana
    call tower.subtractMana(mana, true)
                    [values] => Array
                        (
                            [AUTOCAST_cooldown] => 16
                            [AUTOCAST_autoRange] => 1200
                            [visible] => true
                            [AUTOCAST_manacost] => 200
                            [icon] => ReplaceableTextures\CommandButtons\BTNOrbOfFrost.blp
                            [AUTOCAST_range] => 1200
                            [AUTOCAST_targetType] => 0
                            [AUTOCAST_numBuffsBeforeIdle] => 0
                            [caster_art] => 
                            [long_explain] => Consumes all mana to call down an icy comet onto an enemy, dealing |cffffff8010000|r spell damage to enemies in |cffffff80250|r range and freezing them for |cffffff803|r seconds. The comet leaves behind a patch of frost that lasts |cffffff805|r seconds and deals |cffffff802000|r spell damage per second. For every |cffffff8050|r mana consumed, the damage is increased by |cffffff8010%|r.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+400|r initial spell damage|n|cffFFFF80+80|r spell damage per second
                            [target_art] => 
                            [AUTOCAST_autocastType] => AC_TYPE_OFFENSIVE_UNIT
                            [AUTOCAST_buffType] => 0
                            [AUTOCAST_isExtended] => false
                            [name] => Rime of Nifl
                            [AUTOCAST_targetSelf] => false
                            [short_explain] => Consumes all mana to call down an icy comet which deals area spell damage and stuns.
                        )

                )

        )

    [abilities] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => Alit
                    [oeValues] => Array
                        (
                            [Art] => Array
                                (
                                )

                            [Untip] => -HIDE-
                            [race] => human
                            [TargetArt] => Abilities\Spells\Other\FrostDamage\FrostDamage.mdl
                            [DataA1] => 0
                            [Name] => Void Attack
                            [DataB1] => 0.5
                            [Ubertip] => -HIDE-
                            [LightningEffect] => WAVE
                            [Missileart] => Abilities\Spells\NightElf\Blink\BlinkTarget.mdl
                            [Tip] => -HIDE-
                            [Unubertip] => -HIDE-
                            [targs1] => enemies
                        )

                )

            [1] => Array
                (
                    [id] => @@1@@
                    [derivedFrom] => AHfs
                    [oeValues] => Array
                        (
                            [Cost1] => 0
                            [DataE1] => 0
                            [EfctID1] => @@2@@
                            [Art] => ReplaceableTextures\CommandButtons\BTNWallOfFire.blp
                            [hero] => 0
                            [DataA1] => 0
                            [Cool1] => 0
                            [DataC1] => 0
                            [Name] => Comet Strike
                            [Dur1] => 5
                            [EffectArt] => Abilities\Weapons\FrostWyrmMissile\FrostWyrmMissile.mdl
                            [SpecialArt] => Array
                                (
                                )

                            [Rng1] => 2000
                            [DataD1] => 5
                            [DataF1] => 0
                            [HeroDur1] => 5
                            [BuffID1] => @@4@@
                            [Area1] => 250
                            [Cast1] => 0
                            [DataB1] => 5
                            [Ubertip] => Array
                                (
                                )

                            [Tip] => Array
                                (
                                )

                            [checkDep] => 0
                            [levels] => 1
                            [targs1] => none
                        )

                )

        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@2@@
                    [derivedFrom] => XHfs
                    [oeValues] => Array
                        (
                            [EditorName] => Comet (Effect)
                            [Effectsoundlooped] => TornadoLoop
                            [EffectArt] => Abilities\Spells\Other\FrostDamage\FrostDamage.mdl
                            [Buffart] => Array
                                (
                                )

                        )

                )

            [1] => Array
                (
                    [id] => @@3@@
                    [derivedFrom] => BHab
                    [oeValues] => Array
                        (
                            [Targetattach] => Array
                                (
                                )

                            [Buffubertip] => Stats increased.
                            [TargetArt] => Array
                                (
                                )

                            [Bufftip] => Eternal Winter
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNFreezingBreath.blp
                        )

                )

            [2] => Array
                (
                    [id] => @@4@@
                    [derivedFrom] => BHfs
                    [oeValues] => Array
                        (
                            [Buffubertip] => Taking damage over time.
                            [TargetArt] => Abilities\Spells\Other\FrostDamage\FrostDamage.mdl
                            [Bufftip] => Comet
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNOrbOfFrost.blp
                        )

                )

            [3] => Array
                (
                    [id] => @@5@@
                    [derivedFrom] => BHab
                    [oeValues] => Array
                        (
                            [Buffubertip] => Increased damage taken from Ice towers and reduced health regeneration.
                            [TargetArt] => Abilities\Spells\Other\GeneralAuraTarget\GeneralAuraTarget.mdl
                            [Bufftip] => Stolen Breath
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNManaDrain.blp
                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

    [lightning] => Array
        (
        )

)