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

            [Art] => ReplaceableTextures\CommandButtons\BTNTheCaptain.blp
            [turnRate] => 3
            [dmgplus1] => 99
            [bldtm] => 1
            [goldcost] => 450
            [sides1] => 1
            [acquire] => 900
            [upgrades] => Array
                (
                )

            [Upgrade] => Array
                (
                )

            [Name] => Vermilion Aspirant
            [red] => 227
            [weapTp1] => missile
            [MissileHoming] => 1
            [file] => units\human\TheCaptain\TheCaptain.mdl
            [uberSplat] => YTDK
            [Missilespeed] => 5000
            [dice1] => 1
            [RngBuff1] => 250
            [green] => 66
            [modelScale] => 0.6
            [rangeN1] => 900
            [atkType1] => magic
            [cool1] => 2
            [Ubertip] => The Vermilion Vow is an extremist religious order dedicated to the complete eradication of all that is considered evil and foreign.
            [blue] => 52
            [abilList] => Array
                (
                )

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

            [targs1] => Array
                (
                )

            [weapsOn] => 1
        )

    [settings] => Array
        (
            [balanceTip] => |cffFFFF00+7.5% |rdmg to undead (|cffFFFF00+0.4%|r/lvl)|n|cffFFFF00+7.5% |rdmg to magical (|cffFFFF00+0.4%|r/lvl)|n|cffFFFF00+7.5% |rdmg to orcs (|cffFFFF00+0.4%|r/lvl)
            [abil_factor] => 0.1
            [author] => Moppy
            [alpha] => 255
            [authorDisplay] => |c006969FFMoppy|r
            [version] => 1.0
            [element] => celestial
            [rarity] => uncommon
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => 0.516724
                    [y] => -0.112142
                    [z] => 6.4
                    [scale] => 0.55
                    [rot] => 4.71239
                    [file] => buildings\other\CircleOfPower\CircleOfPower.mdl
                    [red] => 255
                    [green] => 160
                    [blue] => 60
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [1] => Array
                (
                    [x] => 0.216553
                    [y] => -1.16508
                    [z] => -102.4
                    [scale] => 1.15
                    [rot] => 1.5708
                    [file] => Doodads\Ruins\Props\RuinsPillar\RuinsPillar2.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [2] => Array
                (
                    [x] => -20.3365
                    [y] => -21.8646
                    [z] => -51.2
                    [scale] => 0.4
                    [rot] => 3.92699
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 255
                    [green] => 160
                    [blue] => 100
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [3] => Array
                (
                    [x] => -2.37126
                    [y] => -0.0864782
                    [z] => 6.4
                    [scale] => 0.2
                    [rot] => 3.14159
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 255
                    [green] => 160
                    [blue] => 100
                    [alpha] => 255
                    [pitch] => -1.57
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [4] => Array
                (
                    [x] => 22.3173
                    [y] => 21.3746
                    [z] => -51.2
                    [scale] => 0.4
                    [rot] => 3.92699
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 255
                    [green] => 160
                    [blue] => 100
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [5] => Array
                (
                    [x] => -20.2224
                    [y] => 20.9826
                    [z] => -51.2
                    [scale] => 0.4
                    [rot] => 3.92699
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 255
                    [green] => 160
                    [blue] => 100
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [6] => Array
                (
                    [x] => 22.4268
                    [y] => -21.4239
                    [z] => -51.2
                    [scale] => 0.4
                    [rot] => 3.92699
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 255
                    [green] => 160
                    [blue] => 100
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [7] => Array
                (
                    [x] => -0.43428
                    [y] => 2.22494
                    [z] => 6.4
                    [scale] => 0.2
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 255
                    [green] => 160
                    [blue] => 100
                    [alpha] => 255
                    [pitch] => -1.57
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [8] => Array
                (
                    [x] => 2.03796
                    [y] => 0.193627
                    [z] => 6.4
                    [scale] => 0.2
                    [rot] => 0
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 255
                    [green] => 160
                    [blue] => 100
                    [alpha] => 255
                    [pitch] => -1.57
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [9] => Array
                (
                    [x] => 0.0498352
                    [y] => -2.14289
                    [z] => 6.4
                    [scale] => 0.2
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 255
                    [green] => 160
                    [blue] => 100
                    [alpha] => 255
                    [pitch] => -1.57
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

        )

    [dmgTable] => Array
        (
            [0] => Array
                (
                    [id] => MOD_DMG_TO_UNDEAD
                    [base] => 0.0750001
                    [add] => 0.004
                )

            [1] => Array
                (
                    [id] => MOD_DMG_TO_MAGIC
                    [base] => 0.0750001
                    [add] => 0.004
                )

            [2] => Array
                (
                    [id] => MOD_DMG_TO_ORC
                    [base] => 0.0750001
                    [add] => 0.004
                )

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Attack
                    [code] => local integer lvl = tower.getLevel()
    local real Debuff = 0.1 + (lvl * 0.004)
    local integer PowerLvl = R2I (Debuff / 0.001)
    local unit TowerUnit = tower.getUnit()
    local Unit c = Event.getTarget()
    local Unit u
    local Iterate i = Iterate.overUnitsInRangeOfUnit(tower, TARGET_CREEPS, c, 225)
        call SetUnitAnimation(TowerUnit, "Stand Victory")
        call TriggerSleepAction(0.5)
        call SFXAtUnit("Abilities\\Spells\\Human\\HolyBolt\\HolyBoltSpecialArt.mdl",c.getUnit())
        call QueueUnitAnimation(TowerUnit, "Stand - 1")
        loop
            set u = i.next()
            exitwhen u == 0
            call tower.doSpellDamage(u, 525 + (21 * lvl), tower.calcSpellCritNoBonus())
                if c.getCategory() == CATEGORY_UNDEAD then
                    call moppy_vermillion_undead_amplify.applyCustomPower(tower, u, lvl, PowerLvl)
                elseif c.getCategory() == CATEGORY_MAGIC then
                    call cb_stun.applyOnlyTimed(tower, u, 0.6 + (0.012 * lvl))
                elseif c.getCategory() == CATEGORY_ORC then
                    call moppy_vermillion_orc_slow.applyCustomPower(tower, u, lvl, PowerLvl)             
                endif
        endloop
                    [values] => Array
                        (
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNHolyBolt.blp
                            [name] => Zealous Extermination
                            [short_explain] => Deals spell damage in an AoE around the target and applies race-specific ailments if foes affected are undead, magical, or orcs.
                            [ONATTACK_chance] => 1.0
                            [ONATTACK_chanceLevelAdd] => 0.0
                            [long_explain] => Deals |cffFFFF80525|r spell damage in |cffFFFF80250|r range around the target and applies race-specific ailments to foes affected:|n|nUndead: |cffFFFF80+10%|r increased attack damage taken for |cffFFFF803|r seconds|nMagical: |cffFFFF800.6|r seconds stun|nOrcs: |cffFFFF8010%|r slow for |cffFFFF803|r seconds|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+21|r spell damage|n|cffFFFF80+0.4%|r increased attack damage taken (undead)|n|cffFFFF80+0.012|r seconds stun (magical)|n|cffFFFF80+0.4%|r slow (orcs)
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals
    //@import
    BuffType moppy_vermillion_undead_amplify
    //@import
    BuffType moppy_vermillion_orc_slow
    endglobals
    
    //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] => 
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
        )

    [units] => Array
        (
        )

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

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

        )

    [lightning] => Array
        (
        )

)