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

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

            [Upgrade] => Array
                (
                )

            [Name] => Vermilion Initiate
            [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] => 7.3
            [buildingShadow] => Array
                (
                )

            [targs1] => Array
                (
                )

            [weapsOn] => 1
        )

    [settings] => Array
        (
            [balanceTip] => |cffFFFF00+7.5% |rdmg to undead (|cffFFFF00+0.3%|r/lvl)|n|cffFFFF00+7.5% |rdmg to magical (|cffFFFF00+0.3%|r/lvl)|n|cffFFFF00+7.5% |rdmg to orcs (|cffFFFF00+0.3%|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] => -108.8
                    [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] => 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
                )

            [4] => 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
                )

            [5] => 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
                )

        )

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

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

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

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Attack
                    [code] => local integer lvl = tower.getLevel()
    local real Debuff = 0.075 + (lvl * 0.003)
    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, 175 + (7 * 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.5 + (0.01 * 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 |cffFFFF80175|r spell damage in |cffFFFF80225|r range around the target and applies race-specific ailments to foes affected:|n|nUndead: |cffFFFF80+7.5%|r increased attack damage taken for |cffFFFF803|r seconds|nMagical: |cffFFFF800.5|r seconds stun|nOrcs: |cffFFFF807.5%|r slow for |cffFFFF803|r seconds|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+7|r spell damage|n|cffFFFF80+0.3%|r increased attack damage taken (undead)|n|cffFFFF80+0.01|r seconds stun (magical)|n|cffFFFF80+0.3%|r slow (orcs)
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals
    //@export
    BuffType moppy_vermillion_undead_amplify
    //@export
    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
        local Modifier u = Modifier.create()
        local Modifier o = Modifier.create()
        
        set moppy_vermillion_undead_amplify = BuffType.create(3.0, 0.0, false)
        call u.addModification(MOD_ATK_DAMAGE_RECEIVED, 0.0, 0.001)
        call moppy_vermillion_undead_amplify.setBuffModifier(u)
        call moppy_vermillion_undead_amplify.setBuffIcon('@@0@@')
        
        set moppy_vermillion_orc_slow = BuffType.create(3.0, 0.0, false)
        call o.addModification(MOD_MOVESPEED, 0.0, -0.001)
        call moppy_vermillion_orc_slow.setBuffModifier(o)
        call moppy_vermillion_orc_slow.setBuffIcon('@@1@@')
	endfunction
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [2] => Array
                (
                    [name] => On Tower Creation
                    [code] => Array
                        (
                        )

                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => BNab
                    [oeValues] => Array
                        (
                            [EditorName] => Zealous Extermination
                            [Buffubertip] => Increased attack damage taken.
                            [TargetArt] => Abilities\Spells\Other\ImmolationRed\ImmolationRedDamage.mdl
                            [Bufftip] => Zealous Extermination
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNHolyBolt.blp
                        )

                )

            [1] => Array
                (
                    [id] => @@1@@
                    [derivedFrom] => BNab
                    [oeValues] => Array
                        (
                            [Targetattach] => head
                            [EditorName] => Zealous Extermination
                            [Buffubertip] => Slowed.
                            [TargetArt] => Abilities\Spells\Orc\StasisTrap\StasisTotemTarget.mdl
                            [Bufftip] => Zealous Extermination
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNHolyBolt.blp
                        )

                )

        )

    [units] => Array
        (
        )

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

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

        )

    [lightning] => Array
        (
        )

)