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

            [Art] => ReplaceableTextures\CommandButtons\BTNAzureDragon.blp
            [turnRate] => 3
            [dmgplus1] => 1360
            [bldtm] => 1
            [goldcost] => 2700
            [sides1] => 1001
            [acquire] => 800
            [upgrades] => Array
                (
                )

            [Upgrade] => Array
                (
                )

            [Name] => Nexus Drake
            [weapTp1] => missile
            [MissileHoming] => 1
            [file] => units\creeps\AzureDragon\AzureDragon.mdl
            [uberSplat] => YTDN
            [Missilespeed] => 1500
            [Missileart] => war3mapImported\ImmolationBlueDamage.mdl
            [dice1] => 1
            [RngBuff1] => 250
            [modelScale] => 0.5
            [rangeN1] => 800
            [atkType1] => pierce
            [cool1] => 2
            [Ubertip] => Guardians of the Nexus, these blue drakes wield frost magic to devastate their foes.
            [abilList] => Array
                (
                )

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

            [targs1] => Array
                (
                )

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

    [settings] => Array
        (
            [balanceTip] => Array
                (
                )

            [abil_factor] => 0.25
            [author] => Moppy
            [alpha] => 255
            [authorDisplay] => |c006969FFMoppy|r
            [version] => 1.0
            [element] => ice
            [rarity] => unique
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => 0.736733
                    [y] => 20.9996
                    [z] => 0.000000953674
                    [scale] => 0.15
                    [rot] => 4.71239
                    [file] => war3mapImported\City_ColumnSemiCircle2.mdl
                    [red] => 35
                    [green] => 50
                    [blue] => 80
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [1] => Array
                (
                    [x] => -0.347862
                    [y] => -21.3514
                    [z] => 0.000000953674
                    [scale] => 0.15
                    [rot] => 1.5708
                    [file] => war3mapImported\City_ColumnSemiCircle2.mdl
                    [red] => 35
                    [green] => 50
                    [blue] => 80
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [2] => Array
                (
                    [x] => 32.4967
                    [y] => 37.4938
                    [z] => -6.4
                    [scale] => 1.05
                    [rot] => 3.92699
                    [file] => war3mapImported\Mirror.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1.57
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [3] => Array
                (
                    [x] => 0.087265
                    [y] => 0.072585
                    [z] => 0.000000953674
                    [scale] => 0.4
                    [rot] => 4.71239
                    [file] => war3mapImported\BlessingAura.mdl
                    [red] => 1
                    [green] => 255
                    [blue] => 150
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [4] => Array
                (
                    [x] => -0.143825
                    [y] => -10.5169
                    [z] => 6.4
                    [scale] => 0.075
                    [rot] => 1.5708
                    [file] => war3mapImported\City_ColumnSemiCircle2.mdl
                    [red] => 35
                    [green] => 50
                    [blue] => 80
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [5] => Array
                (
                    [x] => 0.368054
                    [y] => 10.6387
                    [z] => 6.4
                    [scale] => 0.075
                    [rot] => 4.71239
                    [file] => war3mapImported\City_ColumnSemiCircle2.mdl
                    [red] => 35
                    [green] => 50
                    [blue] => 80
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [6] => Array
                (
                    [x] => 15.4962
                    [y] => 17.7424
                    [z] => 0.000000953674
                    [scale] => 0.5
                    [rot] => 3.92699
                    [file] => war3mapImported\Mirror.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1.57
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [7] => Array
                (
                    [x] => -29.2652
                    [y] => -32.5492
                    [z] => -38.4
                    [scale] => 0.3
                    [rot] => 4.71239
                    [file] => Doodads\Northrend\Rocks\North_IceClaw\North_IceClaw8.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [8] => Array
                (
                    [x] => -39.3223
                    [y] => -31.5043
                    [z] => -38.4
                    [scale] => 0.3
                    [rot] => 0.872665
                    [file] => Doodads\Northrend\Rocks\North_IceClaw\North_IceClaw8.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [9] => Array
                (
                    [x] => -8.59325
                    [y] => 36.5682
                    [z] => 0
                    [scale] => 0.25
                    [rot] => 3.24021
                    [file] => Doodads\Icecrown\Rocks\Icecrown_Crystal\Icecrown_Crystal1.mdl
                    [red] => 1
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [10] => Array
                (
                    [x] => -8.27402
                    [y] => 4.34489
                    [z] => -38.4
                    [scale] => 0.3
                    [rot] => 5.84756
                    [file] => Doodads\Felwood\Rocks\Felwood_Spires\Felwood_Spires1.mdl
                    [red] => 60
                    [green] => 60
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [11] => Array
                (
                    [x] => 20.9975
                    [y] => 22.0493
                    [z] => -19.2
                    [scale] => 0.2
                    [rot] => 0.897263
                    [file] => Doodads\Ruins\Rocks\Ruins_Spires\Ruins_Spires7.mdl
                    [red] => 50
                    [green] => 50
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [12] => Array
                (
                    [x] => -20.7363
                    [y] => -44.6259
                    [z] => -6.4
                    [scale] => 0.25
                    [rot] => 1.67539
                    [file] => Doodads\Barrens\Rocks\Barrens_Rocks\Barrens_Rocks2.mdl
                    [red] => 255
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [13] => Array
                (
                    [x] => -40.8999
                    [y] => -29.5824
                    [z] => -6.4
                    [scale] => 0.3125
                    [rot] => 0.462861
                    [file] => Doodads\Barrens\Rocks\Barrens_Rocks\Barrens_Rocks2.mdl
                    [red] => 255
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [14] => Array
                (
                    [x] => 43.0193
                    [y] => -13.1743
                    [z] => -38.4
                    [scale] => 0.3
                    [rot] => 0.872665
                    [file] => Doodads\Northrend\Rocks\North_IceClaw\North_IceClaw8.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [15] => Array
                (
                    [x] => -35.5915
                    [y] => 16.8796
                    [z] => -6.4
                    [scale] => 0.25
                    [rot] => 5.969
                    [file] => Doodads\Icecrown\Rocks\Icecrown_Crystal\Icecrown_Crystal6.mdl
                    [red] => 1
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [16] => Array
                (
                    [x] => 29.2652
                    [y] => 22.0378
                    [z] => 0
                    [scale] => 0.25
                    [rot] => 4.10085
                    [file] => Doodads\Icecrown\Rocks\Icecrown_Crystal\Icecrown_Crystal6.mdl
                    [red] => 1
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [17] => Array
                (
                    [x] => 35.4577
                    [y] => -23.5355
                    [z] => -38.4
                    [scale] => 0.3
                    [rot] => 0.244436
                    [file] => Doodads\Northrend\Rocks\North_IceClaw\North_IceClaw8.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [18] => Array
                (
                    [x] => 37.7442
                    [y] => -32.5968
                    [z] => -6.4
                    [scale] => 0.3125
                    [rot] => 4.22556
                    [file] => Doodads\Barrens\Rocks\Barrens_Rocks\Barrens_Rocks2.mdl
                    [red] => 255
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

        )

    [dmgTable] => Array
        (
        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Attack
                    [code] => local integer UID = tower.getUID()
    local Unit c = Event.getTarget()
        call SFXAtUnit("Abilities\\Spells\\NightElf\\ManaBurn\\ManaBurnTarget.mdl", c.getUnit())
        call Projectile.createFromUnitToUnit(moppy_nexus_frostmark_shot, tower, 1, 0, tower, c, true, false, false)
        set tower.userInt = tower.userInt + 1
        call tower.refreshAuras()
        call TriggerSleepAction(6.0 * tower.getProp_BuffDuration())
            if tower.getUID() == UID then
            set tower.userInt = tower.userInt - 1
            call tower.refreshAuras()
        endif
                    [values] => Array
                        (
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNFrostRing.blp
                            [name] => Nexus Frostmark
                            [short_explain] => Chance on attack to slow enemies in range around the target and amplify damage they take from |cFF00FFFFIce|r towers while also boosting the bonuses granted by 'Nexus Resonance'.
                            [ONATTACK_chance] => 0.06
                            [ONATTACK_chanceLevelAdd] => 0.001
                            [long_explain] => The Nexus Drake has a |cffFFFF806%|r chance on attack to inflict a Nexus Frostmark on all enemies in |cffFFFF80200|r range around the target, slowing them by |cffFFFF8015%|r and increasing damage they take from |cFF00FFFFIce|r towers by |cffFFFF8010%|r for |cffFFFF806|r seconds. Additionally, the multiplier for bonuses granted by 'Nexus Resonance' is increased by |cffFFFF801|r for the same duration.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.1%|r chance|n|cffFFFF80+0.6%|r slow|n|cffFFFF80+0.4%|r damage taken
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals
    BuffType moppy_nexus_resonance_aura    
    BuffType moppy_nexus_frostmark_debuff
    ProjectileType moppy_nexus_frostmark_shot
    endglobals
    
    private function moppy_nexus_resonance_aura_refresh takes Buff b returns nothing
        local Tower tower = b.getCaster()
        call b.setPower((100 + 2 * tower.getLevel()) * tower.userInt)
    endfunction
    
    function moppy_nexus_frostmark_throw takes Projectile p, Unit target returns nothing
        local Tower tower = p.getCaster()
        local Iterate i = Iterate.overUnitsInRangeOfUnit(tower, TARGET_TYPE_CREEPS, target, 200)
            loop
                set target = i.next()
                exitwhen target == 0
                call moppy_nexus_frostmark_debuff.applyCustomTimed(tower, target, tower.getLevel(), 6.0)
            endloop
    endfunction    
    
    //Do not remove or rename this function!
    //Put your initialization tasks here, this function will be called on map init
    private function init takes nothing returns nothing
        local Modifier a = Modifier.create()
        local Modifier v = Modifier.create()
        
        set moppy_nexus_resonance_aura = BuffType.createAuraEffectType(true)
        call a.addModification(MOD_SPELL_CRIT_CHANCE, 0.0, 0.0003)
        call a.addModification(MOD_SPELL_CRIT_DAMAGE, 0.0, 0.0015)
        call a.addModification(MOD_TRIGGER_CHANCES, 0.0, 0.001)
        call a.addModification(MOD_SPELL_DAMAGE_DEALT, 0.0, 0.001)
        call moppy_nexus_resonance_aura.setBuffModifier(a)
        call moppy_nexus_resonance_aura.setEventOnRefresh(moppy_nexus_resonance_aura_refresh)
        call moppy_nexus_resonance_aura.setBuffIcon('@@0@@')
        
        set moppy_nexus_frostmark_debuff = BuffType.create(0.0, 0.0, false)
        call v.addModification(MOD_MOVESPEED, -0.15, -0.006)
        call v.addModification(MOD_DMG_FROM_ICE, 0.10, 0.004)
        call moppy_nexus_frostmark_debuff.setBuffModifier(v)
        call moppy_nexus_frostmark_debuff.setBuffIcon('@@1@@')
        set moppy_nexus_frostmark_shot = ProjectileType.create(".mdl", 50, 5000)
        call moppy_nexus_frostmark_shot.enableHoming(moppy_nexus_frostmark_throw, 0.0)
	endfunction
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [2] => Array
                (
                    [name] => Tower Aura
                    [code] => Array
                        (
                        )

                    [values] => Array
                        (
                            [AURA_powerAdd] => 2
                            [visible] => true
                            [AURA_auraEffect] => moppy_nexus_resonance_aura
                            [AURA_levelAdd] => 1
                            [AURA_power] => 100
                            [icon] => ReplaceableTextures\CommandButtons\BTNRingOfFrost.blp
                            [AURA_targetType] => TARGET_TYPE_TOWERS
                            [long_explain] => Resonating with the ley lines of Coldarra, the Nexus Drake intensifies the magical energies of allied towers in |cffFFFF80400|r range, bestowing:|n|n|cffFFFF80+10%|r spell damage|n|cffFFFF80+10%|r trigger chances|n|cffFFFF80+3%|r spell crit chance|n|cffFFFF80+x0.15|r spell crit damage|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.2%|r spell damage|n|cffFFFF80+0.2%|r trigger chances|n|cffFFFF80+0.06%|r spell crit chance|n|cffFFFF80+x0.003|r spell crit damage
                            [AURA_targetSelf] => true
                            [name] => Nexus Resonance
                            [AURA_level] => 0
                            [short_explain] => Increases spell damage, trigger chances, spell crit chance, and spell crit damage of nearby towers.
                            [AURA_auraRange] => 400
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => BHab
                    [oeValues] => Array
                        (
                            [Targetattach] => Array
                                (
                                )

                            [EditorName] => Nexus Resonance
                            [Buffubertip] => Increased spell damage; trigger chances; spell crit chance and spell crit damage.
                            [TargetArt] => Array
                                (
                                )

                            [Bufftip] => Nexus Resonance
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNRingOfFrost.blp
                        )

                )

            [1] => Array
                (
                    [id] => @@1@@
                    [derivedFrom] => BHab
                    [oeValues] => Array
                        (
                            [Targetattach] => chest
                            [EditorName] => Nexus Frostmark
                            [Buffubertip] => Slowed and taking increased damage from Ice towers.
                            [TargetArt] => war3mapImported\ImmolationBlueDamage.mdx
                            [Bufftip] => Nexus Frostmark
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNFrostRing.blp
                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

    [lightning] => Array
        (
        )

)