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

            [Art] => ReplaceableTextures\CommandButtons\BTNShadowPact.blp
            [turnRate] => 2
            [dmgplus1] => 70
            [bldtm] => 1
            [goldcost] => 100
            [sides1] => 25
            [maxPitch] => -90
            [manaN] => 150
            [launchZ] => 15
            [acquire] => 800
            [upgrades] => Array
                (
                )

            [Upgrade] => Array
                (
                )

            [launchY] => 30
            [Name] => Small Mana Turret
            [red] => 155
            [weapTp1] => missile
            [impactZ] => 60
            [MissileHoming] => 1
            [file] => buildings\other\MagicVault\MagicVault.mdl
            [uberSplat] => YTDG
            [Missileart] => Abilities\Weapons\DruidoftheTalonMissile\DruidoftheTalonMissile.mdl
            [Missilespeed] => 1500
            [dice1] => 1
            [RngBuff1] => 250
            [regenMana] => 4
            [green] => 55
            [mana0] => 100
            [modelScale] => 0.17
            [rangeN1] => 925
            [propWin] => 30
            [atkType1] => normal
            [cool1] => 1.2
            [Ubertip] => Turret that utilizes the manas to deal extra damage.
            [blue] => 225
            [scaleBull] => 0
            [abilList] => Array
                (
                )

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

            [castbsw] => 0
            [targs1] => Array
                (
                )

            [weapsOn] => 1
        )

    [settings] => Array
        (
            [balanceTip] => |cffFFFF00+6 |rmana/lvl|n|cffFFFF00+8% |rmana regen/lvl
            [abil_factor] => .7
            [author] => i_mOck_death
            [alpha] => 175
            [authorDisplay] => i_mOck_death
            [version] => 1.0
            [element] => arcane
            [rarity] => uncommon
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => 0.803232
                    [y] => 7.20989
                    [z] => 0
                    [scale] => 0.375
                    [rot] => 1.81509
                    [file] => Doodads\Cityscape\Props\FountainRuined\FountainRuined.mdl
                    [red] => 255
                    [green] => 80
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

        )

    [dmgTable] => Array
        (
            [0] => Array
                (
                    [id] => MOD_MANA
                    [base] => 0
                    [add] => 6
                )

            [1] => Array
                (
                    [id] => MOD_MANA_REGEN_PERC
                    [base] => 0
                    [add] => 0.08
                )

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Damage
                    [code] => local Unit creep = Event.getTarget()
    local real mana = GetUnitState(tower.getUnit(), UNIT_STATE_MANA)
    local unit towerunit = tower.getUnit()
    
    if creep.isImmune() then
        set Event.damage = Event.damage*(1+(creep.subtractMana(5,true)*0.06)) 
    else
        call tower.doCustomAttackDamage(creep,GetUnitState(towerunit, UNIT_STATE_MANA),tower.calcAttackMulticrit(0.0,0.0,0),AttackType.MAGIC)
        if(mana > 0) then
            call SetUnitState(towerunit, UNIT_STATE_MANA, mana*.5)
        endif
    endif
    call SFXAtUnit("Abilities\\Spells\\Undead\\DeathPact\\DeathPactTarget.mdl",creep.getUnit())
    
    set towerunit = null
                    [values] => Array
                        (
                            [ONDAMAGE_chance] => .25
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNAmuletOftheWild.blp
                            [name] => Overload
                            [short_explain] => On damage chance to do damage based on the tower's mana.
                            [ONDAMAGE_chanceLevelAdd] => 0.0
                            [long_explain] => Whenever the tower damages a creep it has a |cffFFFF8025%|r chance to deal |cffFF0080Magic|r damage equal to it's mana and loses half of its mana. If the creep is immune it burns |cffFFFF805|r mana and deals an extra |cffFFFF806%|r damage per mana burned.
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

    [lightning] => Array
        (
        )

)