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

            [Art] => ReplaceableTextures\CommandButtons\BTNEyeOfSulfuras.blp
            [bldtm] => 1
            [dmgplus1] => 152
            [goldcost] => 150
            [unitSound] => ElvenGuardTower
            [sides1] => 7
            [Missilearc] => 0.15
            [manaN] => 45
            [acquire] => 800
            [upgrades] => Array
                (
                )

            [Upgrade] => Array
                (
                )

            [Name] => Fading Orb of Fire
            [weapTp1] => msplash
            [file] => .mdl
            [uberSplat] => YTDI
            [Harea1] => 150
            [Missileart] => Abilities\Weapons\FireBallMissile\FireBallMissile.mdl
            [Missilespeed] => 1500
            [dice1] => 1
            [RngBuff1] => 250
            [regenMana] => 2
            [Hfact1] => 0.1
            [green] => 155
            [modelScale] => 0.1
            [rangeN1] => 800
            [atkType1] => pierce
            [cool1] => 2
            [Ubertip] => Amongst the swirling flames within you may catch a glimpse of the Firelands.
            [scaleBull] => 0
            [blue] => 1
            [abilList] => Array
                (
                )

            [buildingShadow] => Array
                (
                )

            [targs1] => Array
                (
                )

            [weapsOn] => 1
        )

    [settings] => Array
        (
            [balanceTip] => |cffCCFF00Splash attack:|n   |cffFFFF00150|r AoE: |cffFFFF0010%|r damage|r|n|cffFFFF00+0.1 |rmana regen/lvl
            [abil_factor] => 0.45
            [author] => Ashbringer
            [alpha] => 255
            [authorDisplay] => |cffff6600Ashbringer|r
            [element] => fire
            [rarity] => uncommon
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => -24.3225
                    [y] => -25.0356
                    [z] => -6.4
                    [scale] => 0.2
                    [rot] => 0.785398
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 65
                    [green] => 25
                    [blue] => 15
                    [alpha] => 255
                    [pitch] => -0.5
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [1] => Array
                (
                    [x] => 25.3926
                    [y] => 24.4963
                    [z] => -6.4
                    [scale] => 0.2
                    [rot] => 3.92699
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 65
                    [green] => 25
                    [blue] => 15
                    [alpha] => 255
                    [pitch] => -0.5
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [2] => Array
                (
                    [x] => -24.4758
                    [y] => 23.8547
                    [z] => -6.4
                    [scale] => 0.2
                    [rot] => 5.49779
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 65
                    [green] => 25
                    [blue] => 15
                    [alpha] => 255
                    [pitch] => -0.5
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [3] => Array
                (
                    [x] => 25.7701
                    [y] => -25.7718
                    [z] => -6.4
                    [scale] => 0.2
                    [rot] => 2.3562
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 65
                    [green] => 25
                    [blue] => 15
                    [alpha] => 255
                    [pitch] => -0.5
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [4] => Array
                (
                    [x] => -0.485614
                    [y] => -14.259
                    [z] => 6.4
                    [scale] => 0.1
                    [rot] => 1.57075
                    [file] => war3mapImported\City_ColumnSemiCircle2.mdl
                    [red] => 65
                    [green] => 25
                    [blue] => 15
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [5] => Array
                (
                    [x] => 0.194226
                    [y] => 14.3311
                    [z] => 6.4
                    [scale] => 0.1
                    [rot] => 4.71239
                    [file] => war3mapImported\City_ColumnSemiCircle2.mdl
                    [red] => 65
                    [green] => 25
                    [blue] => 15
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [6] => Array
                (
                    [x] => -10.5373
                    [y] => -11.208
                    [z] => -6.4
                    [scale] => 0.19
                    [rot] => 3.92699
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 25
                    [alpha] => 255
                    [pitch] => -1
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [7] => Array
                (
                    [x] => 11.2631
                    [y] => -11.2733
                    [z] => -6.4
                    [scale] => 0.19
                    [rot] => 5.49779
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 25
                    [alpha] => 255
                    [pitch] => -1
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [8] => Array
                (
                    [x] => 11.5098
                    [y] => 10.2376
                    [z] => -6.4
                    [scale] => 0.19
                    [rot] => 0.785398
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 25
                    [alpha] => 255
                    [pitch] => -1
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [9] => Array
                (
                    [x] => -10.3142
                    [y] => 10.2921
                    [z] => -6.4
                    [scale] => 0.19
                    [rot] => 2.3562
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 25
                    [alpha] => 255
                    [pitch] => -1
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [10] => Array
                (
                    [x] => 6.85604
                    [y] => 5.77277
                    [z] => 6.4
                    [scale] => 0.19
                    [rot] => 0.785398
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 25
                    [alpha] => 255
                    [pitch] => -1
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [11] => Array
                (
                    [x] => 7.25208
                    [y] => -6.9029
                    [z] => 6.4
                    [scale] => 0.19
                    [rot] => 5.49779
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 25
                    [alpha] => 255
                    [pitch] => -1
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [12] => Array
                (
                    [x] => -6.49626
                    [y] => -7.19523
                    [z] => 6.4
                    [scale] => 0.19
                    [rot] => 3.92699
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 25
                    [alpha] => 255
                    [pitch] => -1
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [13] => Array
                (
                    [x] => -6.80326
                    [y] => 6.14506
                    [z] => 6.4
                    [scale] => 0.19
                    [rot] => 2.3562
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 25
                    [alpha] => 255
                    [pitch] => -1
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [14] => Array
                (
                    [x] => -0.0822486
                    [y] => -2.13763
                    [z] => 0
                    [scale] => 0.2
                    [rot] => 4.2268
                    [file] => Doodads\Dungeon\Props\DungeonObilisk\DungeonObilisk.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 25
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [15] => Array
                (
                    [x] => -0.0252522
                    [y] => 4.88167
                    [z] => 25.6
                    [scale] => 0.45
                    [rot] => 4.71239
                    [file] => war3mapImported\OrbofFire.mdl
                    [red] => 155
                    [green] => 155
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [16] => Array
                (
                    [x] => -0.101309
                    [y] => 0.0753978
                    [z] => -19.2
                    [scale] => 1.55
                    [rot] => 2.84489
                    [file] => war3mapImported\GeneralAuraTargetWhite.mdl
                    [red] => 255
                    [green] => 125
                    [blue] => 5
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [17] => Array
                (
                    [x] => -0.14271
                    [y] => 0.0725878
                    [z] => 0
                    [scale] => 0.9
                    [rot] => 2.84489
                    [file] => war3mapImported\GeneralAuraTargetWhite.mdl
                    [red] => 255
                    [green] => 125
                    [blue] => 5
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

        )

    [dmgTable] => Array
        (
            [0] => Array
                (
                    [id] => MOD_MANA_REGEN
                    [base] => 0
                    [add] => 0.1
                )

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => Header
                    [code] => globals
        //@export
        BuffType ashbringer_orboffire_buff
    endglobals

    function ashbringer_orboffire_ondamage takes Buff b returns nothing
        local Tower tower = b.getBuffedUnit()
        local real damage = b.userReal * tower.getCurrentAttackDamageWithBonus()
        local real crit = Event.getCriticalMultiplier()
        local Unit target = Event.getTarget()
        local Iterate i = Iterate.overUnitsInRangeOfUnit(tower, TARGET_TYPE_CREEPS, target, 150)
        local Creep next
        
        loop
            set next = i.next()
            exitwhen next == 0
            if next != target then
                call tower.doCustomAttackDamage(next, damage, crit, AttackType.ELEMENTAL)
                call Effect.createSimpleOnUnit("Abilities\\Spells\\Items\\AIfb\\AIfbSpecialArt.mdl", next, "chest").destroy()
            endif
        endloop
    endfunction

    //Do not remove or rename this function!
    //Put your initialization tasks here, this function will be called on map init
    private function init takes nothing returns nothing
        local Modifier mod = Modifier.create()
        set ashbringer_orboffire_buff = BuffType.create(5, 0.2, true)
        call ashbringer_orboffire_buff.setBuffIcon('@@0@@')
        call mod.addModification(MOD_DPS_ADD, 0, 1)
        call ashbringer_orboffire_buff.setBuffModifier(mod)
        call ashbringer_orboffire_buff.addEventOnDamage(ashbringer_orboffire_ondamage, 1, 0)
	endfunction
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [1] => Array
                (
                    [name] => Autocast
                    [code] => set ashbringer_orboffire_buff.applyAdvanced(tower, Event.getTarget(), tower.getLevel(), 25 + (tower.getLevel() * 1), 5 + (tower.getLevel() * 0.2)).userReal = 0.1 + (tower.getLevel() * 0.004)
                    [values] => Array
                        (
                            [AUTOCAST_cooldown] => 3
                            [AUTOCAST_autoRange] => 500
                            [AUTOCAST_manacost] => 30
                            [icon] => ReplaceableTextures\CommandButtons\BTNEyeOfSulfuras.blp
                            [AUTOCAST_range] => 500
                            [AUTOCAST_targetType] => TARGET_TYPE_TOWERS
                            [AUTOCAST_numBuffsBeforeIdle] => 1
                            [caster_art] => 
                            [long_explain] => Imbues a targeted tower for |cffFFFF805|r seconds, increasing attack dps by |cffFFFF8025|r and causing attack hits to deal |cffFFFF8010%|r of attack damage as additional |cffFF8000Elemental|r splash damage to enemies in |cffFFFF80150|r area of effect. Splash damage does not hit the primary target.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+1|r attack dps|n|cffFFFF80+0.4%|r splash damage|n|cffFFFF80+0.2|r seconds duration
                            [target_art] => 
                            [AUTOCAST_autocastType] => AC_TYPE_ALWAYS_BUFF
                            [AUTOCAST_buffType] => ashbringer_orboffire_buff
                            [AUTOCAST_isExtended] => false
                            [name] => Fiery Weapon
                            [AUTOCAST_targetSelf] => true
                            [short_explain] => Increases the attack dps of a target tower and causes its attacks to deal additional |cffFF8000Elemental|r splash damage on hit.
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => BHfs
                    [oeValues] => Array
                        (
                            [Targetattach] => weapon
                            [EditorName] => Fiery Weapon
                            [Buffubertip] => Attacks deal additional Elemental AOE damage.
                            [TargetArt] => Abilities\Spells\Items\AIfb\AIfbTarget.mdl
                            [Targetattachcount] => 1
                            [Bufftip] => Fiery Weapon
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNEyeOfSulfuras.blp
                        )

                )

        )

    [units] => Array
        (
        )

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

        )

    [lightning] => Array
        (
        )

)