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

            [Art] => ReplaceableTextures\CommandButtons\BTNDevourMagic.blp
            [turnRate] => 3
            [dmgplus1] => 1332
            [bldtm] => 1
            [goldcost] => 2850
            [unitSound] => ObsidianDestroyer
            [sides1] => 1
            [Missilearc] => 0.1
            [manaN] => 200
            [acquire] => 950
            [upgrades] => Array
                (
                )

            [Upgrade] => Array
                (
                )

            [Name] => Gluttonous Manafiend
            [red] => 75
            [weapTp1] => missile
            [impactZ] => 60
            [file] => units\creeps\VoidWalker\VoidWalker.mdl
            [MissileHoming] => 1
            [uberSplat] => YTDG
            [Missilespeed] => 1200
            [Missileart] => Abilities\Weapons\VoidWalkerMissile\VoidWalkerMissile.mdl
            [dice1] => 1
            [RngBuff1] => 250
            [green] => 155
            [modelScale] => 0.7
            [rangeN1] => 950
            [propWin] => 10
            [atkType1] => normal
            [cool1] => 1
            [Ubertip] => It has an insatiable hunger for magic.
            [scaleBull] => 0
            [abilList] => @@0@@
            [customTeamColor] => 1
            [buildingShadow] => Array
                (
                )

            [targs1] => Array
                (
                )

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

    [settings] => Array
        (
            [balanceTip] => |cffFFFF00+12.5% |rdmg to magical (|cffFFFF00+0.5%|r/lvl)
            [abil_factor] => 0.5
            [author] => Ashbringer
            [alpha] => 255
            [authorDisplay] => |cffff6600Ashbringer|r
            [version] => 1.0
            [element] => arcane
            [rarity] => uncommon
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => -0.324057
                    [y] => 23.429
                    [z] => 83.2
                    [scale] => 2.35
                    [rot] => 4.71239
                    [file] => Abilities\Spells\NightElf\SpiritOfVengeance\SpiritOfVengeanceOrbs1.mdl
                    [red] => 255
                    [green] => 55
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -2.5
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [1] => Array
                (
                    [x] => 24.2091
                    [y] => 1.04557
                    [z] => 89.6
                    [scale] => 2.25
                    [rot] => 3.14159
                    [file] => Abilities\Spells\NightElf\SpiritOfVengeance\SpiritOfVengeanceOrbs1.mdl
                    [red] => 255
                    [green] => 55
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -2.5
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [2] => Array
                (
                    [x] => -0.19985
                    [y] => 0.00353365
                    [z] => 51.2
                    [scale] => 2.6
                    [rot] => 1.06465
                    [file] => Abilities\Spells\NightElf\SpiritOfVengeance\SpiritOfVengeanceOrbs1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -0.5
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [3] => Array
                (
                    [x] => 0.104312
                    [y] => 0.0566542
                    [z] => 76.8
                    [scale] => 1.9
                    [rot] => 0.139626
                    [file] => Abilities\Weapons\DruidoftheTalonMissile\DruidoftheTalonMissile.mdl
                    [red] => 255
                    [green] => 55
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1.57
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [4] => Array
                (
                    [x] => 0.355946
                    [y] => 15.4412
                    [z] => -19.2
                    [scale] => 0.11
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 155
                    [green] => 55
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [5] => Array
                (
                    [x] => -0.393189
                    [y] => -15.5379
                    [z] => -19.2
                    [scale] => 0.11
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 155
                    [green] => 55
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [6] => Array
                (
                    [x] => -0.0479101
                    [y] => 0.496255
                    [z] => 0
                    [scale] => 0.7
                    [rot] => 4.32042
                    [file] => buildings\other\CircleOfPower\CircleOfPower.mdl
                    [red] => 155
                    [green] => 55
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [7] => Array
                (
                    [x] => -0.0676702
                    [y] => 0.289265
                    [z] => 19.2
                    [scale] => 1.1
                    [rot] => 4.71239
                    [file] => Abilities\Weapons\FarseerMissile\FarseerMissile.mdl
                    [red] => 255
                    [green] => 115
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [8] => Array
                (
                    [x] => -45.4718
                    [y] => -47.2976
                    [z] => 32
                    [scale] => 0.550002
                    [rot] => 4.75318
                    [file] => Abilities\Weapons\SpiritOfVengeanceMissile\SpiritOfVengeanceMissile.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [9] => Array
                (
                    [x] => 44.7064
                    [y] => -44.5158
                    [z] => 32
                    [scale] => 0.550002
                    [rot] => 4.75318
                    [file] => Abilities\Weapons\SpiritOfVengeanceMissile\SpiritOfVengeanceMissile.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [10] => Array
                (
                    [x] => 17.0055
                    [y] => 16.6936
                    [z] => 25.6
                    [scale] => 0.2
                    [rot] => 0.785398
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 55
                    [green] => 55
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -2.15
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [11] => Array
                (
                    [x] => 15.2001
                    [y] => -15.012
                    [z] => 25.6
                    [scale] => 0.2
                    [rot] => 5.49779
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 55
                    [green] => 55
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -2.15
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [12] => Array
                (
                    [x] => -15.087
                    [y] => -17.3142
                    [z] => 25.6
                    [scale] => 0.2
                    [rot] => 3.92699
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 55
                    [green] => 55
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -2.15
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [13] => Array
                (
                    [x] => -16.0472
                    [y] => 15.639
                    [z] => 25.6
                    [scale] => 0.2
                    [rot] => 2.3562
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 55
                    [green] => 55
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -2.15
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [14] => Array
                (
                    [x] => -31.0933
                    [y] => 0.077055
                    [z] => 0
                    [scale] => 0.22
                    [rot] => 0
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 55
                    [green] => 55
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [15] => Array
                (
                    [x] => -45.6052
                    [y] => -47.0457
                    [z] => 0.000000953674
                    [scale] => 0.15
                    [rot] => 0.785398
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 55
                    [green] => 55
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [16] => Array
                (
                    [x] => 46.6646
                    [y] => 46.675
                    [z] => 0.000000953674
                    [scale] => 0.15
                    [rot] => 0.785398
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 55
                    [green] => 55
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [17] => Array
                (
                    [x] => -30.877
                    [y] => -0.189995
                    [z] => 19.2
                    [scale] => 0.14
                    [rot] => 3.14159
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 55
                    [green] => 55
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -2.15
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [18] => Array
                (
                    [x] => 46.8799
                    [y] => 45.3463
                    [z] => 32
                    [scale] => 0.550002
                    [rot] => 4.75318
                    [file] => Abilities\Weapons\SpiritOfVengeanceMissile\SpiritOfVengeanceMissile.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [19] => Array
                (
                    [x] => -46.3663
                    [y] => 45.8596
                    [z] => 32
                    [scale] => 0.550002
                    [rot] => 4.75318
                    [file] => Abilities\Weapons\SpiritOfVengeanceMissile\SpiritOfVengeanceMissile.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [20] => Array
                (
                    [x] => -1.03582
                    [y] => 29.5506
                    [z] => 0
                    [scale] => 1
                    [rot] => 4.67183
                    [file] => Abilities\Spells\Orc\Purge\PurgeBuffTarget.mdl
                    [red] => 1
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [21] => Array
                (
                    [x] => 44.4428
                    [y] => -45.1081
                    [z] => 0.000000953674
                    [scale] => 0.15
                    [rot] => 0.785398
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 55
                    [green] => 55
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [22] => Array
                (
                    [x] => -46.1417
                    [y] => 45.7796
                    [z] => 0.000000953674
                    [scale] => 0.15
                    [rot] => 0.785398
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 55
                    [green] => 55
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [23] => Array
                (
                    [x] => -0.166875
                    [y] => -30.8057
                    [z] => 0
                    [scale] => 0.22
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 55
                    [green] => 55
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [24] => Array
                (
                    [x] => 0.100175
                    [y] => -30.5894
                    [z] => 19.2
                    [scale] => 0.14
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 55
                    [green] => 55
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -2.15
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [25] => Array
                (
                    [x] => 31.1292
                    [y] => -0.21868
                    [z] => 0
                    [scale] => 0.22
                    [rot] => 3.14159
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 55
                    [green] => 55
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [26] => Array
                (
                    [x] => 30.9129
                    [y] => 0.0483709
                    [z] => 19.2
                    [scale] => 0.14
                    [rot] => 0.000000238419
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 55
                    [green] => 55
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -2.15
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [27] => Array
                (
                    [x] => 0.265865
                    [y] => 31.2797
                    [z] => 0
                    [scale] => 0.22
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 55
                    [green] => 55
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [28] => Array
                (
                    [x] => -0.00118499
                    [y] => 31.0634
                    [z] => 19.2
                    [scale] => 0.14
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 55
                    [green] => 55
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -2.15
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

        )

    [dmgTable] => Array
        (
            [0] => Array
                (
                    [id] => MOD_DMG_TO_MAGIC
                    [base] => 0.125
                    [add] => 0.005
                )

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => Header
                    [code] => globals
    endglobals
    
    //@import
    function ashbringer_devour_magic takes Tower tower, integer max, real mana_base, real mana_per_level returns nothing
    endfunction
    
    //Do not remove or rename this function!
    //Put your initialization tasks here, this function will be called on map init
    private function init takes nothing returns nothing
    endfunction
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [1] => Array
                (
                    [name] => On Damage
                    [code] => local real mana = GetUnitState(tower.getUnit(), UNIT_STATE_MANA)
    
    if mana > 0 then
        set Event.damage = Event.damage * (1 + (mana * (0.01 + (tower.getLevel() * 0.0004))))
        call tower.subtractMana(mana * 0.1, true)
    endif
                    [values] => Array
                        (
                            [ONDAMAGE_chance] => 1.0
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNUnsummonBuilding.blp
                            [name] => Primordial Feast
                            [short_explain] => Attacks drain mana to deal additional damage.
                            [ONDAMAGE_chanceLevelAdd] => 0
                            [long_explain] => Attacks deal |cffFFFF80[current mana x 1%]|r more damage but each attack removes |cffFFFF8010%|r of current mana.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.04%|r damage per mana
                        )

                )

            [2] => Array
                (
                    [name] => Autocast
                    [code] => call ashbringer_devour_magic(tower, 5, 10, 0.2)
                    [values] => Array
                        (
                            [AUTOCAST_cooldown] => 7
                            [AUTOCAST_autoRange] => 950
                            [AUTOCAST_manacost] => 0
                            [icon] => ReplaceableTextures\CommandButtons\BTNDevourMagic.blp
                            [AUTOCAST_range] => 950
                            [AUTOCAST_targetType] => 0
                            [AUTOCAST_numBuffsBeforeIdle] => 0
                            [caster_art] => Abilities\Spells\Undead\DeathPact\DeathPactTarget.mdl
                            [long_explain] => Consumes a buff from each of |cffFFFF805|r random nearby towers within |cffFFFF80300|r range. Gains |cffFFFF8010|r mana per buff consumed, increased by mana regeneration stat.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.2|r mana per buff
                            [target_art] => 
                            [AUTOCAST_autocastType] => AC_TYPE_OFFENSIVE_IMMEDIATE
                            [AUTOCAST_buffType] => 0
                            [AUTOCAST_isExtended] => false
                            [name] => Devour Magic
                            [AUTOCAST_targetSelf] => false
                            [short_explain] => Consumes buffs on nearby towers to gain mana.
                        )

                )

            [3] => Array
                (
                    [name] => On Tower Creation
                    [code] => call SetUnitColor(tower.getUnit(), ConvertPlayerColor(7))
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

        )

    [abilities] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => Asph
                    [oeValues] => Array
                        (
                            [Targetattach] => hand,left
                            [Art] => Array
                                (
                                )

                            [Targetattach1] => hand,right
                            [Targetattach2] => Array
                                (
                                )

                            [TargetArt] => Abilities\Spells\Undead\AbsorbMana\AbsorbManaBirthMissile.mdl
                            [Missilearc] => 0.1
                            [Targetattachcount] => 2
                            [Missilespeed] => 1200
                            [Missileart] => Abilities\Weapons\VoidWalkerMissile\VoidWalkerMissile.mdl
                            [Unubertip] => -HIDE-
                            [Cool1] => 0.01
                        )

                )

        )

    [buffs] => Array
        (
        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

    [lightning] => Array
        (
        )

)