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

            [Art] => ReplaceableTextures\CommandButtons\BTNSoulBurn.blp
            [dmgplus1] => 1291
            [bldtm] => 1
            [goldcost] => 4000
            [unitSound] => Blacksmith
            [sides1] => 1
            [Missilearc] => 0.3
            [manaN] => 6000
            [launchZ] => 200
            [acquire] => 1000
            [upgrades] => Array
                (
                )

            [Upgrade] => Array
                (
                )

            [Name] => The Furnace
            [red] => 50
            [weapTp1] => msplash
            [file] => .mdl
            [uberSplat] => YTDC
            [Missileart] => Abilities\Weapons\RedDragonBreath\RedDragonMissile.mdl
            [Missilespeed] => 2000
            [dice1] => 1
            [RngBuff1] => 250
            [green] => 50
            [modelScale] => 0.1
            [rangeN1] => 1000
            [atkType1] => pierce
            [cool1] => 2.25
            [Ubertip] => Even the ancients feared what this fire remembers.
            [blue] => 50
            [scaleBull] => 0
            [abilList] => Array
                (
                )

            [buildingShadow] => Array
                (
                )

            [targs1] => Array
                (
                )

            [weapsOn] => 1
        )

    [settings] => Array
        (
            [balanceTip] => |cffCCFF00Splash attack:|n   |cffFFFF00300|r AoE: |cff00FF00100%|r damage|r
            [abil_factor] => 0.2
            [author] => Ashbringer
            [alpha] => 0
            [authorDisplay] => |cffff6600Ashbringer|r
            [version] => 1.0
            [element] => fire
            [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] => 35
                    [green] => 15
                    [blue] => 15
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [1] => Array
                (
                    [x] => 0.13828
                    [y] => 17.0495
                    [z] => 32
                    [scale] => 0.12
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 40
                    [green] => 30
                    [blue] => 20
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

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

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

            [3] => Array
                (
                    [x] => 26.3783
                    [y] => -0.72231
                    [z] => -25.6
                    [scale] => 0.18
                    [rot] => 3.14159
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 40
                    [green] => 30
                    [blue] => 20
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [4] => Array
                (
                    [x] => -21.9898
                    [y] => 0.782603
                    [z] => -25.6
                    [scale] => 0.18
                    [rot] => 0.000000238419
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 40
                    [green] => 30
                    [blue] => 20
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [5] => Array
                (
                    [x] => 0.245502
                    [y] => 16.8569
                    [z] => 134.4
                    [scale] => 0.12
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 40
                    [green] => 30
                    [blue] => 20
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [6] => Array
                (
                    [x] => -0.331555
                    [y] => -14.9336
                    [z] => 134.4
                    [scale] => 0.12
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 40
                    [green] => 30
                    [blue] => 20
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [7] => Array
                (
                    [x] => -0.0417789
                    [y] => 8.12116
                    [z] => 211.2
                    [scale] => 1.3
                    [rot] => 4.71239
                    [file] => Abilities\Weapons\LordofFlameMissile\LordofFlameMissile.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -4.71
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [8] => Array
                (
                    [x] => 0.140686
                    [y] => 0.896066
                    [z] => 44.8
                    [scale] => 0.15
                    [rot] => 0
                    [file] => Doodads\Dungeon\Structures\DungeonArchway45\DungeonArchway45.mdl
                    [red] => 100
                    [green] => 80
                    [blue] => 60
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [9] => Array
                (
                    [x] => -0.219704
                    [y] => 1.16642
                    [z] => 44.8
                    [scale] => 0.15
                    [rot] => 1.5708
                    [file] => Doodads\Dungeon\Structures\DungeonArchway45\DungeonArchway45.mdl
                    [red] => 100
                    [green] => 80
                    [blue] => 60
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [10] => Array
                (
                    [x] => 0.140686
                    [y] => 0.896066
                    [z] => 89.6
                    [scale] => 0.15
                    [rot] => 0
                    [file] => Doodads\Dungeon\Structures\DungeonArchway45\DungeonArchway45.mdl
                    [red] => 100
                    [green] => 80
                    [blue] => 60
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [11] => Array
                (
                    [x] => -0.219704
                    [y] => 1.16642
                    [z] => 89.6
                    [scale] => 0.15
                    [rot] => 1.5708
                    [file] => Doodads\Dungeon\Structures\DungeonArchway45\DungeonArchway45.mdl
                    [red] => 100
                    [green] => 80
                    [blue] => 60
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [12] => Array
                (
                    [x] => 0.140686
                    [y] => 0.896066
                    [z] => 0
                    [scale] => 0.15
                    [rot] => 0
                    [file] => Doodads\Dungeon\Structures\DungeonArchway45\DungeonArchway45.mdl
                    [red] => 100
                    [green] => 80
                    [blue] => 60
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [13] => Array
                (
                    [x] => -0.219704
                    [y] => 1.16642
                    [z] => 0
                    [scale] => 0.15
                    [rot] => 1.5708
                    [file] => Doodads\Dungeon\Structures\DungeonArchway45\DungeonArchway45.mdl
                    [red] => 100
                    [green] => 80
                    [blue] => 60
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [14] => Array
                (
                    [x] => -0.148776
                    [y] => 0.454619
                    [z] => 166.4
                    [scale] => 0.45
                    [rot] => 0
                    [file] => Abilities\Spells\Other\ImmolationRed\ImmolationREDTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [15] => Array
                (
                    [x] => 0.00902523
                    [y] => 0.0259167
                    [z] => -19.2
                    [scale] => 1.8
                    [rot] => 0.942478
                    [file] => war3mapImported\GeneralAuraTargetWhite.mdl
                    [red] => 255
                    [green] => 105
                    [blue] => 15
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [16] => Array
                (
                    [x] => 0.139483
                    [y] => 16.969
                    [z] => 83.2
                    [scale] => 0.12
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 40
                    [green] => 30
                    [blue] => 20
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [17] => Array
                (
                    [x] => -0.437574
                    [y] => -14.8215
                    [z] => 83.2
                    [scale] => 0.12
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 40
                    [green] => 30
                    [blue] => 20
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [18] => Array
                (
                    [x] => 0.0545853
                    [y] => 0.0287149
                    [z] => 32
                    [scale] => 1.75
                    [rot] => 0.942478
                    [file] => war3mapImported\GeneralAuraTargetWhite.mdl
                    [red] => 255
                    [green] => 105
                    [blue] => 15
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [19] => Array
                (
                    [x] => -0.0362072
                    [y] => -0.107377
                    [z] => 70.4
                    [scale] => 1.2
                    [rot] => 0.942478
                    [file] => war3mapImported\GeneralAuraTargetWhite.mdl
                    [red] => 255
                    [green] => 105
                    [blue] => 15
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [20] => Array
                (
                    [x] => -0.0379624
                    [y] => 0.020933
                    [z] => 121.6
                    [scale] => 1.2
                    [rot] => 0.942478
                    [file] => war3mapImported\GeneralAuraTargetWhite.mdl
                    [red] => 255
                    [green] => 105
                    [blue] => 15
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [21] => Array
                (
                    [x] => 0.113833
                    [y] => -0.025547
                    [z] => 83.2
                    [scale] => 0.5
                    [rot] => 0
                    [file] => Abilities\Spells\Other\ImmolationRed\ImmolationREDTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [22] => Array
                (
                    [x] => -0.176999
                    [y] => 0.161079
                    [z] => 32
                    [scale] => 0.7
                    [rot] => 0
                    [file] => Abilities\Spells\Other\ImmolationRed\ImmolationREDTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [23] => Array
                (
                    [x] => 0.0346753
                    [y] => -0.025219
                    [z] => 172.8
                    [scale] => 1.2
                    [rot] => 0.942478
                    [file] => war3mapImported\GeneralAuraTargetWhite.mdl
                    [red] => 255
                    [green] => 105
                    [blue] => 15
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [24] => Array
                (
                    [x] => -0.171534
                    [y] => 0.0389154
                    [z] => 121.6
                    [scale] => 0.5
                    [rot] => 0
                    [file] => Abilities\Spells\Other\ImmolationRed\ImmolationREDTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

        )

    [dmgTable] => Array
        (
        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Attack
                    [code] => call ashbringer_blaze_launch(tower, tower.getUID(), Event.getTarget(), 3, 0.1 + (tower.getLevel() * 0.004), 200)
                    [values] => Array
                        (
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNFire.blp
                            [name] => Roaring Blaze
                            [short_explain] => Attacks have a chance to launch additional projectiles.
                            [ONATTACK_chance] => 0.1
                            [ONATTACK_chanceLevelAdd] => 0.004
                            [long_explain] => Attacks have a |cffffff8010%|r chance to fire an additional projectile at a random point near the target. Each additional projectile can trigger another, up to a maximum of |cffffff805|r times. Each additional projectile applies a stack of Consuming Flames on hit.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.4%|r chance
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals
    BuffType ashbringer_linger_buff
    BuffType ashbringer_heart_aura
    BuffType ashbringer_intense_buff
    ProjectileType ashbringer_blaze_missile
    endglobals
    
    function ashbringer_heart_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 intense
        local real counter_double_dip = 0
        
        set intense = tower.getBuffOfType(ashbringer_intense_buff)
        if intense!=0 then
            set counter_double_dip = intense.getLevel() * 0.0005
        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() - counter_double_dip - (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_heart_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_heart_update(b)
    endfunction

    function ashbringer_heart_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_linger_apply takes Tower tower, Creep target returns nothing
        local Buff b = target.getBuffOfType(ashbringer_linger_buff)
        
        if b != 0 then
            set b.userInt = b.userInt + 1
            call b.refreshDuration()
        else
            set b = ashbringer_linger_buff.apply(tower, target, tower.getLevel())
            set b.userInt = 1
            set b.userReal = 150 + (tower.getLevel() * 6)
        endif
        
        call tower.doSpellDamage(target, b.userReal * I2R(b.userInt), tower.calcSpellCritNoBonus())
        call tower.addManaPerc(0.001 * I2R(b.userInt))
    endfunction
    
    function ashbringer_linger_damage takes Buff b returns nothing
        local Tower tower = b.getCaster()
        
        call tower.doSpellDamage(b.getBuffedUnit(), b.userReal * I2R(b.userInt), tower.calcSpellCritNoBonus())
        call tower.addManaPerc(0.001 * I2R(b.userInt))
    endfunction
    
    function ashbringer_linger_ondeath takes Buff b returns nothing
        call b.getCaster().modifyProperty(MOD_MANA, I2R(b.userInt))
    endfunction
    
    function ashbringer_blaze_launch takes Tower tower, integer UID, Creep target, integer max, real chance, real z returns nothing
        local real target_x = target.getX()
        local real target_y = target.getY()
        local Projectile p
        local real random_angle = GetRandomReal(0, 360)
        local real random_distance = GetRandomReal(25, 150)
        
        call TriggerSleepAction(0.05)
        if tower.getUID() == UID then
            set target_x = target_x + random_distance * Cos(Deg2Rad(random_angle))
            set target_y = target_y + random_distance * Sin(Deg2Rad(random_angle))
            set p = Projectile.createLinearInterpolationFromPointToPoint(ashbringer_blaze_missile, tower, 0, 0, tower.getX(), tower.getY(), z, target_x, target_y, target.getZ(), 0.3)
            set p.userReal = target_x
            set p.userReal2 = target_y
            set p.userInt = UID
            set max = max - 1
            if max > 0 and tower.calcChance(chance) then
                call ashbringer_blaze_launch(tower, UID, target, max, chance, z)
            endif
        endif
    endfunction
    
    function ashbringer_blaze_hit takes Projectile p returns nothing
        local Tower tower = p.getCaster()
        local Iterate i
        local Creep next
        
        if tower.getUID() == p.userInt then
            set i = Iterate.overUnitsInRange(tower, TARGET_TYPE_CREEPS, p.userReal, p.userReal2, 200)
            loop
                set next = i.next()
                exitwhen next == 0
                call tower.doAttackDamage(next, tower.getCurrentAttackDamageWithBonus(), tower.calcAttackMulticrit(0, 0, 0))
                call ashbringer_linger_apply(tower, next)
            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 m = Modifier.create()
        
        set ashbringer_heart_aura = BuffType.createAuraEffectType(true)
        call ashbringer_heart_aura.setBuffIcon('@@1@@')
        call ashbringer_heart_aura.addEventOnCreate(ashbringer_heart_create)
        call ashbringer_heart_aura.addEventOnCleanup(ashbringer_heart_cleanup)
        call ashbringer_heart_aura.addPeriodicEvent(ashbringer_heart_update, 5)

        set ashbringer_linger_buff = BuffType.create(10, 0, false) 
        call ashbringer_linger_buff.setBuffIcon('@@0@@')
        call ashbringer_linger_buff.addPeriodicEvent(EventHandler.ashbringer_linger_damage, 0.5) 
        call ashbringer_linger_buff.addEventOnDeath(EventHandler.ashbringer_linger_ondeath) 
        	
        set ashbringer_intense_buff=BuffType.create(4, 0, true)
        call m.addModification(MOD_ATK_CRIT_DAMAGE, 0.0, 0.0005)
        call m.addModification(MOD_SPELL_CRIT_DAMAGE, 0.0, 0.0005)
        call ashbringer_intense_buff.setBuffIcon('@@2@@')
        call ashbringer_intense_buff.setBuffModifier(m)
        
        set ashbringer_blaze_missile = ProjectileType.create("Abilities\\Weapons\\RedDragonBreath\\RedDragonMissile.mdl", 5, 2000) 
        call ashbringer_blaze_missile.setEventOnCleanup(ProjectileEvent.ashbringer_blaze_hit)
    endfunction
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [2] => Array
                (
                    [name] => On Damage
                    [code] => call ashbringer_linger_apply(tower, Event.getTarget())
                    [values] => Array
                        (
                            [ONDAMAGE_chance] => 1.0
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNWarlockIncinerate.blp
                            [name] => Consuming Flames
                            [short_explain] => Attacks apply stacking spell damage over time which restores mana to the tower.
                            [ONDAMAGE_chanceLevelAdd] => 0.0
                            [long_explain] => Attacks apply a stack of Consuming Flames on hit, which deals |cffffff80150|r spell damage immediately and every |cffffff800.5|r seconds for |cffffff8010|r seconds. |n|nThe tower gains |cffffff800.1%|r of maximum mana per stack whenever Consuming Flames deals damage and maximum mana is permanently increased by |cffffff801|r per stack when an affected creep dies.
                        )

                )

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

                    [values] => Array
                        (
                            [AURA_powerAdd] => 0
                            [visible] => true
                            [AURA_auraEffect] => ashbringer_heart_aura
                            [AURA_levelAdd] => 0
                            [AURA_power] => 1
                            [icon] => ReplaceableTextures\CommandButtons\BTNOrbOfFire.blp
                            [AURA_targetType] => TARGET_TYPE_TOWERS + TARGET_TYPE_ELEMENT_FIRE + 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 |cFFFF5300Fire|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] => Heart of the Forge
                            [AURA_level] => 1
                            [short_explain] => Certain bonuses on this tower affect nearby |cffFFFFFFCommon|r and |cff0080FFUncommon|r |cFFFF5300Fire|r towers.
                            [AURA_auraRange] => 350
                        )

                )

            [4] => Array
                (
                    [name] => Autocast
                    [code] => local Iterate damagecast = Iterate.overUnitsInRangeOfUnit(tower,TARGET_CREEPS,tower,1000)
    local Iterate buffcast = Iterate.overUnitsInRangeOfUnit(tower,TARGET_TOWERS,tower,350)
    local Unit next
    local real towermana = GetUnitState( tower.getUnit(), UNIT_STATE_MANA)
    local real fxscale = 0.8 + ((RMinBJ(towermana, 6000) / 6000) * 0.9)
    
    call Effect.createScaled("Objects\\Spawnmodels\\Human\\SmallFlameSpawn\\SmallFlameSpawn.mdl", tower.getX(), tower.getY(), 0, 270, fxscale).setLifetime(6.6)
    loop
        set next = damagecast.next()
        exitwhen next == 0
        //call ashbringer_linger_apply(tower, next)
        call tower.doSpellDamage(next, (2.5 + (tower.getLevel() * 0.05)) * towermana, tower.calcSpellCritNoBonus())
        call Effect.createSimpleOnUnit("Doodads\\Cinematic\\FireTrapUp\\FireTrapUp.mdl", next, "origin").setLifetime(3.0)
    endloop

    loop
        set next = buffcast.next()
        exitwhen next == 0
        call ashbringer_intense_buff.apply(tower, next, R2I(towermana/25.0))
    endloop
    call tower.subtractMana(towermana, true)
                    [values] => Array
                        (
                            [AUTOCAST_cooldown] => 5
                            [AUTOCAST_autoRange] => 900
                            [AUTOCAST_manacost] => 600
                            [icon] => ReplaceableTextures\CommandButtons\BTNWallOfFire.blp
                            [AUTOCAST_range] => 0
                            [AUTOCAST_targetType] => 0
                            [AUTOCAST_numBuffsBeforeIdle] => 0
                            [caster_art] => 
                            [long_explain] => Expends all mana to unleash a wave of intense heat, dealing |cffffff80[mana x 2.5]|r spell damage to all enemies in |cffffff801000|r range. Increases the attack and spell crit damage of towers in |cffffff80350|r range by |cffffff80[mana / 500]%|r for |cffffff804|r seconds.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.05|r spell damage per mana
                            [target_art] => 
                            [AUTOCAST_autocastType] => AC_TYPE_OFFENSIVE_IMMEDIATE
                            [AUTOCAST_buffType] => 0
                            [AUTOCAST_isExtended] => true
                            [name] => Vent Heat
                            [AUTOCAST_targetSelf] => false
                            [short_explain] => Expends all mana to deal spell damage to nearby enemies and increase the attack and spell crit damage of nearby towers.
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => BHab
                    [oeValues] => Array
                        (
                            [Targetattach] => chest
                            [Buffubertip] => Burning; generating mana for the tower.
                            [TargetArt] => Abilities\Spells\Other\ImmolationRed\ImmolationRedDamage.mdl
                            [Bufftip] => Consuming Flames
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNWarlockIncinerate.blp
                        )

                )

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

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

                            [Bufftip] => Heart of the Forge
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNOrbOfFire.blp
                        )

                )

            [2] => Array
                (
                    [id] => @@2@@
                    [derivedFrom] => BHab
                    [oeValues] => Array
                        (
                            [Targetattach] => overhead
                            [Buffubertip] => Increased attack and spell crit damage.
                            [TargetArt] => Abilities\Spells\Other\Incinerate\IncinerateBuff.mdl
                            [Bufftip] => Intense Heat
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNWallOfFire.blp
                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

    [lightning] => Array
        (
        )

)