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

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

            [Upgrade] => Array
                (
                )

            [Name] => Ancient of Lore
            [weapTp1] => missile
            [MissileHoming] => 1
            [file] => buildings\nightelf\AncientOfLore\AncientOfLore.mdl
            [uberSplat] => YTDH
            [Missilespeed] => 1500
            [Missileart] => Abilities\Weapons\KeeperGroveMissile\KeeperGroveMissile.mdl
            [dice1] => 1
            [RngBuff1] => 250
            [animProps] => stand,alternate
            [modelScale] => 0.5
            [rangeN1] => 800
            [atkType1] => chaos
            [cool1] => 2
            [Ubertip] => The Ancients of Lore are vigilant sentinels, protectors of wisdom, and guardians of nature's most closely held secrets.
            [abilList] => Array
                (
                )

            [buildingShadow] => Array
                (
                )

            [targs1] => Array
                (
                )

            [weapsOn] => 1
        )

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

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

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => 46.7981
                    [y] => 5.14663
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 4.71239
                    [file] => Doodads\Felwood\Props\FelwoodHollowStump\FelwoodHollowStump.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [1] => Array
                (
                    [x] => 29.2968
                    [y] => -41.4849
                    [z] => 0
                    [scale] => 0.325
                    [rot] => 4.36332
                    [file] => units\critters\Raccoon\Raccoon.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [2] => Array
                (
                    [x] => -32.3889
                    [y] => -31.8213
                    [z] => 0
                    [scale] => 0.25
                    [rot] => 4.36332
                    [file] => Doodads\Ruins\Plants\VinyPlant\VinyPlant2.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [3] => Array
                (
                    [x] => -18.3787
                    [y] => -41.122
                    [z] => 12.8
                    [scale] => 0.25
                    [rot] => 4.71239
                    [file] => Doodads\Ruins\Plants\VinyPlant\VinyPlant0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [4] => Array
                (
                    [x] => -25.8073
                    [y] => -19.4187
                    [z] => 25.6
                    [scale] => 0.15
                    [rot] => 1.5708
                    [file] => Doodads\Ruins\Plants\Ruins_Shroom\Ruins_Shroom5.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [5] => Array
                (
                    [x] => 23.5596
                    [y] => -6.2539
                    [z] => 25.6
                    [scale] => 0.2
                    [rot] => 1.5708
                    [file] => Doodads\Ashenvale\Plants\AshenShrooms\AshenShrooms1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [6] => Array
                (
                    [x] => -33.71
                    [y] => 20.0984
                    [z] => 0
                    [scale] => 0.25
                    [rot] => 1.5708
                    [file] => Doodads\Felwood\Props\FelwoodLogAngled\FelwoodLogAngled.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [7] => Array
                (
                    [x] => 47.9453
                    [y] => 4.97381
                    [z] => 12.8
                    [scale] => 0.25
                    [rot] => 4.71239
                    [file] => Doodads\Ruins\Plants\VinyPlant\VinyPlant0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [8] => Array
                (
                    [x] => -45.5436
                    [y] => -0.097784
                    [z] => 12.8
                    [scale] => 0.25
                    [rot] => 2.0944
                    [file] => Doodads\Ruins\Plants\VinyPlant\VinyPlant2.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [9] => Array
                (
                    [x] => -51.4493
                    [y] => 0.987267
                    [z] => 6.4
                    [scale] => 0.25
                    [rot] => 4.71239
                    [file] => Doodads\Ruins\Plants\VinyPlant\VinyPlant2.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [10] => Array
                (
                    [x] => -4.53987
                    [y] => 3.60984
                    [z] => 0
                    [scale] => 0.8
                    [rot] => 4.2237
                    [file] => Abilities\Spells\NightElf\TargetArtLumber\TargetArtLumber.mdl
                    [red] => 1
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [11] => Array
                (
                    [x] => -54.2819
                    [y] => -5.10338
                    [z] => 0
                    [scale] => 0.45
                    [rot] => 4.01426
                    [file] => units\critters\EasterRabbit\EasterRabbit.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [12] => Array
                (
                    [x] => 51.2391
                    [y] => -10.7309
                    [z] => 0
                    [scale] => 0.15
                    [rot] => 4.88692
                    [file] => Doodads\Ruins\Plants\Ruins_Shroom\Ruins_Shroom2.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [13] => Array
                (
                    [x] => 50.1693
                    [y] => 0.0149803
                    [z] => 25.6
                    [scale] => 0.15
                    [rot] => 4.71239
                    [file] => Doodads\Ruins\Plants\Ruins_Shroom\Ruins_Shroom5.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [14] => Array
                (
                    [x] => -61.6122
                    [y] => -3.31961
                    [z] => 0
                    [scale] => 0.15
                    [rot] => 4.01426
                    [file] => Doodads\Ashenvale\Plants\AshenShrooms\AshenShrooms1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [15] => Array
                (
                    [x] => -20.4552
                    [y] => 25.315
                    [z] => 6.4
                    [scale] => 0.25
                    [rot] => 4.71239
                    [file] => Doodads\Ruins\Plants\VinyPlant\VinyPlant0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [16] => Array
                (
                    [x] => -47.9692
                    [y] => 2.95495
                    [z] => 12.8
                    [scale] => 0.25
                    [rot] => 1.0472
                    [file] => Doodads\Ashenvale\Plants\AshenShrooms\AshenShrooms3.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [17] => Array
                (
                    [x] => -39.8844
                    [y] => -13.1164
                    [z] => 0
                    [scale] => 0.35
                    [rot] => 5.23599
                    [file] => Doodads\Ashenvale\Plants\AshenShrooms\AshenShrooms2.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [18] => Array
                (
                    [x] => -33.8444
                    [y] => 24.1503
                    [z] => 0
                    [scale] => 0.375
                    [rot] => 5.58505
                    [file] => Doodads\LordaeronSummer\Plants\RiverRushes\RiverRushes1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [19] => Array
                (
                    [x] => 10.3113
                    [y] => -44.0368
                    [z] => 0
                    [scale] => 0.375
                    [rot] => 4.71239
                    [file] => Doodads\Ruins\Plants\Ruins_Shroom\Ruins_Shroom3.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [20] => Array
                (
                    [x] => 32.9942
                    [y] => -27.81
                    [z] => 0
                    [scale] => 0.25
                    [rot] => 1.74533
                    [file] => Doodads\Ruins\Plants\VinyPlant\VinyPlant2.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [21] => Array
                (
                    [x] => -6.97638
                    [y] => -52.5826
                    [z] => 0
                    [scale] => 0.25
                    [rot] => 2.0944
                    [file] => Doodads\Ashenvale\Plants\AshenShrooms\AshenShrooms0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [22] => Array
                (
                    [x] => 62.3917
                    [y] => 0.123188
                    [z] => 0
                    [scale] => 0.45
                    [rot] => 5.49779
                    [file] => units\critters\EasterRabbit\EasterRabbit.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [23] => Array
                (
                    [x] => 12.9079
                    [y] => -46.2544
                    [z] => 0
                    [scale] => 0.15
                    [rot] => 4.71239
                    [file] => Doodads\Ruins\Plants\VinyPlant\VinyPlant0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [24] => Array
                (
                    [x] => 57.35
                    [y] => 10.3372
                    [z] => 0
                    [scale] => 0.25
                    [rot] => 5.58505
                    [file] => Doodads\LordaeronSummer\Plants\RiverRushes\RiverRushes1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [25] => Array
                (
                    [x] => -15.1968
                    [y] => -38.5068
                    [z] => 0
                    [scale] => 0.45
                    [rot] => 4.18879
                    [file] => units\critters\Pig\Pig.mdl
                    [red] => 255
                    [green] => 255
                    [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_verdant_mark_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\BTNReplenishHealth.blp
                            [name] => Verdant Mark
                            [short_explain] => Chance on attack to slow creeps in an AoE around the target and amplify damage they take from |cFF80FF00Nature|r towers while also boosting the bonuses granted by 'Ancient's Blessing'.
                            [ONATTACK_chance] => 0.06
                            [ONATTACK_chanceLevelAdd] => 0.001
                            [long_explain] => The Ancient of Lore has a |cffFFFF806%|r chance on attack to inflict a Verdant Mark on all creeps in |cffFFFF80200|r range around the target, slowing them by |cffFFFF8015%|r and increasing damage they take from |cFF80FF00Nature|r towers by |cffFFFF8010%|r for |cffFFFF806|r seconds. Additionally, the multiplier for bonuses granted by 'Ancient's Blessing' 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_ancient_of_lore_aura    
    BuffType moppy_verdant_mark_debuff
    ProjectileType moppy_verdant_mark_shot
    endglobals
    
    private function moppy_ancient_of_lore_aura_refresh takes Buff b returns nothing
        local Tower tower = b.getCaster()
        call b.setPower((100 + 2 * tower.getLevel()) * tower.userInt)
    endfunction
    
    function moppy_verdant_mark_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_verdant_mark_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_ancient_of_lore_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_ancient_of_lore_aura.setBuffModifier(a)
        call moppy_ancient_of_lore_aura.setEventOnRefresh(moppy_ancient_of_lore_aura_refresh)
        call moppy_ancient_of_lore_aura.setBuffIcon('@@0@@')
        
        set moppy_verdant_mark_debuff = BuffType.create(0.0, 0.0, false)
        call v.addModification(MOD_MOVESPEED, -0.15, -0.006)
        call v.addModification(MOD_DMG_FROM_NATURE, 0.10, 0.004)
        call moppy_verdant_mark_debuff.setBuffModifier(v)
        call moppy_verdant_mark_debuff.setBuffIcon('@@1@@')
        set moppy_verdant_mark_shot = ProjectileType.create(".mdl", 50, 5000)
        call moppy_verdant_mark_shot.enableHoming(moppy_verdant_mark_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_ancient_of_lore_aura
                            [AURA_levelAdd] => 1
                            [AURA_power] => 100
                            [icon] => ReplaceableTextures\CommandButtons\BTNDryadDispelMagic.blp
                            [AURA_targetType] => TARGET_TYPE_TOWERS
                            [long_explain] => The Ancient of Lore's noble presence inspires towers within |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] => Ancient's Blessing
                            [AURA_level] => 0
                            [short_explain] => Increases spell damage, trigger chances, spell crit chance, and spell crit damage of nearby towers.
                            [AURA_auraRange] => 400
                        )

                )

            [3] => Array
                (
                    [name] => On Tower Creation
                    [code] => call AddUnitAnimationProperties(tower.getUnit(), "stand alternate", true)
    set tower.userInt = 1
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

        )

    [abilities] => Array
        (
        )

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

                            [EditorName] => Ancient's Blessing
                            [Buffubertip] => Increased spell damage; trigger chances; spell crit chance and spell crit damage.
                            [TargetArt] => Array
                                (
                                )

                            [Bufftip] => Ancient's Blessing
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNDryadDispelMagic.blp
                        )

                )

            [1] => Array
                (
                    [id] => @@1@@
                    [derivedFrom] => BNab
                    [oeValues] => Array
                        (
                            [EditorName] => Verdant Mark
                            [Buffubertip] => Slowed and taking increased damage from Nature towers.
                            [TargetArt] => Abilities\Spells\NightElf\Barkskin\BarkSkinTarget.mdl
                            [Bufftip] => Verdant Mark
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNReplenishHealth.blp
                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

    [lightning] => Array
        (
        )

)