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

            [Art] => ReplaceableTextures\CommandButtons\BTNEvasion.blp
            [turnRate] => 3
            [bldtm] => 1
            [dmgplus1] => 3932
            [goldcost] => 3200
            [unitSound] => Array
                (
                )

            [sides1] => 7
            [manaN] => 175
            [acquire] => 875
            [upgrades] => Array
                (
                )

            [Upgrade] => Array
                (
                )

            [Name] => Mage Slayer
            [weapTp1] => missile
            [file] => units\nightelf\HeroDemonHunter\HeroDemonHunter.mdl
            [MissileHoming] => 1
            [uberSplat] => YTDG
            [Harea1] => 150
            [Missileart] => war3mapImported\GargoyleMissilePink.mdl
            [Missilespeed] => 1300
            [dice1] => 1
            [RngBuff1] => 250
            [regenMana] => 2.25
            [Hfact1] => 0.1
            [modelScale] => 0.6
            [rangeN1] => 875
            [atkType1] => normal
            [cool1] => 1.9
            [Ubertip] => An enemy of magic who speaks its every tongue, who wields the very force he seeks to end.
            [scaleBull] => 0
            [abilList] => Array
                (
                )

            [moveHeight] => 18
            [buildingShadow] => Array
                (
                )

            [targs1] => Array
                (
                )

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

    [settings] => Array
        (
            [balanceTip] => |cffFFFF00+50% |rdmg to magical (|cffFFFF00+4%|r/lvl)|n|cffFFFF0010%|r crit chance (|cffFFFF00+0.5%|r/lvl)|n|cffFFFF00x1.5|r crit damage (|cffFFFF00+x0.07|r/lvl)
            [abil_factor] => 0.55
            [author] => Ashbringer
            [alpha] => 255
            [authorDisplay] => |cffff6600Ashbringer|r
            [element] => arcane
            [rarity] => rare
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => -0.0871471
                    [y] => -0.0564405
                    [z] => -6.4
                    [scale] => 0.9
                    [rot] => 3.26883
                    [file] => Doodads\BlackCitadel\Props\RuneArt\RuneArt1.mdl
                    [red] => 1
                    [green] => 1
                    [blue] => 1
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [1] => Array
                (
                    [x] => -0.146219
                    [y] => -0.0755139
                    [z] => -32
                    [scale] => 2.6
                    [rot] => 3.63029
                    [file] => war3mapImported\GeneralAuraTargetWhite.mdl
                    [red] => 255
                    [green] => 125
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [2] => Array
                (
                    [x] => 17.4074
                    [y] => -0.198564
                    [z] => 0
                    [scale] => 0.12
                    [rot] => 3.14159
                    [file] => war3mapImported\City_ColumnSemiCircle2.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 25
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [3] => Array
                (
                    [x] => -17.7365
                    [y] => 0.667491
                    [z] => 0
                    [scale] => 0.12
                    [rot] => 0
                    [file] => war3mapImported\City_ColumnSemiCircle2.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 25
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [4] => Array
                (
                    [x] => 17.4074
                    [y] => -0.198564
                    [z] => 6.4
                    [scale] => 0.12
                    [rot] => 3.14159
                    [file] => war3mapImported\City_ColumnSemiCircle2.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 25
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [5] => Array
                (
                    [x] => -17.7365
                    [y] => 0.667491
                    [z] => 6.4
                    [scale] => 0.12
                    [rot] => 0
                    [file] => war3mapImported\City_ColumnSemiCircle2.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 25
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [6] => Array
                (
                    [x] => 17.4074
                    [y] => -0.198564
                    [z] => 12.8
                    [scale] => 0.12
                    [rot] => 3.14159
                    [file] => war3mapImported\City_ColumnSemiCircle2.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 25
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [7] => Array
                (
                    [x] => -17.7365
                    [y] => 0.667491
                    [z] => 12.8
                    [scale] => 0.12
                    [rot] => 0
                    [file] => war3mapImported\City_ColumnSemiCircle2.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 25
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [8] => Array
                (
                    [x] => -0.0391842
                    [y] => 0.127582
                    [z] => -12.8
                    [scale] => 1.5
                    [rot] => 1.67552
                    [file] => war3mapImported\GeneralAuraTargetWhite.mdl
                    [red] => 1
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [9] => Array
                (
                    [x] => -0.0484699
                    [y] => 0.23113
                    [z] => 0
                    [scale] => 1.25
                    [rot] => 1.79769
                    [file] => war3mapImported\GeneralAuraTargetWhite.mdl
                    [red] => 255
                    [green] => 125
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [10] => Array
                (
                    [x] => -0.0395099
                    [y] => 0.369834
                    [z] => -6.4
                    [scale] => 1.5
                    [rot] => 1.67552
                    [file] => war3mapImported\GeneralAuraTargetWhite.mdl
                    [red] => 1
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [11] => Array
                (
                    [x] => -0.0472074
                    [y] => 0.153372
                    [z] => -32
                    [scale] => 0.4
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Props\FountainRuined\FountainRuined.mdl
                    [red] => 1
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [12] => Array
                (
                    [x] => 40.2681
                    [y] => -40.6459
                    [z] => -25.6
                    [scale] => 0.42
                    [rot] => 4.71239
                    [file] => Doodads\Ruins\Props\RuinsPillar\RuinsPillar2.mdl
                    [red] => 1
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [13] => Array
                (
                    [x] => 40.0255
                    [y] => 40.6174
                    [z] => -25.6
                    [scale] => 0.42
                    [rot] => 4.71239
                    [file] => Doodads\Ruins\Props\RuinsPillar\RuinsPillar2.mdl
                    [red] => 1
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [14] => Array
                (
                    [x] => -40.2951
                    [y] => 40.2053
                    [z] => -25.6
                    [scale] => 0.42
                    [rot] => 4.71239
                    [file] => Doodads\Ruins\Props\RuinsPillar\RuinsPillar2.mdl
                    [red] => 1
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [15] => Array
                (
                    [x] => -41.0044
                    [y] => -40.4158
                    [z] => -25.6
                    [scale] => 0.42
                    [rot] => 4.71239
                    [file] => Doodads\Ruins\Props\RuinsPillar\RuinsPillar2.mdl
                    [red] => 1
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [16] => Array
                (
                    [x] => -0.505628
                    [y] => -0.421339
                    [z] => 6.4
                    [scale] => 0.6
                    [rot] => 0
                    [file] => Abilities\Spells\Items\AIso\BIsvTarget.mdl
                    [red] => 255
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [17] => Array
                (
                    [x] => -40.8324
                    [y] => -40.0115
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 0.785398
                    [file] => war3mapImported\GlowingRunes5_np.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [18] => Array
                (
                    [x] => 41.3357
                    [y] => 40.6262
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 3.92699
                    [file] => war3mapImported\GlowingRunes5_np.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [19] => Array
                (
                    [x] => 40.6683
                    [y] => -41.0607
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 5.49779
                    [file] => war3mapImported\GlowingRunes4_np.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [20] => Array
                (
                    [x] => -40.4183
                    [y] => 40.7321
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 5.49779
                    [file] => war3mapImported\GlowingRunes4_np.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [21] => Array
                (
                    [x] => -0.505628
                    [y] => -0.421339
                    [z] => 6.4
                    [scale] => 0.6
                    [rot] => 4.18879
                    [file] => Abilities\Spells\Items\AIso\BIsvTarget.mdl
                    [red] => 255
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [22] => Array
                (
                    [x] => -0.00840458
                    [y] => 0.0674035
                    [z] => 6.4
                    [scale] => 0.6
                    [rot] => 2.0944
                    [file] => Abilities\Spells\Items\AIso\BIsvTarget.mdl
                    [red] => 255
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

        )

    [dmgTable] => Array
        (
            [0] => Array
                (
                    [id] => MOD_DMG_TO_MAGIC
                    [base] => 0.5
                    [add] => 0.04
                )

            [1] => Array
                (
                    [id] => MOD_ATK_CRIT_CHANCE
                    [base] => 0.0875
                    [add] => 0.005
                )

            [2] => Array
                (
                    [id] => MOD_ATK_CRIT_DAMAGE
                    [base] => 0.25
                    [add] => 0.07
                )

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Attack
                    [code] => if tower.userInt > 0 then
        call tower.addAttackCrit()
        set tower.userInt = 0
    endif
                    [values] => Array
                        (
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNDaggerOfEscape.blp
                            [name] => Null Blade
                            [short_explain] => Critical hits have a chance to remove a percentage of the target's mana.
                            [ONATTACK_chance] => 1.0
                            [ONATTACK_chanceLevelAdd] => 0.0
                            [long_explain] => Attacks have a |cffFFFF807.5%|r chance on critical hit to remove up to |cffFFFF8012.5%|r of the target's maximum mana. This effect occurs before Magebane.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.3%|r chance|n|cffFFFF80+0.5%|r maximum mana
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals
    endglobals
    
    //@import
    function ashbringer_mage_hunter takes Tower tower, Unit target, real damage, boolean is_crit returns real
        return 0.0
    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] => 
                        )

                )

            [2] => Array
                (
                    [name] => On Damage
                    [code] => set Event.damage = ashbringer_mage_hunter(tower, Event.getTarget(), Event.damage, Event.isAttackDamageCritical())
                    [values] => Array
                        (
                            [ONDAMAGE_chance] => 1.0
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNControlMagic.blp
                            [name] => Magebane
                            [short_explain] => Attacks deal more damage based on how much mana the target is missing. Has no effect against enemies without mana.
                            [ONDAMAGE_chanceLevelAdd] => 0.0
                            [long_explain] => Attacks deal |cffFFFF800.5%|r more damage for every |cffFFFF801%|r of maximum mana the target is missing. Has no effect against enemies without mana.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.02%|r damage per missing mana
                        )

                )

            [3] => Array
                (
                    [name] => Autocast
                    [code] => set tower.userInt = tower.userInt + 1
    set tower.userInt2 = tower.userInt2 + 1
                    [values] => Array
                        (
                            [AUTOCAST_cooldown] => 10
                            [AUTOCAST_autoRange] => 875
                            [AUTOCAST_manacost] => 100
                            [icon] => ReplaceableTextures\CommandButtons\BTNAmbush.blp
                            [AUTOCAST_range] => 875
                            [AUTOCAST_targetType] => 0
                            [AUTOCAST_numBuffsBeforeIdle] => 0
                            [caster_art] => Abilities\Spells\Items\AIil\AIilTarget.mdl
                            [long_explain] => Causes the tower's next attack to be a critical hit and trigger Null Blade with |cffFFFF80150%|r increased effectiveness.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+6%|r Null Blade effect
                            [target_art] => 
                            [AUTOCAST_autocastType] => AC_TYPE_OFFENSIVE_IMMEDIATE
                            [AUTOCAST_buffType] => 0
                            [AUTOCAST_isExtended] => false
                            [name] => The Hunt
                            [AUTOCAST_targetSelf] => false
                            [short_explain] => The tower's next attack will be a critical hit and will trigger Null Blade with greatly increased effect.
                        )

                )

            [4] => Array
                (
                    [name] => On Tower Creation
                    [code] => call SetUnitColor(tower.getUnit(), ConvertPlayerColor(7))
    set tower.userInt = 0
    set tower.userInt2 = 0
    call AddUnitAnimationProperties(tower.getUnit(), "alternate", false)
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

    [lightning] => Array
        (
        )

)