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

            [Art] => ReplaceableTextures\CommandButtons\BTNManaFlare.blp
            [dmgplus1] => 0
            [bldtm] => 1
            [goldcost] => 1500
            [sides1] => 1
            [manaN] => 100
            [acquire] => 900
            [upgrades] => Array
                (
                )

            [Upgrade] => Array
                (
                )

            [Name] => Magician's Coil
            [weapTp1] => missile
            [MissileHoming] => 1
            [file] => .mdl
            [uberSplat] => YTDG
            [Missilespeed] => 4000
            [dice1] => 1
            [RngBuff1] => 250
            [regenMana] => 3
            [modelScale] => 0.1
            [rangeN1] => 900
            [atkType1] => magic
            [cool1] => 2
            [Ubertip] => A marvel of arcane engineering! It hums, it glows, and occasionally turns interns into burnt ash.
            [abilList] => Array
                (
                )

            [buildingShadow] => Array
                (
                )

            [targs1] => Array
                (
                )

            [weapsOn] => 1
        )

    [settings] => Array
        (
            [balanceTip] => |cffFFFF0010%|r spell crit chance (|cffFFFF00+0.4%|r/lvl)|n|cffFFFF00+1.5% |rattackspeed/lvl
            [abil_factor] => 0.0
            [author] => Moppy
            [alpha] => 255
            [authorDisplay] => |c006969FFMoppy|r
            [version] => 1.0
            [element] => arcane
            [rarity] => rare
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => -0.442704
                    [y] => -2.07675
                    [z] => 89.6
                    [scale] => 1
                    [rot] => 0.925025
                    [file] => Abilities\Spells\Items\AIta\CrystalBallCaster.mdl
                    [red] => 1
                    [green] => 75
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [1] => Array
                (
                    [x] => 19.8913
                    [y] => 0.0944672
                    [z] => -12.8
                    [scale] => 0.375
                    [rot] => 3.14159
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 40
                    [green] => 40
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -0.2
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [2] => Array
                (
                    [x] => -0.572849
                    [y] => -18.9348
                    [z] => -12.8
                    [scale] => 0.375
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 40
                    [green] => 40
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -0.2
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [3] => Array
                (
                    [x] => 0.319042
                    [y] => 20.6046
                    [z] => -12.8
                    [scale] => 0.375
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 40
                    [green] => 40
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -0.2
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [4] => Array
                (
                    [x] => -20.2828
                    [y] => 1.26314
                    [z] => -12.8
                    [scale] => 0.375
                    [rot] => 0
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 40
                    [green] => 40
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -0.2
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [5] => Array
                (
                    [x] => 14.1034
                    [y] => 14.353
                    [z] => -12.8
                    [scale] => 0.375
                    [rot] => 3.92699
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 40
                    [green] => 40
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -0.2
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [6] => Array
                (
                    [x] => 13.5045
                    [y] => -12.7931
                    [z] => -12.8
                    [scale] => 0.375
                    [rot] => 2.3562
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 40
                    [green] => 40
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -0.2
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [7] => Array
                (
                    [x] => -13.9856
                    [y] => 15.4542
                    [z] => -12.8
                    [scale] => 0.375
                    [rot] => 5.49779
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 40
                    [green] => 40
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -0.2
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [8] => Array
                (
                    [x] => -14.3986
                    [y] => -12.7907
                    [z] => -12.8
                    [scale] => 0.375
                    [rot] => 0.785398
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 40
                    [green] => 40
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -0.2
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [9] => Array
                (
                    [x] => 0.0264282
                    [y] => 8.86159
                    [z] => 76.8
                    [scale] => 0.06
                    [rot] => 4.71239
                    [file] => war3mapImported\City_ColumnSemiCircle2.mdl
                    [red] => 75
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [10] => Array
                (
                    [x] => -0.327835
                    [y] => -8.72027
                    [z] => 76.8
                    [scale] => 0.06
                    [rot] => 1.5708
                    [file] => war3mapImported\City_ColumnSemiCircle2.mdl
                    [red] => 75
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [11] => Array
                (
                    [x] => -0.368942
                    [y] => 11.7267
                    [z] => 51.2
                    [scale] => 0.08
                    [rot] => 4.71239
                    [file] => war3mapImported\City_ColumnSemiCircle2.mdl
                    [red] => 75
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [12] => Array
                (
                    [x] => -0.933899
                    [y] => -11.4231
                    [z] => 51.2
                    [scale] => 0.08
                    [rot] => 1.5708
                    [file] => war3mapImported\City_ColumnSemiCircle2.mdl
                    [red] => 75
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [13] => Array
                (
                    [x] => 0.53653
                    [y] => 13.9769
                    [z] => 25.6
                    [scale] => 0.1
                    [rot] => 4.71239
                    [file] => war3mapImported\City_ColumnSemiCircle2.mdl
                    [red] => 75
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [14] => Array
                (
                    [x] => -0.0925293
                    [y] => -14.963
                    [z] => 25.6
                    [scale] => 0.1
                    [rot] => 1.5708
                    [file] => war3mapImported\City_ColumnSemiCircle2.mdl
                    [red] => 75
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [15] => Array
                (
                    [x] => -1.784
                    [y] => -2.01514
                    [z] => -32
                    [scale] => 0.75
                    [rot] => 1.5708
                    [file] => Abilities\Spells\Orc\LightningShield\LightningShieldTarget.mdl
                    [red] => 25
                    [green] => 150
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [16] => Array
                (
                    [x] => -1.46979
                    [y] => -3.83667
                    [z] => 32
                    [scale] => 0.5
                    [rot] => 1.5708
                    [file] => Abilities\Spells\Orc\LightningShield\LightningShieldTarget.mdl
                    [red] => 25
                    [green] => 150
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [17] => Array
                (
                    [x] => -0.799622
                    [y] => -1.52116
                    [z] => 70.4
                    [scale] => 0.625
                    [rot] => 1.5708
                    [file] => Abilities\Spells\Orc\LightningShield\LightningShieldTarget.mdl
                    [red] => 25
                    [green] => 150
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -3.17
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

        )

    [dmgTable] => Array
        (
            [0] => Array
                (
                    [id] => MOD_SPELL_CRIT_CHANCE
                    [base] => 0.0875
                    [add] => 0.004
                )

            [1] => Array
                (
                    [id] => MOD_ATTACKSPEED
                    [base] => 0
                    [add] => 0.015
                )

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Attack
                    [code] => local Unit target = Event.getTarget()
    local integer count = 3
    local Iterate i
    local Unit next
    
    set i = Iterate.overUnitsInRangeOfCaster(tower, TARGET_TYPE_CREEPS, 900)
    loop
        set next = i.nextRandom()
        exitwhen count == 0 or next == 0
        if next.isBanished() then
            set count = count - 1
            call Lightning.createFromPointToUnit("ZAP8", tower.getX(), tower.getY(), 110.0, next).setLifetime(0.2)
            call Effect.createSimpleAtUnit("Abilities\\Weapons\\FarseerMissile\\FarseerMissile.mdl", next).setLifetime(0.2)
            call tower.doSpellDamage(next, 700 + (tower.getLevel() * 14), tower.calcSpellCritNoBonus())
        endif
    endloop
    if next != 0 then
        call i.destroy()
    endif
    
    if count > 0 then
        set i = Iterate.overUnitsInRangeOfCaster(tower, TARGET_TYPE_CREEPS, 900)
        loop
            set next = i.nextRandom()
            exitwhen count == 0 or next == 0
            if not next.isBanished() and not next.isImmune() then
                set count = count - 1
                call Lightning.createFromPointToUnit("ZAP8", tower.getX(), tower.getY(), 110.0, next).setLifetime(0.2)
                call Effect.createSimpleAtUnit("Abilities\\Weapons\\FarseerMissile\\FarseerMissile.mdl", next).setLifetime(0.2)
                call tower.doSpellDamage(next, 700 + (tower.getLevel() * 14), tower.calcSpellCritNoBonus())
            endif
        endloop
        if next != 0 then
            call i.destroy()
        endif
    endif
                    [values] => Array
                        (
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNManaFlare.blp
                            [name] => Indigo Zap
                            [short_explain] => Deals spell damage to multiple enemies on attack, prioritizing banished enemies.
                            [ONATTACK_chance] => 1.0
                            [ONATTACK_chanceLevelAdd] => 0.0
                            [long_explain] => Deals |cffFFFF80700|r spell damage to up to |cffFFFF803|r random enemies on attack, prioritizing banished enemies.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+14|r spell damage
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals
    endglobals
    
    //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] => Autocast
                    [code] => local Unit u = Event.getTarget()
    local Iterate i = Iterate.overUnitsInRangeOfUnit(tower, TARGET_CREEPS, u, 400.00)
    local integer count = 0
    local integer maxTargets = 3

    if tower.getLevel() >= 25 then
        set maxTargets = 5
    elseif tower.getLevel() >= 15 then
        set maxTargets = 4
    endif

    loop
        set u = i.next()
        exitwhen u == 0 or count >= maxTargets

        if u.getSize() == SIZE_BOSS then
            call cb_banish.applyOnlyTimed(tower, u, 1.0)
            call cb_stun.applyOnlyTimed(tower, u, 1.0)
        else
            call cb_banish.applyOnlyTimed(tower, u, 3.0)
            call cb_stun.applyOnlyTimed(tower, u, 3.0)
        endif

        set count = count + 1
    endloop
    
    if u != 0 then
        call i.destroy()
    endif
                    [values] => Array
                        (
                            [AUTOCAST_cooldown] => 6
                            [AUTOCAST_autoRange] => 900
                            [AUTOCAST_manacost] => 75
                            [icon] => ReplaceableTextures\CommandButtons\BTNBanish.blp
                            [AUTOCAST_range] => 900
                            [AUTOCAST_targetType] => TARGET_TYPE_CREEPS
                            [AUTOCAST_numBuffsBeforeIdle] => 0
                            [caster_art] => Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
                            [long_explain] => Banishes up to |cffFFFF803|r enemies in |cffFFFF80400|r range around the target and locks them in place for |cffFFFF803|r seconds. Banished enemies cannot be attacked by non-Magic attacks, but take |cffFFFF8040%|r increased damage from Magic attacks and spells.|n|nLasts only |cffFFFF801|r second against bosses.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+1|r target at level |cffFFFF8015|r and |cffFFFF8025|r
                            [target_art] => 
                            [AUTOCAST_autocastType] => AC_TYPE_OFFENSIVE_UNIT
                            [AUTOCAST_buffType] => 0
                            [AUTOCAST_isExtended] => false
                            [name] => Greater Banishment
                            [AUTOCAST_targetSelf] => false
                            [short_explain] => Banishes enemies in range around the target and locks them in place. Has a shorter duration against bosses.
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

    [lightning] => Array
        (
        )

)