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

            [targs1] => Array
                (
                )

            [goldcost] => 2850
            [weapsOn] => 1
            [dice1] => 1
            [Missilespeed] => 1500
            [moveHeight] => 175
            [file] => units\undead\Gargoyle\Gargoyle.mdl
            [manaN] => 50
            [atkType1] => hero
            [dmgpt1] => 0.633
            [modelScale] => 0.7
            [weapTp1] => missile
            [acquire] => 900
            [rangeN1] => 900
            [upgrades] => Array
                (
                )

            [cool1] => 1.2
            [Ubertip] => Like a bat out of hell I'll be gone when the morning comes!
            [backSw1] => 0.7
            [green] => 100
            [regenMana] => 1.5
            [abilList] => Array
                (
                )

            [Name] => Infernal Bat
            [Missileart] => Abilities\Weapons\GargoyleMissile\GargoyleMissile.mdl
            [Art] => ReplaceableTextures\CommandButtons\BTNGargoyle.blp
            [red] => 100
            [buildingShadow] => Array
                (
                )

            [blue] => 100
            [unitSound] => Gargoyle
            [turnRate] => 3
            [sides1] => 1
            [uberSplat] => OSMA
            [auto] => Array
                (
                )

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

    [settings] => Array
        (
            [author] => DaveMatthews
            [element] => darkness
            [authorDisplay] => DaveMatthews
            [alpha] => 255
            [balanceTip] => Array
                (
                )

            [rarity] => rare
            [version] => 1.0
            [abil_factor] => 0.75
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => -8.10263
                    [y] => 63.9592
                    [z] => 0
                    [scale] => 0.2
                    [rot] => 4.24115
                    [file] => Doodads\Icecrown\Props\IceTorch\IceTorch.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [1] => Array
                (
                    [x] => 30.6976
                    [y] => -27.4666
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 3.10669
                    [file] => Doodads\Cityscape\Props\CityGrave\CityGrave0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [2] => Array
                (
                    [x] => -51.898
                    [y] => 33.3921
                    [z] => 0
                    [scale] => 0.35
                    [rot] => 2.44346
                    [file] => Doodads\Northrend\Props\NorthrendFenceStraight\NorthrendFenceStraight.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [3] => Array
                (
                    [x] => 39.946
                    [y] => -50.1516
                    [z] => 0
                    [scale] => 0.35
                    [rot] => 2.44346
                    [file] => Doodads\Northrend\Props\NorthrendFenceStraight\NorthrendFenceStraight.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [4] => Array
                (
                    [x] => -55.2522
                    [y] => -0.571823
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 5.75959
                    [file] => Doodads\LordaeronSummer\Props\PeasantGrave\PeasantGrave2.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [5] => Array
                (
                    [x] => 0.0000181173
                    [y] => -60.6881
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 1.74533
                    [file] => Doodads\LordaeronSummer\Props\PeasantGrave\PeasantGrave2.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [6] => Array
                (
                    [x] => 27.3974
                    [y] => 28.6068
                    [z] => 0
                    [scale] => 0.25
                    [rot] => 4.62512
                    [file] => Doodads\Northrend\Structures\NorthrendCrypt\NorthrendCrypt.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [7] => Array
                (
                    [x] => -30.0928
                    [y] => 28.6082
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 5.23599
                    [file] => Doodads\LordaeronSummer\Props\PeasantGrave\PeasantGrave2.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [8] => Array
                (
                    [x] => 51.2871
                    [y] => 5.89653
                    [z] => 134.4
                    [scale] => 0.2
                    [rot] => 3.83973
                    [file] => units\undead\Gargoyle\Gargoyle.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [9] => Array
                (
                    [x] => -31.0676
                    [y] => -46.7369
                    [z] => 115.2
                    [scale] => 0.2
                    [rot] => 0.628319
                    [file] => units\undead\Gargoyle\Gargoyle.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [10] => Array
                (
                    [x] => -23.7889
                    [y] => 47.1794
                    [z] => 89.6
                    [scale] => 0.2
                    [rot] => 5.39307
                    [file] => units\undead\Gargoyle\Gargoyle.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 Tower Creation
                    [code] => call AddUnitAnimationProperties(tower.getUnit(), "stand alternate", false)
                    [values] => Array
                        (
                            [icon] => 
                            [visible] => false
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [1] => Array
                (
                    [name] => On Damage
                    [code] => local real time = GetFloatGameState(GAME_STATE_TIME_OF_DAY)
local integer level = tower.getLevel()

if time >= 18.00 or time < 6.00 or tower.getBuffOfType(dave_darkness)!=0 then
   set Event.damage = Event.damage*(1.5+0.008*level)
else
   set Event.damage = Event.damage*(0.5+0.004*level)
endif
                    [values] => Array
                        (
                            [ONDAMAGE_chance] => 1.0
                            [icon] => ReplaceableTextures\CommandButtons\BTNPossession.blp
                            [visible] => true
                            [name] => Creature of the Night
                            [short_explain] => Deals more damage during night and less damage during day.
                            [ONDAMAGE_chanceLevelAdd] => 0.0
                            [long_explain] => This tower deals |cffFFFF80150%|r damage during nighttime and |cffFFFF8050%|r damage during daytime. |n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.8%|r damage during night |r|n|cffFFFF80+0.4%|r damage during day
                        )

                )

            [2] => Array
                (
                    [name] => Header
                    [code] => globals
    //@import
    BuffType dave_darkness
    //@import
    Cast dave_bats
    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
                        (
                            [icon] => 
                            [visible] => false
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [3] => Array
                (
                    [name] => Autocast
                    [code] => call dave_darkness.apply(tower,tower,tower.getLevel())
                    [values] => Array
                        (
                            [caster_art] => Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
                            [icon] => ReplaceableTextures\CommandButtons\BTNOrbOfDarkness.blp
                            [AUTOCAST_cooldown] => 6
                            [AUTOCAST_numBuffsBeforeIdle] => 1
                            [AUTOCAST_isExtended] => false
                            [long_explain] => This tower engulfs itself in darkness, gaining power as if it's night for |cffFFFF805|r seconds.
                            [AUTOCAST_autocastType] => AC_TYPE_OFFENSIVE_BUFF
                            [AUTOCAST_manacost] => 45
                            [AUTOCAST_range] => 0
                            [AUTOCAST_buffType] => dave_darkness
                            [name] => Engulfing Darkness
                            [AUTOCAST_targetSelf] => true
                            [short_explain] => Engulfs itself in darkness.
                            [AUTOCAST_targetType] => TARGET_TYPE_TOWERS
                            [target_art] => 
                            [AUTOCAST_autoRange] => 0
                        )

                )

            [4] => Array
                (
                    [name] => On Attack
                    [code] => local real time = GetFloatGameState(GAME_STATE_TIME_OF_DAY)
local integer level = tower.getLevel()

if time >= 18.00 or time < 6.00 or tower.getBuffOfType(dave_darkness)!=0 then
   call dave_bats.targetCastFromCaster(tower, Event.getTarget(), 2700+(90*level), tower.calcSpellCritNoBonus())
else
   call dave_bats.targetCastFromCaster(tower, Event.getTarget(), 900+(30*level), tower.calcSpellCritNoBonus())
endif
                    [values] => Array
                        (
                            [icon] => ReplaceableTextures\CommandButtons\BTNLocustSwarm.blp
                            [visible] => true
                            [name] => Bat Swarm
                            [short_explain] => Has a chance to launch a swarm of bats to the enemies.
                            [ONATTACK_chance] => 0.15
                            [ONATTACK_chanceLevelAdd] => 0.002
                            [long_explain] => This tower has a |cffFFFF8015%|r chance on attack to release a swarm of bats, dealing |cffFFFF802700|r spell damage at nighttime or |cffFFFF80900|r spell damage at daytime to all enemies in a cone. The cone grows from a |cffFFFF80100|r AoE radius at the start to a |cffFFFF80300|r AoE radius at the end. |n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.2%|r chance |r|n|cffFFFF80+90|r damage during night |r|n|cffFFFF80+30|r damage during day
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
        )

    [units] => Array
        (
        )

    [references] => Array
        (
            [0] => Array
                (
                    [export] => false
                    [category] => global
                    [typ] => BuffType
                    [name] => dave_darkness
                )

            [1] => Array
                (
                    [export] => false
                    [category] => global
                    [typ] => Cast
                    [name] => dave_bats
                )

        )

)