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

            [Art] => ReplaceableTextures\CommandButtons\BTNRockGolem.blp
            [turnRate] => 3
            [dmgplus1] => 3326
            [bldtm] => 1
            [goldcost] => 2625
            [sides1] => 20
            [manaN] => 50
            [acquire] => 900
            [upgrades] => Array
                (
                )

            [Upgrade] => Array
                (
                )

            [Name] => Stormforged Golem
            [weapTp1] => missile
            [MissileHoming] => 1
            [file] => units\creeps\RockGolem\RockGolem.mdl
            [uberSplat] => OSMA
            [Missilespeed] => 1500
            [dice1] => 1
            [RngBuff1] => 250
            [regenMana] => 1.5
            [modelScale] => 0.42
            [rangeN1] => 900
            [atkType1] => siege
            [cool1] => 1.75
            [Ubertip] => Not the brightest spark, but it conducts itself well.
            [abilList] => Array
                (
                )

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

            [targs1] => Array
                (
                )

            [weapsOn] => 1
        )

    [settings] => Array
        (
            [balanceTip] => |cffFFFF00+30% |rdmg to bosses (|cffFFFF00+1%|r/lvl)
            [abil_factor] => 0.67
            [author] => Moppy
            [alpha] => 255
            [authorDisplay] => |c006969FFMoppy|r
            [version] => 1.0
            [element] => storm
            [rarity] => uncommon
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => 20.7275
                    [y] => 37.3042
                    [z] => 0
                    [scale] => 0.5
                    [rot] => 3.14159
                    [file] => Doodads\Barrens\Rocks\RockPillar\RockPillar2.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [1] => Array
                (
                    [x] => -0.319351
                    [y] => 13.793
                    [z] => 19.2
                    [scale] => 0.545
                    [rot] => 4.71239
                    [file] => Abilities\Spells\Orc\Purge\PurgeBuffTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [2] => Array
                (
                    [x] => -43.5466
                    [y] => 24.8053
                    [z] => -6.4
                    [scale] => 0.5
                    [rot] => 3.01942
                    [file] => Doodads\Barrens\Rocks\RockPillar\RockPillar2.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [3] => Array
                (
                    [x] => 42.986
                    [y] => 11.8539
                    [z] => -32
                    [scale] => 0.5
                    [rot] => 4.36332
                    [file] => Doodads\Barrens\Rocks\RockPillar\RockPillar1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [4] => Array
                (
                    [x] => 16.6173
                    [y] => -11.1749
                    [z] => -57.6
                    [scale] => 0.5
                    [rot] => 1.5708
                    [file] => Doodads\Barrens\Rocks\RockPillar\RockPillar1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [5] => Array
                (
                    [x] => -15.5201
                    [y] => -1.44175
                    [z] => -57.6
                    [scale] => 0.5
                    [rot] => 1.5708
                    [file] => Doodads\Barrens\Rocks\RockPillar\RockPillar1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [6] => Array
                (
                    [x] => -1.42154
                    [y] => -8.91785
                    [z] => -57.6
                    [scale] => 0.5
                    [rot] => 2.3562
                    [file] => Doodads\Barrens\Rocks\RockPillar\RockPillar1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [7] => Array
                (
                    [x] => 22.1895
                    [y] => 9.36143
                    [z] => -57.6
                    [scale] => 0.5
                    [rot] => 1.5708
                    [file] => Doodads\Barrens\Rocks\RockPillar\RockPillar1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [8] => Array
                (
                    [x] => -9.94794
                    [y] => 19.0946
                    [z] => -57.6
                    [scale] => 0.5
                    [rot] => 1.5708
                    [file] => Doodads\Barrens\Rocks\RockPillar\RockPillar1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [9] => Array
                (
                    [x] => 4.15059
                    [y] => 11.6184
                    [z] => -57.6
                    [scale] => 0.5
                    [rot] => 2.3562
                    [file] => Doodads\Barrens\Rocks\RockPillar\RockPillar1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [10] => Array
                (
                    [x] => -21.6278
                    [y] => -27.6787
                    [z] => -57.6
                    [scale] => 0.5
                    [rot] => 3.31613
                    [file] => Doodads\Barrens\Rocks\RockPillar\RockPillar1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [11] => Array
                (
                    [x] => -10.3934
                    [y] => -46.2393
                    [z] => -44.8
                    [scale] => 0.5
                    [rot] => 3.31613
                    [file] => Doodads\Barrens\Rocks\RockPillar\RockPillar1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [12] => Array
                (
                    [x] => -42.6802
                    [y] => -31.1183
                    [z] => -38.4
                    [scale] => 0.5
                    [rot] => 4.53786
                    [file] => Doodads\Barrens\Rocks\RockPillar\RockPillar1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [13] => Array
                (
                    [x] => -34.7942
                    [y] => -40.5842
                    [z] => -38.4
                    [scale] => 0.5
                    [rot] => 0
                    [file] => Doodads\Barrens\Rocks\RockPillar\RockPillar2.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [14] => Array
                (
                    [x] => -28.1891
                    [y] => -45.4179
                    [z] => -12.8
                    [scale] => 0.3
                    [rot] => 4.71239
                    [file] => Doodads\Felwood\Plants\FelwoodBush\FelwoodBush0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [15] => Array
                (
                    [x] => -40.3643
                    [y] => -29.8562
                    [z] => 6.4
                    [scale] => 0.3
                    [rot] => 4.71239
                    [file] => Abilities\Spells\Orc\LightningShield\LightningShieldTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [16] => Array
                (
                    [x] => -7.68225
                    [y] => -49.2912
                    [z] => 19.2
                    [scale] => 0.3
                    [rot] => 4.71239
                    [file] => Abilities\Weapons\FarseerMissile\FarseerMissile.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [17] => Array
                (
                    [x] => -22.6569
                    [y] => 45.3801
                    [z] => -6.4
                    [scale] => 0.5
                    [rot] => 2.0944
                    [file] => Doodads\Barrens\Rocks\RockPillar\RockPillar1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [18] => Array
                (
                    [x] => 0.230482
                    [y] => 43.0572
                    [z] => 0
                    [scale] => 0.5
                    [rot] => 4.71239
                    [file] => Doodads\Barrens\Rocks\RockPillar\RockPillar1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [19] => Array
                (
                    [x] => 39.9527
                    [y] => -22.8125
                    [z] => -57.6
                    [scale] => 0.5
                    [rot] => 0
                    [file] => Doodads\Barrens\Rocks\RockPillar\RockPillar1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [20] => Array
                (
                    [x] => 42.3284
                    [y] => -20.7507
                    [z] => -44.8
                    [scale] => 0.5
                    [rot] => 1.5708
                    [file] => Doodads\Barrens\Rocks\RockPillar\RockPillar1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [21] => Array
                (
                    [x] => 29.6978
                    [y] => -36.2656
                    [z] => -57.6
                    [scale] => 0.5
                    [rot] => 5.23599
                    [file] => Doodads\Barrens\Rocks\RockPillar\RockPillar0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [22] => Array
                (
                    [x] => 44.9423
                    [y] => -38.0555
                    [z] => -19.2
                    [scale] => 0.3
                    [rot] => 0.523599
                    [file] => Doodads\Felwood\Plants\FelwoodBush\FelwoodBush0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [23] => Array
                (
                    [x] => -53.9786
                    [y] => -17.724
                    [z] => -19.2
                    [scale] => 0.3
                    [rot] => 0.523599
                    [file] => Doodads\Felwood\Plants\FelwoodBush\FelwoodBush0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [24] => Array
                (
                    [x] => 39.9456
                    [y] => -21.2974
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 4.71239
                    [file] => Abilities\Spells\Orc\LightningShield\LightningShieldTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [25] => Array
                (
                    [x] => 4.18701
                    [y] => 45.2406
                    [z] => 44.8
                    [scale] => 0.3
                    [rot] => 4.71239
                    [file] => Abilities\Spells\Orc\LightningShield\LightningShieldTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [26] => Array
                (
                    [x] => 46.2621
                    [y] => 11.65
                    [z] => 32
                    [scale] => 0.3
                    [rot] => 4.71239
                    [file] => Abilities\Weapons\FarseerMissile\FarseerMissile.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [27] => Array
                (
                    [x] => -25.8021
                    [y] => 42.3897
                    [z] => 57.6
                    [scale] => 0.3
                    [rot] => 4.71239
                    [file] => Abilities\Weapons\FarseerMissile\FarseerMissile.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [28] => Array
                (
                    [x] => -43.471
                    [y] => 33.689
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 1.22173
                    [file] => Doodads\Felwood\Plants\FelwoodBush\FelwoodBush0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [29] => Array
                (
                    [x] => 18.5647
                    [y] => 34.6566
                    [z] => 6.4
                    [scale] => 0.3
                    [rot] => 1.22173
                    [file] => Doodads\Felwood\Plants\FelwoodBush\FelwoodBush0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [30] => Array
                (
                    [x] => 1.02669
                    [y] => 5.92153
                    [z] => 19.2
                    [scale] => 1.25
                    [rot] => 4.71239
                    [file] => Abilities\Spells\Other\Tornado\Tornado_Target.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

        )

    [dmgTable] => Array
        (
            [0] => Array
                (
                    [id] => MOD_DMG_TO_BOSS
                    [base] => 0.3
                    [add] => 0.01
                )

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Attack
                    [code] => local Unit c = Event.getTarget()
    local Projectile p

    if tower.getBuffOfType(moppy_overcharge_buff) != 0 then
        set p = Projectile.createFromUnitToUnit(moppy_golem_energy_shot, tower, 1, 0, tower, c, true, false, false)
        call p.setScale(0.42)
    else
        set p = Projectile.createFromUnitToUnit(moppy_golem_physical_shot, tower, 1, 0, tower, c, true, false, false)
        call p.setScale(0.42)
    endif
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [ONATTACK_chance] => 1.0
                            [ONATTACK_chanceLevelAdd] => 0.0
                            [long_explain] => 
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals
    //@import
    BuffType moppy_overcharge_buff
    //@import
    ProjectileType moppy_golem_energy_shot
    //@import
    ProjectileType moppy_golem_physical_shot
    endglobals
    
    function moppy_golem_energy_projectile takes Projectile p, Unit c returns nothing
        local Tower t = p.getCaster()
        call t.doCustomAttackDamage(c, t.getCurrentAttackDamageWithBonus(), t.calcAttackMulticrit(0.0, 0.0, 0), AttackType.ENERGY)
    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
	endfunction
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [2] => Array
                (
                    [name] => On Damage
                    [code] => if tower.getBuffOfType(moppy_overcharge_buff) != 0 then
        set Event.damage = 0
    endif
                    [values] => Array
                        (
                            [ONDAMAGE_chance] => 1.0
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [ONDAMAGE_chanceLevelAdd] => 0.0
                            [long_explain] => 
                        )

                )

            [3] => Array
                (
                    [name] => Autocast
                    [code] => call SFXAtUnit("Abilities\\Spells\\Orc\\LightningShield\\LightningShieldTarget.mdl", tower.getUnit())
    call moppy_overcharge_buff.applyCustomPower(tower, Event.getTarget(), tower.getLevel(), 900 + tower.getLevel() * 18)
                    [values] => Array
                        (
                            [AUTOCAST_cooldown] => 4
                            [AUTOCAST_autoRange] => 900
                            [AUTOCAST_manacost] => 20
                            [icon] => ReplaceableTextures\CommandButtons\BTNPurge.blp
                            [AUTOCAST_range] => 900
                            [AUTOCAST_targetType] => 0
                            [AUTOCAST_numBuffsBeforeIdle] => 1
                            [caster_art] => 
                            [long_explain] => Increases the tower's attack speed by |cffFFFF8090%|r and changes its attack type to |cff00FFFFEnergy|r. Lasts |cffFFFF804|r seconds.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+1.8%|r attack speed
                            [target_art] => 
                            [AUTOCAST_autocastType] => AC_TYPE_OFFENSIVE_IMMEDIATE
                            [AUTOCAST_buffType] => moppy_overcharge_buff
                            [AUTOCAST_isExtended] => false
                            [name] => Overcharge
                            [AUTOCAST_targetSelf] => true
                            [short_explain] => Increases the tower's attack speed and changes its attack type to |cff00FFFFEnergy|r for a short duration.
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
        )

    [units] => Array
        (
        )

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

            [1] => Array
                (
                    [export] => false
                    [category] => global
                    [typ] => ProjectileType
                    [name] => moppy_golem_energy_shot
                )

            [2] => Array
                (
                    [export] => false
                    [category] => global
                    [typ] => ProjectileType
                    [name] => moppy_golem_physical_shot
                )

        )

    [lightning] => Array
        (
        )

)