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
            [Missileart] => Abilities\Weapons\Bolt\BoltImpact.mdl
            [dice1] => 1
            [RngBuff1] => 250
            [regenMana] => 5
            [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.0264328
                    [y] => 8.86159
                    [z] => 44.8
                    [scale] => 0.06
                    [rot] => 4.71239
                    [file] => war3mapImported\City_ColumnSemiCircle_NoColumn.mdl
                    [red] => 75
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

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

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

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

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

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

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

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

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

            [14] => Array
                (
                    [x] => -0.0925352
                    [y] => -14.963
                    [z] => -19.2
                    [scale] => 0.1
                    [rot] => 1.5708
                    [file] => war3mapImported\City_ColumnSemiCircle_NoColumn.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 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 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 creeps on attack, prioritizing banished creeps.
                            [ONATTACK_chance] => 1.0
                            [ONATTACK_chanceLevelAdd] => 0.0
                            [long_explain] => Deals |cffFFFF80700|r spell damage to up to |cffFFFF803|r random creeps on attack, prioritizing banished creeps.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+14|r spell damage
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals
        //@export
        BuffType MoppyBanish
    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, 200.00)
    loop
        set u = i.next()
        exitwhen u == 0
        call cb_banish.applyOnlyTimed(tower, u, 3.00 + tower.getLevel() * 0.06)
        call cb_stun.applyOnlyTimed(tower, u, 3.00 + tower.getLevel() * 0.06)
    endloop
                    [values] => Array
                        (
                            [AUTOCAST_cooldown] => 5
                            [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\Items\AIre\AIreTarget.mdl
                            [long_explain] => Banishes creeps in |cffFFFF80200|r AoE around the target and locks them in place for |cffFFFF803|r seconds. Banished creeps cannot be attacked by non-Magic attacks, but take |cffFFFF8040%|r increased damage from Magic attacks and spells.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.06|r seconds duration
                            [target_art] => 
                            [AUTOCAST_autocastType] => AC_TYPE_OFFENSIVE_UNIT
                            [AUTOCAST_buffType] => 0
                            [AUTOCAST_isExtended] => false
                            [name] => Greater Banishment
                            [AUTOCAST_targetSelf] => false
                            [short_explain] => Banishes creeps in an AoE around the target and locks them in place.
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
        )

    [units] => Array
        (
        )

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

        )

    [lightning] => Array
        (
        )

)