Array
(
    [scriptVersion] => 8
    [oeValues] => Array
        (
            [targCount1] => 5
            [Farea1] => 400
            [auto] => Array
                (
                )

            [Art] => ReplaceableTextures\CommandButtons\BTNWarlockIncinerate.blp
            [damageLoss1] => 0.3
            [dmgplus1] => 212
            [bldtm] => 1
            [goldcost] => 1200
            [sides1] => 5
            [acquire] => 1300
            [upgrades] => Array
                (
                )

            [Upgrade] => Array
                (
                )

            [Name] => Prince of Ember
            [weapTp1] => mbounce
            [file] => units\creeps\Revenant\Revenant.mdl
            [uberSplat] => YTDJ
            [Missilespeed] => 2000
            [Missileart] => Abilities\Weapons\FireBallMissile\FireBallMissile.mdl
            [dice1] => 1
            [RngBuff1] => 250
            [green] => 75
            [modelScale] => 0.8
            [rangeN1] => 1300
            [atkType1] => pierce
            [cool1] => 1.5
            [Ubertip] => A revered sovereign of the Ember Realm, endowed with unparalleled command over the elemental forces of fire.
            [blue] => 75
            [abilList] => Array
                (
                )

            [buildingShadow] => Array
                (
                )

            [targs1] => Array
                (
                )

            [weapsOn] => 1
        )

    [settings] => Array
        (
            [balanceTip] => |cffCCFF00Bounce attack:|n   |cffFFFF005|r targets|n   |cffFFFF00-30%|r damage per bounce|n|cffFFFF005%|r spell crit chance (|cffFFFF00+0.25%|r/lvl)
            [abil_factor] => 0.25
            [author] => Moppy
            [alpha] => 255
            [authorDisplay] => |c006969FFMoppy|r
            [version] => 1.0
            [element] => fire
            [rarity] => rare
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => -0.457328
                    [y] => -2.02867
                    [z] => 0
                    [scale] => 0.5
                    [rot] => 4.71239
                    [file] => Doodads\Outland\Rocks\Outland_MagmaRock\Outland_MagmaRock2.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [1] => Array
                (
                    [x] => 0.356628
                    [y] => 0.37415
                    [z] => 76.8
                    [scale] => 0.75
                    [rot] => 1.5708
                    [file] => Abilities\Spells\Other\ImmolationRed\ImmolationRedTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [2] => Array
                (
                    [x] => -51.346
                    [y] => -54.041
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 1.5708
                    [file] => Doodads\Outland\Plants\Outland_Plant\Outland_Plant3.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [3] => Array
                (
                    [x] => 56.1107
                    [y] => -38.1266
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 0
                    [file] => Doodads\Outland\Plants\Outland_Plant\Outland_Plant1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [4] => Array
                (
                    [x] => -30.7065
                    [y] => 45.9143
                    [z] => 38.4
                    [scale] => 0.3
                    [rot] => 3.14159
                    [file] => Doodads\Outland\Plants\Outland_Plant\Outland_Plant3.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

        )

    [dmgTable] => Array
        (
            [0] => Array
                (
                    [id] => MOD_SPELL_CRIT_CHANCE
                    [base] => 0.0375
                    [add] => 0.0025
                )

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => Header
                    [code] => globals
        //@export
        BuffType moppy_realm_of_ember_aura
        //@export
        BuffType moppy_searing_strike_attack
    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 r = Modifier.create()
        local Modifier g = Modifier.create()
        
        set moppy_realm_of_ember_aura = BuffType.createAuraEffectType(false)
        call r.addModification(MOD_DMG_FROM_FIRE, 0.0, 0.001)
        call moppy_realm_of_ember_aura.setBuffModifier(r)
        call moppy_realm_of_ember_aura.setBuffIcon('@@0@@')        
        
        set moppy_searing_strike_attack = BuffType.create(0.0, 0.0, false) // Set custom timed in OnDamage
        call g.addModification(MOD_HP_REGEN_PERC, 0.0, -0.001)             // Set local variable in OnDamage
        call moppy_searing_strike_attack.setBuffModifier(g)
        call moppy_searing_strike_attack.setBuffIcon('@@1@@')        
	endfunction
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [1] => Array
                (
                    [name] => On Damage
                    [code] => local Unit c = Event.getTarget()
    local integer lvl = tower.getLevel()
    local integer HpRegLoss = R2I((0.15 + lvl * 0.0075) * 1000)
    
    call tower.doSpellDamage(c, tower.userReal + (lvl * tower.userReal2), tower.calcSpellCritNoBonus())
    call moppy_searing_strike_attack.applyCustomTimed(tower, c, HpRegLoss, 3.0)
    call SFXOnUnit("Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl",c.getUnit(),"origin")
                    [values] => Array
                        (
                            [ONDAMAGE_chance] => 0.15
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNFireBolt.blp
                            [name] => Searing Strike
                            [short_explain] => The tower has a chance on hit to unleash blasts of intense heat on its targets, dealing spell damage and reducing their health regeneration.
                            [ONDAMAGE_chanceLevelAdd] => 0.004
                            [long_explain] => The tower has a |cffFFFF8015%|r chance on hit to unleash blasts of intense heat on its targets, dealing |cffFFFF801500|r spell damage and reducing their health regeneration by |cffFFFF8015%|r for |cffFFFF803|r seconds.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+75|r spell damage|n|cffFFFF80+0.75%|r reduced health regeneration|n|cffFFFF80+0.4%|r chance
                        )

                )

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

                    [values] => Array
                        (
                            [AURA_powerAdd] => 2
                            [visible] => true
                            [AURA_auraEffect] => moppy_realm_of_ember_aura
                            [AURA_levelAdd] => 2
                            [AURA_power] => 100
                            [icon] => ReplaceableTextures\CommandButtons\BTNWarlockIncinerate.blp
                            [AURA_targetType] => TARGET_TYPE_CREEPS
                            [long_explain] => Increases the vulnerability of enemies in |cffFFFF801300|r range to damage from |cFFFF5300Fire|r towers by |cffFFFF8010%|r. |n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.2%|r vulnerability
                            [AURA_targetSelf] => false
                            [name] => Realm of Ember
                            [AURA_level] => 100
                            [short_explain] => Makes nearby foes more vulnerable to |cFFFF5300Fire|r towers.
                            [AURA_auraRange] => 1300
                        )

                )

            [3] => Array
                (
                    [name] => On Tower Creation
                    [code] => set tower.userReal = 1500
set tower.userReal2 = 75
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => BNab
                    [oeValues] => Array
                        (
                            [Targetattach] => Array
                                (
                                )

                            [EditorName] => Realm of Ember
                            [Buffubertip] => Taking increased damage from fire towers.
                            [TargetArt] => Array
                                (
                                )

                            [Bufftip] => Realm of Ember
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNWarlockIncinerate.blp
                        )

                )

            [1] => Array
                (
                    [id] => @@1@@
                    [derivedFrom] => BNab
                    [oeValues] => Array
                        (
                            [EditorName] => Searing Strike
                            [Buffubertip] => Reduced health regeneration.
                            [TargetArt] => Abilities\Spells\Human\FlameStrike\FlameStrikeEmbers.mdl
                            [Bufftip] => Searing Strike
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNFireBolt.blp
                        )

                )

        )

    [units] => Array
        (
        )

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

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

        )

    [lightning] => Array
        (
        )

)