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

            [Art] => ReplaceableTextures\CommandButtons\BTNArchimonde.blp
            [turnRate] => 0.5
            [bldtm] => 1
            [dmgplus1] => 2879
            [goldcost] => 4600
            [sides1] => 0
            [upgrades] => Array
                (
                )

            [Upgrade] => Array
                (
                )

            [Name] => Eredar Diabolist
            [weapTp1] => missile
            [MissileHoming] => 1
            [file] => units\demon\Warlock\Warlock.mdl
            [uberSplat] => OSMA
            [Missileart] => Abilities\Weapons\DemonHunterMissile\DemonHunterMissile.mdl
            [Missilespeed] => 1500
            [dice1] => 1
            [RngBuff1] => 250
            [modelScale] => 0.7
            [rangeN1] => 890
            [backSw1] => 0.6
            [atkType1] => chaos
            [cool1] => 3
            [Ubertip] => Daemonic entity that will stun allied towers and temporarily steal their damage for itself and will threaten nearby units by occasionalyl releasing shadowboltwaves. Also suppresses lifeforce killing too weak enemies instantly.
            [abilList] => Array
                (
                )

            [moveHeight] => 35
            [dmgpt1] => 0.5
            [buildingShadow] => Array
                (
                )

            [targs1] => Array
                (
                )

            [weapsOn] => 1
        )

    [settings] => Array
        (
            [balanceTip] => Array
                (
                )

            [abil_factor] => 0.15
            [author] => SirCoqaLot.
            [alpha] => 255
            [authorDisplay] => SirCoqaLot.
            [version] => 1.0
            [element] => darkness
            [rarity] => unique
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => 2.417
                    [y] => -10.4177
                    [z] => -51.2
                    [scale] => 0.63
                    [rot] => 0.261799
                    [file] => Doodads\Cityscape\Props\FountainRuined\FountainRuined.mdl
                    [red] => 50
                    [green] => 50
                    [blue] => 50
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [1] => Array
                (
                    [x] => 2.83392
                    [y] => 43.9445
                    [z] => 0
                    [scale] => 1
                    [rot] => 5.25186
                    [file] => Doodads\Outland\Props\Stake\Stake1.mdl
                    [red] => 100
                    [green] => 100
                    [blue] => 100
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [2] => Array
                (
                    [x] => -16.3077
                    [y] => 46.8446
                    [z] => 0
                    [scale] => 1
                    [rot] => 0.521991
                    [file] => Doodads\Outland\Props\Stake\Stake1.mdl
                    [red] => 100
                    [green] => 100
                    [blue] => 100
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [3] => Array
                (
                    [x] => -15.1974
                    [y] => 55.4579
                    [z] => 0
                    [scale] => 1.1
                    [rot] => 5.11855
                    [file] => Doodads\Outland\Props\Stake\Stake1.mdl
                    [red] => 100
                    [green] => 100
                    [blue] => 100
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [4] => Array
                (
                    [x] => -7.89373
                    [y] => 20.0263
                    [z] => 0
                    [scale] => 0.85
                    [rot] => 1.19757
                    [file] => Doodads\Outland\Props\Stake\Stake1.mdl
                    [red] => 100
                    [green] => 100
                    [blue] => 100
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [5] => Array
                (
                    [x] => -2.62863
                    [y] => 31.4012
                    [z] => 0
                    [scale] => 0.8
                    [rot] => 4.71239
                    [file] => Doodads\Outland\Props\Stake\Stake1.mdl
                    [red] => 100
                    [green] => 100
                    [blue] => 100
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [6] => Array
                (
                    [x] => -8.41224
                    [y] => 44.3421
                    [z] => 0
                    [scale] => 0.72
                    [rot] => 1.3439
                    [file] => Environment\UndeadBuildingFire\UndeadSmallBuildingFire2.mdl
                    [red] => 100
                    [green] => 100
                    [blue] => 100
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [7] => Array
                (
                    [x] => -41.3008
                    [y] => -36.0779
                    [z] => -19.2
                    [scale] => 0.31
                    [rot] => 0.174533
                    [file] => Doodads\Cityscape\Props\FountainRuined\FountainRuined.mdl
                    [red] => 50
                    [green] => 50
                    [blue] => 50
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [8] => Array
                (
                    [x] => 37.6973
                    [y] => -46.1291
                    [z] => -6.4
                    [scale] => 0.2
                    [rot] => 5.53269
                    [file] => Doodads\Cityscape\Props\FountainRuined\FountainRuined.mdl
                    [red] => 50
                    [green] => 50
                    [blue] => 50
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [9] => Array
                (
                    [x] => 49.7893
                    [y] => -22.4438
                    [z] => -6.4
                    [scale] => 0.2
                    [rot] => 1.3439
                    [file] => Doodads\Cityscape\Props\FountainRuined\FountainRuined.mdl
                    [red] => 50
                    [green] => 50
                    [blue] => 50
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [10] => Array
                (
                    [x] => 17.0711
                    [y] => -57.3048
                    [z] => -6.4
                    [scale] => 0.2
                    [rot] => 2.96706
                    [file] => Doodads\Cityscape\Props\FountainRuined\FountainRuined.mdl
                    [red] => 50
                    [green] => 50
                    [blue] => 50
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [11] => Array
                (
                    [x] => 30.1552
                    [y] => 18.9916
                    [z] => 0
                    [scale] => 0.6
                    [rot] => 3.7001
                    [file] => Doodads\Ashenvale\Props\ScorchedRemains\ScorchedRemains1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [12] => Array
                (
                    [x] => -24.3134
                    [y] => -11.1754
                    [z] => 0
                    [scale] => 0.8
                    [rot] => 3.90262
                    [file] => Doodads\Ashenvale\Props\ScorchedRemains\ScorchedRemains1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [13] => Array
                (
                    [x] => 41.5075
                    [y] => -49.886
                    [z] => 38.4
                    [scale] => 0.45
                    [rot] => 2.26893
                    [file] => Abilities\Spells\Other\BlackArrow\BlackArrowMissile.mdl
                    [red] => 100
                    [green] => 100
                    [blue] => 100
                    [alpha] => 255
                    [pitch] => -1.62
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [14] => Array
                (
                    [x] => 19.0301
                    [y] => -60.278
                    [z] => 38.4
                    [scale] => 0.45
                    [rot] => 2.26893
                    [file] => Abilities\Spells\Other\BlackArrow\BlackArrowMissile.mdl
                    [red] => 100
                    [green] => 100
                    [blue] => 100
                    [alpha] => 255
                    [pitch] => -1.62
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [15] => Array
                (
                    [x] => -42.4898
                    [y] => -39.1532
                    [z] => 0
                    [scale] => 0.6
                    [rot] => 1.43117
                    [file] => Environment\UndeadBuildingFire\UndeadSmallBuildingFire2.mdl
                    [red] => 100
                    [green] => 100
                    [blue] => 100
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [16] => Array
                (
                    [x] => 50.597
                    [y] => 25.7108
                    [z] => -12.8
                    [scale] => 0.55
                    [rot] => 4.21513
                    [file] => Doodads\LordaeronSummer\Props\ImpaledBody\ImpaledBody1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [17] => Array
                (
                    [x] => 36.0387
                    [y] => 42.5051
                    [z] => -12.8
                    [scale] => 0.55
                    [rot] => 4.644
                    [file] => Doodads\LordaeronSummer\Props\ImpaledBody\ImpaledBody1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [18] => Array
                (
                    [x] => -47.7659
                    [y] => 2.48793
                    [z] => -19.2
                    [scale] => 0.31
                    [rot] => 2.56563
                    [file] => Doodads\Cityscape\Props\FountainRuined\FountainRuined.mdl
                    [red] => 50
                    [green] => 50
                    [blue] => 50
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [19] => Array
                (
                    [x] => 52.5029
                    [y] => -23.7988
                    [z] => 38.4
                    [scale] => 0.45
                    [rot] => 2.26893
                    [file] => Abilities\Spells\Other\BlackArrow\BlackArrowMissile.mdl
                    [red] => 100
                    [green] => 100
                    [blue] => 100
                    [alpha] => 255
                    [pitch] => -1.62
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [20] => Array
                (
                    [x] => -49.916
                    [y] => 3.01022
                    [z] => 0
                    [scale] => 0.6
                    [rot] => 5.86431
                    [file] => Environment\UndeadBuildingFire\UndeadSmallBuildingFire2.mdl
                    [red] => 100
                    [green] => 100
                    [blue] => 100
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [21] => Array
                (
                    [x] => 3.03791
                    [y] => -5.25233
                    [z] => 32
                    [scale] => 0.45
                    [rot] => 2.3093
                    [file] => Doodads\Ashenvale\Props\ScorchedRemains\ScorchedRemains1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [22] => Array
                (
                    [x] => -8.18166
                    [y] => -51.501
                    [z] => 0
                    [scale] => 0.85
                    [rot] => 2.94961
                    [file] => Doodads\Outland\Props\Stake\Stake1.mdl
                    [red] => 100
                    [green] => 100
                    [blue] => 100
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [23] => Array
                (
                    [x] => -1.36126
                    [y] => -56.3923
                    [z] => 0
                    [scale] => 0.7
                    [rot] => 4.51878
                    [file] => Doodads\Outland\Props\Stake\Stake1.mdl
                    [red] => 100
                    [green] => 100
                    [blue] => 100
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [24] => Array
                (
                    [x] => -8.46249
                    [y] => -60.2559
                    [z] => 0
                    [scale] => 0.65
                    [rot] => 4.15553
                    [file] => Doodads\Outland\Props\Stake\Stake1.mdl
                    [red] => 100
                    [green] => 100
                    [blue] => 100
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

        )

    [dmgTable] => Array
        (
        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => Header
                    [code] => globals
    //@import
    ProjectileType sir_eredar_attackProj
    //@import
    ProjectileType sir_eredar_waveProj
    //@import
    BuffType sir_eredar_buff
    BuffType sir_eredar_aura
    endglobals
    
    //@import
    function rollForShadowWave takes Tower t returns nothing
    endfunction
    
    public function sir_creepkillaura takes Buff b returns nothing
        if b.getBuffedUnit().getLifePercent() <= 0.055+b.getCaster().getLevel()*0.0006 and b.getBuffedUnit().getSize() < SIZE_BOSS then
            call b.getCaster().killInstantly(b.getBuffedUnit()) 
            call SFXAtUnit("Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl",b.getBuffedUnit().getUnit()) 
        endif 
    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
        set sir_eredar_aura = BuffType.createAuraEffectType(false)
        call sir_eredar_aura.setBuffIcon('@@0@@')
        call sir_eredar_aura.addPeriodicEvent(sir_creepkillaura,1.0)
   endfunction
                    [values] => Array
                        (
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNOrbofSlowness.blp
                            [name] => Shadowbolt Wave
                            [short_explain] => On casting this tower sometimes releases a Shadowbolt Wave dealing damage to multiple.
                            [long_explain] => Every autocast of this tower has a |cffffff8020%|r chance to release |cffffff8012|r shadowbolts. Every shadowbolt flies towards a random target in |cffffff801000|r range and deals |cffffff801700|r spell damage. This Spell has a |cffffff8040%|r chance to trigger if the last autocast released a shadowboltwave. |n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+34|r spell damage
                        )

                )

            [1] => Array
                (
                    [name] => Tower Aura
                    [code] => Array
                        (
                        )

                    [values] => Array
                        (
                            [AURA_powerAdd] => 0
                            [visible] => true
                            [AURA_auraEffect] => sir_eredar_aura
                            [AURA_levelAdd] => 0
                            [AURA_power] => 0
                            [icon] => ReplaceableTextures\CommandButtons\BTNSkeletalLongevity.blp
                            [AURA_targetType] => TARGET_TYPE_CREEPS
                            [long_explain] => Non Boss units in |cffffff80750|r range around the Eredar Diabolist with less then |cffffff805.5%|r of their healthpoints will be killed.|n|n|cffFF8000Level Bonus:|r|n|cffffff80+0.06%|r healthpoints needed for instantkill
                            [AURA_targetSelf] => false
                            [name] => Slow Decay
                            [AURA_level] => 0
                            [short_explain] => Creeps having less than a certain amount of healthpoints will die near the eredar diabolist.
                            [AURA_auraRange] => 750
                        )

                )

            [2] => Array
                (
                    [name] => Autocast
                    [code] => local Tower target = Event.getTarget()
    call sir_eredar_buff.apply(tower,target,1)
    call rollForShadowWave(tower)
                    [values] => Array
                        (
                            [AUTOCAST_cooldown] => 1.5
                            [AUTOCAST_autoRange] => 400
                            [AUTOCAST_manacost] => 0
                            [icon] => ReplaceableTextures\CommandButtons\BTNPossession.blp
                            [AUTOCAST_range] => 400
                            [AUTOCAST_targetType] => TARGET_TYPE_TOWERS
                            [AUTOCAST_numBuffsBeforeIdle] => 1
                            [caster_art] => 
                            [long_explain] => Casts a buff on a nearby tower, if that tower tries to attack in the next |cffffff805|r seconds it will be stunned for |cffffff802.5|r seconds and this tower will deal |cffffff80[stunned tower's DPS x 3]|r as essence damage to the target of the buffed tower. |n|n|cffFF8000Level Bonus:|r|n|cffFFFF80-0.02|r seconds stun duration
                            [target_art] => 
                            [AUTOCAST_autocastType] => AC_TYPE_ALWAYS_BUFF
                            [AUTOCAST_buffType] => 0
                            [AUTOCAST_isExtended] => true
                            [name] => Siphon Essence
                            [AUTOCAST_targetSelf] => false
                            [short_explain] => This tower will stun a nearby tower for a short period of time and deal its damage as essence damage to the buffed tower's target.
                        )

                )

            [3] => Array
                (
                    [name] => On Tower Creation
                    [code] => set tower.userInt = 0 // stores whether last autocast triggered shadowbolts
    set tower.userInt2 = 12 // stores num shadowbolts to release
    set tower.userReal = 1700 // stores base shadowbolt damage
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => BUim
                    [oeValues] => Array
                        (
                            [EditorName] => Slow Decay
                            [Buffubertip] => This units lifeforce is slowly sucked away it will die if having a certain amount of hp.
                            [EffectArt] => Array
                                (
                                )

                            [TargetArt] => Abilities\Spells\Orc\Voodoo\VoodooAuraTarget.mdl
                            [Bufftip] => Slow Decay
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNSkeletalLongevity.blp
                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
            [0] => Array
                (
                    [export] => false
                    [category] => global
                    [typ] => ProjectileType
                    [name] => sir_eredar_attackProj
                )

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

            [2] => Array
                (
                    [export] => false
                    [category] => global
                    [typ] => BuffType
                    [name] => sir_eredar_buff
                )

        )

)