Array
(
    [scriptVersion] => 7
    [oeValues] => Array
        (
            [RngBuff1] => 250
            [MissileHoming] => 1
            [Upgrade] => Array
                (
                )

            [targs1] => Array
                (
                )

            [goldcost] => 3150
            [weapsOn] => 1
            [dice1] => 1
            [Missilespeed] => 1000
            [file] => .mdl
            [atkType1] => pierce
            [modelScale] => 0.6
            [weapTp1] => missile
            [Missilearc] => 0.15
            [acquire] => 820
            [rangeN1] => 820
            [upgrades] => Array
                (
                )

            [cool1] => 1.8
            [Ubertip] => Some people think the purling noise of a river is calming.
            [abilList] => Array
                (
                )

            [Name] => Tidewater Stream
            [Missileart] => Abilities\Weapons\WaterElementalMissile\WaterElementalMissile.mdl
            [Art] => ReplaceableTextures\CommandButtons\BTNManaRecharge.blp
            [buildingShadow] => Array
                (
                )

            [unitSound] => MoonWell
            [sides1] => 1
            [uberSplat] => ESMB
            [auto] => Array
                (
                )

            [dmgplus1] => 3387
            [bldtm] => 1
        )

    [settings] => Array
        (
            [author] => cedi
            [element] => ice
            [authorDisplay] => DreamStrider
            [alpha] => 255
            [balanceTip] => Array
                (
                )

            [rarity] => unique
            [version] => 1.0
            [abil_factor] => 0.45
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => 9.06796
                    [y] => -9.64466
                    [z] => -6.4
                    [scale] => 0.5
                    [rot] => 3.10669
                    [file] => Doodads\Felwood\Rocks\FelwoodRock\FelwoodRock0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [1] => Array
                (
                    [x] => -10.2141
                    [y] => 21.6541
                    [z] => -6.4
                    [scale] => 0.5
                    [rot] => 6.23084
                    [file] => Doodads\Felwood\Rocks\FelwoodRock\FelwoodRock0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [2] => Array
                (
                    [x] => 13.7732
                    [y] => -24.8242
                    [z] => -6.4
                    [scale] => 0.5
                    [rot] => 0.0588176
                    [file] => Doodads\Felwood\Rocks\FelwoodRock\FelwoodRock0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [3] => Array
                (
                    [x] => -33.6516
                    [y] => -27.0135
                    [z] => -12.8
                    [scale] => 0.4
                    [rot] => 2.33541
                    [file] => Doodads\Ruins\Rocks\Ruins_Rock\Ruins_Rock0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [4] => Array
                (
                    [x] => 37.1362
                    [y] => 26.7384
                    [z] => -19.2
                    [scale] => 0.4
                    [rot] => 2.33541
                    [file] => Doodads\Ruins\Rocks\Ruins_Rock\Ruins_Rock0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [5] => Array
                (
                    [x] => -45.7173
                    [y] => 9.71724
                    [z] => -19.2
                    [scale] => 0.4
                    [rot] => 2.33541
                    [file] => Doodads\Ruins\Rocks\Ruins_Rock\Ruins_Rock0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [6] => Array
                (
                    [x] => 45.6603
                    [y] => -2.63612
                    [z] => -38.4
                    [scale] => 0.4
                    [rot] => 2.33541
                    [file] => Doodads\Ruins\Rocks\Ruins_Rock\Ruins_Rock0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [7] => Array
                (
                    [x] => 11.4926
                    [y] => -21.3869
                    [z] => -32
                    [scale] => 0.3
                    [rot] => 5.22746
                    [file] => Doodads\Terrain\CliffDoodad\Waterfall\Waterfall.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [8] => Array
                (
                    [x] => 25.653
                    [y] => -46.8442
                    [z] => -32
                    [scale] => 0.3
                    [rot] => 5.22746
                    [file] => Doodads\Terrain\CliffDoodad\Waterfall\Waterfall.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [9] => Array
                (
                    [x] => -2.37299
                    [y] => 3.31185
                    [z] => -19.2
                    [scale] => 0.3
                    [rot] => 5.22746
                    [file] => Doodads\Terrain\CliffDoodad\Waterfall\Waterfall.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [10] => Array
                (
                    [x] => -14.2724
                    [y] => 26.3096
                    [z] => 0
                    [scale] => 0.6
                    [rot] => 3.10669
                    [file] => Doodads\Felwood\Rocks\FelwoodRock\FelwoodRock0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [11] => Array
                (
                    [x] => -29.9103
                    [y] => -5.20814
                    [z] => 6.4
                    [scale] => 0.3
                    [rot] => 5.93174
                    [file] => Doodads\LordaeronSummer\Structures\WindMill\WindMill.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [12] => Array
                (
                    [x] => -37.3977
                    [y] => -11.295
                    [z] => 44.8
                    [scale] => 0.4
                    [rot] => 5.87485
                    [file] => buildings\human\Farm\Farm.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => true
                    [animation] => stand
                    [aniSpeed] => 1
                )

            [13] => Array
                (
                    [x] => -49.0407
                    [y] => -1.892
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 4.68247
                    [file] => Doodads\Ruins\Rocks\Ruins_Rock\Ruins_Rock0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

        )

    [dmgTable] => Array
        (
        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Damage
                    [code] => local Iterate I = Iterate.overUnitsInRangeOfUnit( tower, TARGET_TYPE_CREEPS, Event.getTarget(), 175.0 )
    local Unit U = Event.getTarget()
    local unit u = U.getUnit()
    local Effect E = Effect.createScaled( "Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl", GetUnitX( u ), GetUnitY( u ), GetUnitFlyHeight( u ), 0.00, 0.6 )
    local integer lvl = tower.getLevel()
    call E.setLifetime( 3.0 )
    call tower.doSpellDamageAoEUnit( U, 175.0, 4000.0 + lvl * 160.0, tower.calcSpellCritNoBonus(), 0.0 )
    
    loop
        set U = I.next()
        exitwhen U == 0
        call cedi_brooksplash.apply( tower, U, lvl )
    endloop
    
    set u = null
                    [values] => Array
                        (
                            [ONDAMAGE_chance] => 0.2
                            [icon] => ReplaceableTextures\CommandButtons\BTNCrushingWave.blp
                            [visible] => true
                            [name] => Splash
                            [short_explain] => Whenever this tower deals damage through attacks it has a chance to deal additonal spell damage in an aoe and decrease the spell resistance of hit units.
                            [ONDAMAGE_chanceLevelAdd] => 0.004
                            [long_explain] => Whenever this tower deals damage through attacks it has a |cffFFFF8020%|r chance to deal |cffFFFF804000|r spell damage in |cffFFFF80175|r AoE around the attacked unit. Also increases the spell damage the hit units take by |cffFFFF8012.5%|r for |cffFFFF806|r seconds.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+160|r spell damage|n|cffFFFF80+0.5%|r more spell damage taken
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals
        BuffType cedi_brookcalm
        BuffType cedi_brooksplash
        
        ProjectileType water
        ProjectileType stone
    endglobals
    
    function hitwater takes Projectile P, Unit U returns nothing
        call DestroyEffect( AddSpecialEffectTarget( "Abilities\\Spells\\Other\\CrushingWave\\CrushingWaveDamage.mdl", U.getUnit(), "chest" ) )
        call P.getCaster().doSpellDamage( U, 2200.0 + P.getCaster().getLevel() * 88.0, P.getCaster().calcSpellCritNoBonus() )
    endfunction
    
    function periodicwater takes Projectile P returns nothing
        local Tower C = P.getCaster()
        local real r = P.direction + GetRandomReal( -30, 30 )
        if C.calcChance( 0.35 ) then
            set P = Projectile.create( stone, C, 1.0, C.calcSpellCritNoBonus(), P.x + GetRandomReal( -30.0, 30.0 ), P.y + GetRandomReal( -30.0, 30.0 ), 0.00, r )
            call DestroyEffect( AddSpecialEffect( "Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl", P.x, P.y ) )
        endif
    endfunction
    
    function hitstone takes Projectile P, Unit U returns nothing
        call P.getCaster().doSpellDamage( U, 2200.0 + P.getCaster().getLevel() * 88.0, P.getCaster().calcSpellCritNoBonus() )
        call cb_stun.applyOnlyTimed( P.getCaster(), U, 0.65 )
    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 m = Modifier.create()
        call m.addModification( MOD_SPELL_CRIT_CHANCE, 0.1, 0.004 )
        
        set cedi_brookcalm = BuffType.createAuraEffectType( true )
        call cedi_brookcalm.setBuffIcon( '@@0@@' )
        call cedi_brookcalm.setBuffModifier( m )
        
        set m = Modifier.create()
        call m.addModification( MOD_SPELL_DAMAGE_RECEIVED, 0.125, 0.005 )
        
        set cedi_brooksplash = BuffType.create( 6.0, 0, false )
        call cedi_brooksplash.setBuffIcon( '@@1@@' )
        call cedi_brooksplash.setBuffModifier( m )
        
        set water = ProjectileType.createRanged( "Doodads\\Terrain\\CliffDoodad\\Waterfall\\Waterfall.mdl", 1200.0, 700.0 )
        call water.enableCollision( hitwater, 200.0, TARGET_TYPE_CREEPS, false )
        call water.enablePeriodic( periodicwater, 0.4 )
        call water.disableExplodeOnExpiration()
        
        set stone = ProjectileType.createRanged( "Abilities\\Weapons\\RockBoltMissile\\RockBoltMissile.mdl", 500.0, 800.0 )
        call stone.enableCollision( hitstone, 64.0, TARGET_TYPE_CREEPS, true )
	endfunction
                    [values] => Array
                        (
                            [icon] => 
                            [visible] => false
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

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

                    [values] => Array
                        (
                            [icon] => ReplaceableTextures\CommandButtons\BTNManaRecharge.blp
                            [visible] => true
                            [AURA_auraEffect] => cedi_brookcalm
                            [AURA_power] => 1
                            [AURA_level] => 1
                            [long_explain] => Increases the spell crit chance of towers in |cffFFFF80250|r range by |cffFFFF8010%|r.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.4%|r spell crit chance
                            [AURA_auraRange] => 250
                            [AURA_targetType] => TARGET_TYPE_TOWERS
                            [AURA_levelAdd] => 1
                            [AURA_powerAdd] => 1
                            [name] => Calming Noises
                            [AURA_targetSelf] => true
                            [short_explain] => The purling noises of the brook increase the spell crit chance of nearby towers.
                        )

                )

            [3] => Array
                (
                    [name] => On Attack
                    [code] => local unit t = Event.getTarget().getUnit()
    local real r = bj_RADTODEG * Atan2(GetUnitY( t ) - GetUnitY(tower.getUnit()), GetUnitX( t ) - GetUnitX(tower.getUnit()))
    local Projectile P = Projectile.createFromUnit( water, tower, tower, r, 1.0, tower.calcSpellCritNoBonus() )
    call P.setScale( 0.8 )
    set t = null
                    [values] => Array
                        (
                            [icon] => ReplaceableTextures\CommandButtons\BTNSummonWaterElemental.blp
                            [visible] => true
                            [name] => Spring Tide
                            [short_explain] => Whenever this tower attacks it has a chance to summon a giant wave that deals damage and stuns sometimes.
                            [ONATTACK_chance] => 0.15
                            [ONATTACK_chanceLevelAdd] => 0.006
                            [long_explain] => Whenever this tower attacks it has a |cffFFFF8015%|r chance to launch a wave. The wave travels |cffFFFF801200|r units and has a |cffFFFF80200|r AoE. It deals |cffFFFF802200|r spell damage to each creep it hits. Every |cffFFFF800.4|r seconds the wave has a |cffFFFF8035%|r chance to drag a stone with it. The stone travels |cffFFFF80500|r units, deals |cffFFFF802200|r spell damage on collision and stuns for |cffFFFF800.65|r seconds.|n|n|cffFF8000Level Bonus:|r|n+|cffFFFF8088|r spell damage|n|cffFFFF80+0.6%|r chance to launch a wave
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => BHfs
                    [oeValues] => Array
                        (
                            [Bufftip] => Calming Noises
                            [Buffubertip] => This tower has increased spell crit chance.
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNManaRecharge.blp
                            [TargetArt] => Array
                                (
                                )

                            [EditorName] => Calming Noises
                        )

                )

            [1] => Array
                (
                    [id] => @@1@@
                    [derivedFrom] => BHfs
                    [oeValues] => Array
                        (
                            [Bufftip] => Splash
                            [Buffubertip] => This unit takes more spell damage.
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNCrushingWave.blp
                            [TargetArt] => Array
                                (
                                )

                            [EditorName] => Splash
                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

)