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

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

            [Upgrade] => Array
                (
                )

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

            [buildingShadow] => Array
                (
                )

            [targs1] => Array
                (
                )

            [weapsOn] => 1
        )

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

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => -0.319347
                    [y] => 13.793
                    [z] => -6.4
                    [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
                )

            [1] => Array
                (
                    [x] => -45.0556
                    [y] => 18.0817
                    [z] => -25.6
                    [scale] => 0.5
                    [rot] => 4.88692
                    [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
                )

            [2] => Array
                (
                    [x] => 24.3733
                    [y] => 38.6613
                    [z] => -25.6
                    [scale] => 0.5
                    [rot] => 5.23599
                    [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
                )

            [3] => Array
                (
                    [x] => 29.1482
                    [y] => -48.3358
                    [z] => -51.2
                    [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] => -34.7129
                    [y] => -43.3241
                    [z] => -38.4
                    [scale] => 0.5
                    [rot] => 4.01426
                    [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] => -10.1272
                    [y] => -45.8663
                    [z] => -51.2
                    [scale] => 0.5
                    [rot] => 1.74533
                    [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] => 41.2602
                    [y] => -30.8743
                    [z] => -44.8
                    [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
                )

            [7] => Array
                (
                    [x] => 1.88501
                    [y] => 40.506
                    [z] => -12.8
                    [scale] => 0.5
                    [rot] => 1.22173
                    [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] => -47.6841
                    [y] => -27.4765
                    [z] => -57.6
                    [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
                )

            [9] => Array
                (
                    [x] => -26.5269
                    [y] => 38.0417
                    [z] => -25.6
                    [scale] => 0.5
                    [rot] => 2.96706
                    [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] => -30.9227
                    [y] => -42.4149
                    [z] => 25.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
                )

            [11] => Array
                (
                    [x] => -41.5096
                    [y] => -46.3271
                    [z] => -12.8
                    [scale] => 0.3
                    [rot] => 3.14159
                    [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
                )

            [12] => Array
                (
                    [x] => 40.9361
                    [y] => 20.2191
                    [z] => -32
                    [scale] => 0.5
                    [rot] => 3.49066
                    [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
                )

            [13] => Array
                (
                    [x] => 26.4135
                    [y] => 43.734
                    [z] => 38.4
                    [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
                )

            [14] => Array
                (
                    [x] => -24.5506
                    [y] => 36.7143
                    [z] => 38.4
                    [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
                )

            [15] => Array
                (
                    [x] => -46.0242
                    [y] => 18.5061
                    [z] => -19.2
                    [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
                )

            [16] => Array
                (
                    [x] => -16.57
                    [y] => -34.4195
                    [z] => -19.2
                    [scale] => 0.3
                    [rot] => 0
                    [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
                )

            [17] => Array
                (
                    [x] => 46.5935
                    [y] => -42.504
                    [z] => -19.2
                    [scale] => 0.3
                    [rot] => 1.74533
                    [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
                )

        )

    [dmgTable] => Array
        (
            [0] => Array
                (
                    [id] => MOD_DMG_TO_BOSS
                    [base] => 0.25
                    [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.39)
    else
        set p = Projectile.createFromUnitToUnit(moppy_golem_physical_shot, tower, 1, 0, tower, c, true, false, false)
        call p.setScale(0.39)
    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(), 800 + tower.getLevel() * 16)
                    [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 |cffFFFF8080%|r and changes its attack type to |cff00FFFFEnergy|r. Lasts |cffFFFF804|r seconds.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+1.6%|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
        (
        )

)