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

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

            [Upgrade] => Array
                (
                )

            [Name] => Electrified Golem
            [weapTp1] => missile
            [MissileHoming] => 1
            [file] => units\creeps\RockGolem\RockGolem.mdl
            [uberSplat] => OSMA
            [Missilespeed] => 1500
            [dice1] => 1
            [RngBuff1] => 250
            [regenMana] => 1.5
            [modelScale] => 0.36
            [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+20% |rdmg to bosses (|cffFFFF00+1%|r/lvl)
            [abil_factor] => 0.75
            [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.53
                    [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] => -29.0709
                    [y] => 22.3345
                    [z] => -25.6
                    [scale] => 0.5
                    [rot] => 1.22173
                    [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] => 13.1995
                    [y] => 35.7049
                    [z] => -38.4
                    [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
                )

            [3] => Array
                (
                    [x] => 22.1639
                    [y] => -40.7679
                    [z] => -51.2
                    [scale] => 0.5
                    [rot] => 3.49066
                    [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] => -29.8334
                    [y] => -35.2511
                    [z] => -38.4
                    [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
                )

            [5] => Array
                (
                    [x] => -22.7957
                    [y] => -47.575
                    [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
                )

            [6] => Array
                (
                    [x] => 34.3786
                    [y] => -23.7137
                    [z] => -44.8
                    [scale] => 0.5
                    [rot] => 3.14159
                    [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] => -0.212824
                    [y] => 38.9761
                    [z] => -25.6
                    [scale] => 0.5
                    [rot] => 0.785398
                    [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] => 37.1733
                    [y] => -27.964
                    [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
                )

            [9] => Array
                (
                    [x] => -1.61808
                    [y] => 38.7792
                    [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
                )

            [10] => Array
                (
                    [x] => -47.6841
                    [y] => -27.4765
                    [z] => -64
                    [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
                )

            [11] => Array
                (
                    [x] => -19.7089
                    [y] => 36.4116
                    [z] => -32
                    [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
                )

            [12] => Array
                (
                    [x] => -44.3039
                    [y] => -42.8881
                    [z] => -19.2
                    [scale] => 0.3
                    [rot] => 3.92699
                    [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
                )

            [13] => Array
                (
                    [x] => -28.1352
                    [y] => -35.5413
                    [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
                )

            [14] => Array
                (
                    [x] => -33.6962
                    [y] => -54.9405
                    [z] => -25.6
                    [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
                )

            [15] => Array
                (
                    [x] => 39.7779
                    [y] => -39.7188
                    [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
                )

        )

    [dmgTable] => Array
        (
            [0] => Array
                (
                    [id] => MOD_DMG_TO_BOSS
                    [base] => 0.2
                    [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.36)
    else
        set p = Projectile.createFromUnitToUnit(moppy_golem_physical_shot, tower, 1, 0, tower, c, true, false, false)
        call p.setScale(0.36)
    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(), 700 + tower.getLevel() * 14)
                    [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 |cffFFFF8070%|r and changes its attack type to |cff00FFFFEnergy|r. Lasts |cffFFFF804|r seconds.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+1.4%|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
        (
        )

)