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

            [Art] => ReplaceableTextures\CommandButtons\BTNDeathCoil.blp
            [dmgplus1] => 1671
            [bldtm] => 1
            [goldcost] => 4000
            [unitSound] => ZigguratUpgrade
            [sides1] => 1
            [manaN] => 100
            [launchZ] => 200
            [acquire] => 1000
            [upgrades] => Array
                (
                )

            [Upgrade] => Array
                (
                )

            [Name] => The Soulflame
            [red] => 50
            [weapTp1] => missile
            [MissileHoming] => 1
            [file] => Doodads\Cityscape\Structures\City_ColumnSingle\City_ColumnSingle.mdl
            [uberSplat] => YTDB
            [Missileart] => Abilities\Weapons\NecromancerMissile\NecromancerMissile.mdl
            [Missilespeed] => 1400
            [dice1] => 1
            [RngBuff1] => 250
            [green] => 50
            [modelScale] => 0.42
            [rangeN1] => 1000
            [atkType1] => hero
            [cool1] => 1.8
            [Ubertip] => A beacon of eternal torment.
            [blue] => 50
            [scaleBull] => 0
            [abilList] => @@0@@
            [buildingShadow] => Array
                (
                )

            [targs1] => Array
                (
                )

            [weapsOn] => 1
        )

    [settings] => Array
        (
            [balanceTip] => |cffFFFF00-40% |rdmg to undead (|cffFFFF00+1%|r/lvl)
            [abil_factor] => 0.2
            [author] => Ashbringer
            [alpha] => 255
            [authorDisplay] => |cffff6600Ashbringer|r
            [version] => 1.0
            [element] => darkness
            [rarity] => unique
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => -0.59832
                    [y] => -15.7034
                    [z] => 32
                    [scale] => 0.12
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 40
                    [green] => 40
                    [blue] => 40
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [1] => Array
                (
                    [x] => -0.202525
                    [y] => 7.23925
                    [z] => 198.4
                    [scale] => 1.55
                    [rot] => 4.71239
                    [file] => Abilities\Weapons\NecromancerMissile\NecromancerMissile.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [2] => Array
                (
                    [x] => -0.175394
                    [y] => -0.933818
                    [z] => 0
                    [scale] => 0.28
                    [rot] => 4.71239
                    [file] => Doodads\Ruins\Props\Ruins_NagaCircle\Ruins_NagaCircle.mdl
                    [red] => 15
                    [green] => 15
                    [blue] => 20
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [3] => Array
                (
                    [x] => -0.0469136
                    [y] => -0.907462
                    [z] => 25.6
                    [scale] => 0.75
                    [rot] => 0
                    [file] => Abilities\Spells\NightElf\Immolation\ImmolationTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [4] => Array
                (
                    [x] => -0.599523
                    [y] => -15.6229
                    [z] => 76.8
                    [scale] => 0.12
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 40
                    [green] => 40
                    [blue] => 40
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [5] => Array
                (
                    [x] => -0.33228
                    [y] => -0.843
                    [z] => 70.4
                    [scale] => 0.75
                    [rot] => 0
                    [file] => Abilities\Spells\NightElf\Immolation\ImmolationTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [6] => Array
                (
                    [x] => -0.0224665
                    [y] => 16.1676
                    [z] => 121.6
                    [scale] => 0.12
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 40
                    [green] => 40
                    [blue] => 40
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [7] => Array
                (
                    [x] => -0.0212628
                    [y] => 16.0871
                    [z] => 32
                    [scale] => 0.12
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 40
                    [green] => 40
                    [blue] => 40
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [8] => Array
                (
                    [x] => -0.337745
                    [y] => -0.720837
                    [z] => -25.6
                    [scale] => 0.95
                    [rot] => 0
                    [file] => Abilities\Spells\NightElf\Immolation\ImmolationTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [9] => Array
                (
                    [x] => -0.380451
                    [y] => 0.284506
                    [z] => 0.00000858307
                    [scale] => 0.15
                    [rot] => 1.5708
                    [file] => Doodads\Underground\Structures\UndergroundArchway45\UndergroundArchway45.mdl
                    [red] => 80
                    [green] => 80
                    [blue] => 80
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [10] => Array
                (
                    [x] => -0.0200599
                    [y] => 0.0141509
                    [z] => 0.00000858307
                    [scale] => 0.15
                    [rot] => 0
                    [file] => Doodads\Underground\Structures\UndergroundArchway45\UndergroundArchway45.mdl
                    [red] => 80
                    [green] => 80
                    [blue] => 80
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [11] => Array
                (
                    [x] => -0.0200599
                    [y] => 0.0141509
                    [z] => 89.6
                    [scale] => 0.15
                    [rot] => 0
                    [file] => Doodads\Underground\Structures\UndergroundArchway45\UndergroundArchway45.mdl
                    [red] => 80
                    [green] => 80
                    [blue] => 80
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [12] => Array
                (
                    [x] => -0.380451
                    [y] => 0.284506
                    [z] => 89.6
                    [scale] => 0.15
                    [rot] => 1.5708
                    [file] => Doodads\Underground\Structures\UndergroundArchway45\UndergroundArchway45.mdl
                    [red] => 80
                    [green] => 80
                    [blue] => 80
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [13] => Array
                (
                    [x] => -0.0200599
                    [y] => 0.0141509
                    [z] => 44.8
                    [scale] => 0.15
                    [rot] => 0
                    [file] => Doodads\Underground\Structures\UndergroundArchway45\UndergroundArchway45.mdl
                    [red] => 80
                    [green] => 80
                    [blue] => 80
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [14] => Array
                (
                    [x] => -0.380451
                    [y] => 0.284506
                    [z] => 44.8
                    [scale] => 0.15
                    [rot] => 1.5708
                    [file] => Doodads\Underground\Structures\UndergroundArchway45\UndergroundArchway45.mdl
                    [red] => 80
                    [green] => 80
                    [blue] => 80
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [15] => Array
                (
                    [x] => 0.0847561
                    [y] => 15.975
                    [z] => 76.8
                    [scale] => 0.12
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 40
                    [green] => 40
                    [blue] => 40
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [16] => Array
                (
                    [x] => -0.492301
                    [y] => -15.8155
                    [z] => 121.6
                    [scale] => 0.12
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 40
                    [green] => 40
                    [blue] => 40
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [17] => Array
                (
                    [x] => 24.1647
                    [y] => -0.704763
                    [z] => -19.2
                    [scale] => 0.18
                    [rot] => 3.14159
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 40
                    [green] => 40
                    [blue] => 40
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [18] => Array
                (
                    [x] => -24.2034
                    [y] => 0.800151
                    [z] => -19.2
                    [scale] => 0.18
                    [rot] => 0.000000238419
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 40
                    [green] => 40
                    [blue] => 40
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [19] => Array
                (
                    [x] => -0.309523
                    [y] => -0.427297
                    [z] => 102.4
                    [scale] => 0.7
                    [rot] => 0
                    [file] => Abilities\Spells\NightElf\Immolation\ImmolationTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [20] => Array
                (
                    [x] => -0.0611399
                    [y] => -0.0766272
                    [z] => 0
                    [scale] => 2
                    [rot] => 0.401426
                    [file] => Abilities\Spells\Other\GeneralAuraTarget\GeneralAuraTarget.mdl
                    [red] => 85
                    [green] => 255
                    [blue] => 1
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [21] => Array
                (
                    [x] => -0.0533956
                    [y] => -0.0302944
                    [z] => 38.4
                    [scale] => 1.8
                    [rot] => 0.401426
                    [file] => Abilities\Spells\Other\GeneralAuraTarget\GeneralAuraTarget.mdl
                    [red] => 85
                    [green] => 255
                    [blue] => 1
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [22] => Array
                (
                    [x] => -0.0149912
                    [y] => -0.0157019
                    [z] => 70.4
                    [scale] => 1.25
                    [rot] => 0.401426
                    [file] => Abilities\Spells\Other\GeneralAuraTarget\GeneralAuraTarget.mdl
                    [red] => 85
                    [green] => 255
                    [blue] => 1
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [23] => Array
                (
                    [x] => -0.0441095
                    [y] => 0.117936
                    [z] => 115.2
                    [scale] => 1.25
                    [rot] => 0.401426
                    [file] => Abilities\Spells\Other\GeneralAuraTarget\GeneralAuraTarget.mdl
                    [red] => 85
                    [green] => 255
                    [blue] => 1
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [24] => Array
                (
                    [x] => -0.0449713
                    [y] => 0.0435438
                    [z] => 0.000000953674
                    [scale] => 0.42
                    [rot] => 3.14159
                    [file] => Doodads\Cityscape\Structures\City_ColumnSingle\City_ColumnSingle.mdl
                    [red] => 50
                    [green] => 50
                    [blue] => 50
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [25] => Array
                (
                    [x] => -0.0465532
                    [y] => 0.085878
                    [z] => 160
                    [scale] => 1.2
                    [rot] => 4.01426
                    [file] => Abilities\Spells\Other\GeneralAuraTarget\GeneralAuraTarget.mdl
                    [red] => 85
                    [green] => 255
                    [blue] => 1
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

        )

    [dmgTable] => Array
        (
            [0] => Array
                (
                    [id] => MOD_DMG_TO_UNDEAD
                    [base] => -0.4
                    [add] => 0.01
                )

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => Header
                    [code] => globals
    BuffType ashbringer_soulfire_buff
    BuffType ashbringer_device_aura
    ProjectileType ashbringer_consumption_projectile
    BuffType ashbringer_awaken_buff
    MultiboardValues ashbringer_awaken_count
    endglobals
    
    function ashbringer_consumption_missile takes Unit target, Tower tower returns nothing
        local real towerX = tower.getX()
        local real towerY = tower.getY()
        
        call Projectile.createFromUnitToPoint(ashbringer_consumption_projectile, target, 0, 0, target, towerX, towerY, 200.00, false, true)
    endfunction
    
    function ashbringer_device_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)
        
        local Buff awaken
        local real counter_double_dip = 0
        
        set awaken = tower.getBuffOfType(ashbringer_awaken_buff)
        if awaken!=0 then
            set counter_double_dip = 0.5 + (awaken.getLevel() * 0.01)
        endif
        
        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() - counter_double_dip - (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_device_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_device_update(b)
    endfunction

    function ashbringer_device_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_soulfire_apply takes Tower tower, Creep creep, integer stacks returns nothing
        local Buff b
        local integer i
        
        if stacks<1 then
            set stacks = 1
        endif
            
        set b = creep.getBuffOfType(ashbringer_soulfire_buff)
        if ( b != 0 ) then
            set i = b.getPower() + stacks
            call ashbringer_soulfire_buff.applyCustomPower(tower, creep, 1, i)
        else
            set i = stacks
            call ashbringer_soulfire_buff.applyCustomPower(tower, creep, 1, i)
        endif
    endfunction
    
    function ashbringer_soulfire_damage takes Buff b returns nothing
        local Tower tower = b.getCaster()
        local integer power = b.getPower()
        call tower.doSpellDamage(b.getBuffedUnit(), (1000 + (tower.getLevel() * 20)) * I2R(power), tower.calcSpellCritNoBonus())
    endfunction
    
    function ashbringer_soulfire_ondeath takes Buff b returns nothing
        local Tower tower = b.getCaster()
        local Creep creep = b.getBuffedUnit()
        //local Iterate it = Iterate.overUnitsInRangeOfUnit(tower, TARGET_CREEPS, creep, 200)
        //local Unit next = it.next()
        
        call Effect.createSimpleAtUnit("Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl", creep).destroy()
        call ashbringer_consumption_missile(creep, tower)
    
        if tower != 0 then
            call tower.addMana(5.00)
        endif
        
        //loop
        //    exitwhen next == 0
        //    call ashbringer_soulfire_apply(tower, next, 1)
        //    set next = it.next()
        //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
        local Modifier m = Modifier.create()
        
        set ashbringer_device_aura = BuffType.createAuraEffectType(true)
        call ashbringer_device_aura.setBuffIcon('@@2@@')
        call ashbringer_device_aura.addEventOnCreate(ashbringer_device_create)
        call ashbringer_device_aura.addEventOnCleanup(ashbringer_device_cleanup)
        call ashbringer_device_aura.addPeriodicEvent(ashbringer_device_update, 5)

        set ashbringer_soulfire_buff = BuffType.create(6, 0, false) 
        call ashbringer_soulfire_buff.setBuffIcon('@@1@@')
        call ashbringer_soulfire_buff.addPeriodicEvent(EventHandler.ashbringer_soulfire_damage, 1) 
        call ashbringer_soulfire_buff.addEventOnDeath(EventHandler.ashbringer_soulfire_ondeath)
        	
        set ashbringer_consumption_projectile = ProjectileType.create("Abilities\\weapons\\AvengerMissile\\AvengerMissile.mdl", 5.0, 900.0)
        
        set ashbringer_awaken_buff=BuffType.create(3, 0, true)
        call m.addModification(MOD_ATTACKSPEED, 0.5, 0.01)
        call ashbringer_awaken_buff.setBuffIcon('@@3@@')
        call ashbringer_awaken_buff.setBuffModifier(m)
        
        set ashbringer_awaken_count = MultiboardValues.create(1)  
        call ashbringer_awaken_count.setKey(0, "Bonus Attack Speed") 
    endfunction
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [1] => Array
                (
                    [name] => On Tower Details
                    [code] => call ashbringer_awaken_count.setValue(0, formatPercent(tower.userReal, 1)) 
    return ashbringer_awaken_count
                    [values] => Array
                        (
                            [0] => Array
                                (
                                    [_value] => 0
                                    [typ] => string
                                )

                        )

                )

            [2] => Array
                (
                    [name] => On Damage
                    [code] => local Unit target = Event.getTarget()
    if not target.isImmune() then
        call ashbringer_soulfire_apply(tower, target, 1)
    endif
                    [values] => Array
                        (
                            [ONDAMAGE_chance] => 0.2
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNLifeDrain.blp
                            [name] => Soul Consumption
                            [short_explain] => When enemies affected by Soulburn die, the tower gains mana.
                            [ONDAMAGE_chanceLevelAdd] => 0.004
                            [long_explain] => When an enemy dies while affected by Soulburn, its soul is consumed, restoring |cffffff805|r mana.
                        )

                )

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

                    [values] => Array
                        (
                            [AURA_powerAdd] => 0
                            [visible] => true
                            [AURA_auraEffect] => ashbringer_device_aura
                            [AURA_levelAdd] => 0
                            [AURA_power] => 1
                            [icon] => ReplaceableTextures\CommandButtons\BTNDarkSummoning.blp
                            [AURA_targetType] => TARGET_TYPE_TOWERS + TARGET_TYPE_ELEMENT_DARKNESS + 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 |cFF8A5300Darkness|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] => Creation of Evil
                            [AURA_level] => 1
                            [short_explain] => Certain bonuses on this tower affect nearby |cffFFFFFFCommon|r and |cff0080FFUncommon|r |cFF8A5300Darkness|r towers.
                            [AURA_auraRange] => 350
                        )

                )

            [4] => Array
                (
                    [name] => Autocast
                    [code] => local Iterate it = Iterate.overUnitsInRangeOfUnit(tower, TARGET_TOWERS, tower, 350)
    local Unit next

    loop
        set next = it.next()
            call ashbringer_awaken_buff.apply(tower,next,tower.getLevel())
        exitwhen next == 0
    endloop
    set tower.userReal = tower.userReal + 0.05
    call tower.modifyProperty(MOD_ATTACKSPEED, 0.005)
                    [values] => Array
                        (
                            [AUTOCAST_cooldown] => 4
                            [AUTOCAST_autoRange] => 900
                            [AUTOCAST_manacost] => 50
                            [icon] => ReplaceableTextures\CommandButtons\BTNOrbOfDeath.blp
                            [AUTOCAST_range] => 900
                            [AUTOCAST_targetType] => 0
                            [AUTOCAST_numBuffsBeforeIdle] => 0
                            [caster_art] => Objects\Spawnmodels\Undead\UCancelDeath\UCancelDeath.mdl
                            [long_explain] => Increases the attack speed of towers within |cffffff80350|r range by |cffffff8050%|r for |cffffff803|r seconds and permanently increases the attack speed of this tower by |cffffff800.5%|r.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+1%|r attack speed
                            [target_art] => 
                            [AUTOCAST_autocastType] => AC_TYPE_OFFENSIVE_IMMEDIATE
                            [AUTOCAST_buffType] => 0
                            [AUTOCAST_isExtended] => true
                            [name] => Awaken
                            [AUTOCAST_targetSelf] => false
                            [short_explain] => Increases attack speed of nearby towers for |cffffff803|r seconds.
                        )

                )

            [5] => Array
                (
                    [name] => On Tower Creation
                    [code] => set tower.userReal = 0
                    [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\BTNDeathCoil.blp
                            [Requires] => Array
                                (
                                )

                            [Missilearc] => 0
                            [DataA1] => 0
                            [Cool1] => 0
                            [Area1] => 1000
                            [DataC1] => 4
                            [DataB1] => 0
                            [Name] => Soulburn
                            [Ubertip] => Attacks hit up to |cffffff806|r enemies in range and have a |cffffff8020%|r chance to ignite the enemy's soul, dealing |cffffff801000|r spell damage per second for |cffffff806|r seconds. This effect stacks.|n|n|cffff8000Level Bonus:|r|n|cffffff80+0.4%|r chance|n|cffffff80+20|r damage
                            [Buttonpos1] => 1
                            [Missilespeed] => 1400
                            [Missileart] => Abilities\Weapons\NecromancerMissile\NecromancerMissile.mdl
                            [Tip] => Soulburn
                            [Unubertip] => Attacks hit up to |cffffff806|r enemies and have a chance to deal spell damage over time.
                            [targs1] => enemies
                        )

                )

        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@1@@
                    [derivedFrom] => BHab
                    [oeValues] => Array
                        (
                            [Buffubertip] => This unit's soul is burning.
                            [TargetArt] => Abilities\Spells\NightElf\Immolation\ImmolationTarget.mdl
                            [Bufftip] => Soulburn
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNDeathCoil.blp
                        )

                )

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

                            [Buffubertip] => Stats increased by nearby Soulflame Device.
                            [TargetArt] => Array
                                (
                                )

                            [Bufftip] => Evil Device
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNDarkSummoning.blp
                        )

                )

            [2] => Array
                (
                    [id] => @@3@@
                    [derivedFrom] => BHab
                    [oeValues] => Array
                        (
                            [Targetattach] => overhead
                            [Buffubertip] => Greatly increased attack speed.
                            [TargetArt] => Abilities\Spells\Human\ManaFlare\ManaFlareBase.mdl
                            [Bufftip] => Awaken
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNOrbOfDeath.blp
                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

    [lightning] => Array
        (
        )

)