Array
(
    [scriptVersion] => 7
    [oeValues] => Array
        (
            [RngBuff1] => 250
            [MissileHoming] => 1
            [Upgrade] => Array
                (
                )

            [targs1] => Array
                (
                )

            [goldcost] => 80
            [weapsOn] => 1
            [dice1] => 1
            [Missilespeed] => 30000
            [moveHeight] => 100
            [file] => Abilities\Weapons\IllidanMissile\IllidanMissile.mdl
            [atkType1] => magic
            [weapTp1] => missile
            [acquire] => 1200
            [rangeN1] => 1200
            [upgrades] => Array
                (
                )

            [cool1] => 1
            [Ubertip] => A tricky tower that may weaken its target temporarily but also itself
            [abilList] => Array
                (
                )

            [Name] => Buried Soul
            [Missileart] => Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
            [Art] => ReplaceableTextures\CommandButtons\BTNGuldanSkull.blp
            [buildingShadow] => Array
                (
                )

            [sides1] => 62
            [uberSplat] => OSMA
            [auto] => Array
                (
                )

            [dmgplus1] => 9
            [bldtm] => 1
        )

    [settings] => Array
        (
            [author] => SirCoqaLot.
            [element] => darkness
            [authorDisplay] => SirCoqaLot.
            [balanceTip] => Array
                (
                )

            [rarity] => uncommon
            [version] => 1.0
            [abil_factor] => 0.63
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => -5.75427
                    [y] => -12.7625
                    [z] => 0
                    [scale] => 0.75
                    [rot] => 4.69494
                    [file] => Doodads\Ashenvale\Props\ScorchedRemains\ScorchedRemains1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [1] => Array
                (
                    [x] => 15.3023
                    [y] => 17.6534
                    [z] => 0
                    [scale] => 0.75
                    [rot] => 4.69494
                    [file] => Doodads\Ashenvale\Props\ScorchedRemains\ScorchedRemains1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [2] => Array
                (
                    [x] => 8.43991
                    [y] => 10.2945
                    [z] => 12.8
                    [scale] => 1
                    [rot] => 4.69494
                    [file] => Doodads\LordaeronSummer\Props\SkullPile\SkullPile3.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

        )

    [dmgTable] => Array
        (
        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Damage
                    [code] => Array
                        (
                        )

                    [values] => Array
                        (
                            [ONDAMAGE_chance] => 0.0
                            [icon] => ReplaceableTextures\CommandButtons\BTNRegenerationAura.blp
                            [visible] => true
                            [name] => Shadowstrike
                            [short_explain] => Chance to deal additional spell damage on attack.
                            [ONDAMAGE_chanceLevelAdd] => 0.0
                            [long_explain] => This tower has a |cffFFFF8025%|r chance on attack to deal |cffFFFF8080|r spell damage. |n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+4|r spell damage |n|cffFFFF80+0.5%|r chance
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals
        //@export
        BuffType sir_cripple
        //@export
        BuffType sir_banish
        
    endglobals
    
    private function init takes nothing returns nothing
        
        local Modifier banish = Modifier.create()
        local Modifier cripple = Modifier.create()
        
        set sir_cripple=BuffType.create(0.0,0,false)
        set sir_banish=BuffType.create(0.0,0,false)
        call sir_cripple.setBuffIcon('@@1@@')
        call sir_cripple.setSpecialEffectSimple("Abilities\\Spells\\Undead\\Cripple\\CrippleTarget.mdl")
        call sir_banish.setBuffIcon('@@0@@')
        call banish.addModification(MOD_SPELL_DAMAGE_RECEIVED,0.0,0.0001)        
        call cripple.addModification(MOD_ATTACKSPEED,-0.6,0.01)
        call sir_cripple.setBuffModifier(cripple)
        call sir_banish.setBuffModifier(banish)
        
	endfunction
                    [values] => Array
                        (
                            [icon] => 
                            [visible] => false
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [2] => Array
                (
                    [name] => On Attack
                    [code] => local integer lvl = tower.getLevel()
    local Creep creep = Event.getTarget()
    if tower.calcChance(0.1) then
        call sir_banish.applyCustomTimed(tower,creep,R2I((40+0.32*lvl)*100),2.5)
        call sir_cripple.applyCustomTimed(tower,tower,lvl,2.5)
    endif
    if tower.calcChance(.25 + 0.005 * lvl) then
        call tower.doSpellDamage(creep,80+tower.getLevel()*4,tower.calcSpellCritNoBonus())
        call SFXOnUnit("Abilities\\Spells\\Undead\\DeathPact\\DeathPactTarget.mdl",creep.getUnit(),"origin")
    endif
                    [values] => Array
                        (
                            [icon] => ReplaceableTextures\CommandButtons\BTNCripple.blp
                            [visible] => true
                            [name] => Soul Scattering
                            [short_explain] => Chance on attack to make its target more vulnerable to spells, temporarily slowing its own attackspeed as a result.
                            [ONATTACK_chance] => 1.0
                            [ONATTACK_chanceLevelAdd] => 0.0
                            [long_explain] => |cffFFFF8010%|r chance on attack to reduce its own attackspeed by |cffFFFF8060%|r and make the target receive |cffFFFF8040%|r more spell damage. Both effects last |cffFFFF802.5|r seconds.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+1%|r attackspeed |n|cffFFFF80+0.32%|r spell damage received
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => BHbn
                    [oeValues] => Array
                        (
                            [Bufftip] => Soul Scattering
                            [Buffubertip] => This unit will take bonus damage from spells.
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNCripple.blp
                            [TargetArt] => Abilities\Spells\Human\Banish\BanishTarget.mdl
                        )

                )

            [1] => Array
                (
                    [id] => @@1@@
                    [derivedFrom] => Bcri
                    [oeValues] => Array
                        (
                            [Bufftip] => Soul Scattering
                            [Buffubertip] => This tower has its attackspeed reduced.
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNCripple.blp
                            [TargetArt] => Array
                                (
                                )

                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
            [0] => Array
                (
                    [export] => true
                    [category] => global
                    [typ] => BuffType
                    [name] => sir_cripple
                )

            [1] => Array
                (
                    [export] => true
                    [category] => global
                    [typ] => BuffType
                    [name] => sir_banish
                )

        )

)