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

            [Art] => ReplaceableTextures\CommandButtons\BTNSacrifice.blp
            [dmgplus1] => 2098
            [bldtm] => 1
            [goldcost] => 2400
            [sides1] => 1
            [manaN] => 100
            [acquire] => 850
            [upgrades] => Array
                (
                )

            [Upgrade] => Array
                (
                )

            [Name] => Human Sacrifice
            [red] => 100
            [weapTp1] => missile
            [MissileHoming] => 1
            [file] => Doodads\Ruins\Props\RuinsBloodyAltar\RuinsBloodyAltar.mdl
            [Missileart] => Abilities\Weapons\AvengerMissile\AvengerMissile.mdl
            [Missilespeed] => 1500
            [dice1] => 1
            [RngBuff1] => 250
            [regenMana] => 2.5
            [green] => 50
            [modelScale] => 0.9
            [rangeN1] => 850
            [atkType1] => hero
            [cool1] => 1
            [Ubertip] => Sacrifices itself to boost nearby towers.
            [blue] => 100
            [abilList] => Array
                (
                )

            [buildingShadow] => Array
                (
                )

            [targs1] => Array
                (
                )

            [weapsOn] => 1
        )

    [settings] => Array
        (
            [balanceTip] => |cffFFFF00+0.2 |rmana regen/lvl
            [abil_factor] => 0.829
            [author] => DaveMatthews
            [alpha] => 255
            [authorDisplay] => DaveMatthews
            [version] => 1.0
            [element] => darkness
            [rarity] => rare
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => -1.27895
                    [y] => 61.6365
                    [z] => 38.4
                    [scale] => 0.6
                    [rot] => 4.71239
                    [file] => units\undead\Acolyte\Acolyte.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [1] => Array
                (
                    [x] => -42.1155
                    [y] => -50.4152
                    [z] => 0
                    [scale] => 0.35
                    [rot] => 3.14159
                    [file] => Doodads\BlackCitadel\Props\RuneArt\RuneArt1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [2] => Array
                (
                    [x] => 33.875
                    [y] => 9.25377
                    [z] => 0
                    [scale] => 0.45
                    [rot] => 3.83973
                    [file] => Doodads\LordaeronSummer\Props\SkullPile\SkullPile0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [3] => Array
                (
                    [x] => -61.6961
                    [y] => 33.1966
                    [z] => 0
                    [scale] => 0.45
                    [rot] => 3.83973
                    [file] => Doodads\LordaeronSummer\Props\SkullPile\SkullPile0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [4] => Array
                (
                    [x] => -28.4312
                    [y] => 7.5648
                    [z] => 0
                    [scale] => 0.45
                    [rot] => 3.83973
                    [file] => Doodads\LordaeronSummer\Props\SkullPile\SkullPile0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [5] => Array
                (
                    [x] => 51.5761
                    [y] => 12.6397
                    [z] => 0
                    [scale] => 0.5
                    [rot] => 5.68977
                    [file] => Doodads\LordaeronSummer\Props\SkullPile\SkullPile3.mdl
                    [red] => 150
                    [green] => 150
                    [blue] => 150
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [6] => Array
                (
                    [x] => -4.06498
                    [y] => 9.25372
                    [z] => 0
                    [scale] => 0.5
                    [rot] => 5.68977
                    [file] => Doodads\LordaeronSummer\Props\SkullPile\SkullPile3.mdl
                    [red] => 150
                    [green] => 150
                    [blue] => 150
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [7] => Array
                (
                    [x] => 52.3199
                    [y] => 41.8855
                    [z] => 0
                    [scale] => 0.45
                    [rot] => 3.83973
                    [file] => Doodads\LordaeronSummer\Props\SkullPile\SkullPile0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [8] => Array
                (
                    [x] => 44.2871
                    [y] => 31.359
                    [z] => 44.8
                    [scale] => 0.25
                    [rot] => 1.20428
                    [file] => Doodads\BlackCitadel\Props\RuneArt\RuneArt6.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [9] => Array
                (
                    [x] => 40.5608
                    [y] => 60.0905
                    [z] => 44.8
                    [scale] => 0.25
                    [rot] => 6.23083
                    [file] => Doodads\BlackCitadel\Props\RuneArt\RuneArt5.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [10] => Array
                (
                    [x] => 46.0413
                    [y] => -49.8186
                    [z] => 0
                    [scale] => 0.35
                    [rot] => 3.14159
                    [file] => Doodads\BlackCitadel\Props\RuneArt\RuneArt1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [11] => Array
                (
                    [x] => -11.1136
                    [y] => -5.22036
                    [z] => 0
                    [scale] => 0.5
                    [rot] => 5.68977
                    [file] => Doodads\LordaeronSummer\Props\SkullPile\SkullPile3.mdl
                    [red] => 150
                    [green] => 150
                    [blue] => 150
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [12] => Array
                (
                    [x] => -43.0027
                    [y] => -51.5764
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 2.87979
                    [file] => Doodads\LordaeronSummer\Props\TorchHuman\TorchHuman.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [13] => Array
                (
                    [x] => 45.8021
                    [y] => -50.5297
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 0.401426
                    [file] => Doodads\LordaeronSummer\Props\TorchHuman\TorchHuman.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

        )

    [dmgTable] => Array
        (
            [0] => Array
                (
                    [id] => MOD_MANA_REGEN
                    [base] => 0
                    [add] => 0.2
                )

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Attack
                    [code] => local integer numTowers
        local integer level = tower.getLevel() 
        local Tower u
        local Buff b
        local Iterate it = Iterate.overUnitsInRangeOfCaster(tower, TARGET_TOWERS, 200)

        set b = tower.getBuffOfType(dave_blood_altar)
        set numTowers = it.count() - 1

        if b == 0 then
          call SFXAtUnit("Objects\\Spawnmodels\\Human\\HumanBlood\\HumanBloodKnight.mdl", tower.getUnit())
            loop
                set u = it.next()
                exitwhen u == 0
                if u != tower then
                    call dave_blood_target.apply(tower, u, (75 + level)/numTowers)
                endif
            endloop
            if numTowers > 0 then
                call dave_blood_altar.apply(tower, tower, level)
                call tower.addExp(0.5 * numTowers)
            endif
        else
          call it.destroy()    
        endif
                    [values] => Array
                        (
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNImpale.blp
                            [name] => Blood Spill
                            [short_explain] => Has a chance to sacrifice its attack speed to boost surrounding towers.
                            [ONATTACK_chance] => 0.15
                            [ONATTACK_chanceLevelAdd] => 0.004
                            [long_explain] => On attack, this tower has a |cffFFFF8015%|r chance to lose |cffFFFF80100%|r attack speed and boost the attack speed of all towers in |cffFFFF80200|r range by |cffFFFF8075%|r, equally divided among them, for |cffFFFF806|r seconds. Every time it casts Blood Spill, the tower gains |cffFFFF800.5|r experience for every other tower affected. Cannot retrigger when the buff is already active. |n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+1%|r attack speed |r|n|cffFFFF80+0.4%|r chance
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals
        //@import
        BuffType dave_sacrifice_target
        //@import
        BuffType dave_sacrifice_altar
        //@import
        BuffType dave_blood_target
        //@import
        BuffType dave_blood_altar
    endglobals
    
    private function init takes nothing returns nothing
	endfunction
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [2] => Array
                (
                    [name] => Autocast
                    [code] => local Tower target = Event.getTarget()
    local Buff b

    if target.getFamily() != tower.getFamily() then
        if target.getBuffOfType(dave_sacrifice_target) != 0 then
            call dave_sacrifice_target.apply(tower, target, 0)
        else
            set b = dave_sacrifice_target.apply(tower, target, 0)
            set b.userReal = tower.getCurrentAttackDamageWithBonus()*(0.45+(0.006*tower.getLevel()))
            call target.modifyProperty(MOD_DPS_ADD, b.userReal) 
        endif
        
        call dave_sacrifice_altar.apply(tower, tower, tower.getLevel())
    endif
                    [values] => Array
                        (
                            [AUTOCAST_cooldown] => 6
                            [AUTOCAST_autoRange] => 500
                            [AUTOCAST_manacost] => 90
                            [icon] => ReplaceableTextures\CommandButtons\BTNSacrifice.blp
                            [AUTOCAST_range] => 500
                            [AUTOCAST_targetType] => TARGET_TYPE_TOWERS
                            [AUTOCAST_numBuffsBeforeIdle] => 1
                            [caster_art] => Abilities\Spells\Undead\CarrionSwarm\CarrionSwarmDamage.mdl
                            [long_explain] => This tower loses |cffFFFF80100%|r of its damage to boost the dps of a tower in |cffFFFF80500|r range by |cffFFFF8045%|r of its total damage for |cffFFFF806|r seconds. This buff has no effect on towers of the same family.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.6%|r bonus damage
                            [target_art] => Abilities\Spells\Undead\DeathPact\DeathPactCaster.mdl
                            [AUTOCAST_autocastType] => AC_TYPE_OFFENSIVE_BUFF
                            [AUTOCAST_buffType] => dave_sacrifice_target
                            [AUTOCAST_isExtended] => false
                            [name] => Sacrifice
                            [AUTOCAST_targetSelf] => false
                            [short_explain] => Sacrifices its damage to boost another tower.
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
        )

    [units] => Array
        (
        )

    [references] => Array
        (
            [0] => Array
                (
                    [export] => false
                    [category] => global
                    [typ] => BuffType
                    [name] => dave_sacrifice_target
                )

            [1] => Array
                (
                    [export] => false
                    [category] => global
                    [typ] => BuffType
                    [name] => dave_sacrifice_altar
                )

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

            [3] => Array
                (
                    [export] => false
                    [category] => global
                    [typ] => BuffType
                    [name] => dave_blood_altar
                )

        )

)