Array
(
    [scriptVersion] => 7
    [oeValues] => Array
        (
            [RngBuff1] => 250
            [MissileHoming] => 1
            [Upgrade] => Array
                (
                )

            [targs1] => Array
                (
                )

            [goldcost] => 1150
            [weapsOn] => 1
            [dice1] => 1
            [Missilespeed] => 1500
            [moveHeight] => 45
            [file] => units\creeps\VoidWalker\VoidWalker.mdl
            [atkType1] => chaos
            [modelScale] => 0.6
            [weapTp1] => missile
            [acquire] => 800
            [rangeN1] => 950
            [upgrades] => Array
                (
                )

            [cool1] => 2
            [Ubertip] => A mysterious Ghost, which deals different damage types.
            [green] => 0
            [abilList] => Array
                (
                )

            [Name] => Greater Elemental Ghost
            [Missileart] => Abilities\Weapons\ProcMissile\ProcMissile.mdl
            [Art] => ReplaceableTextures\CommandButtons\BTNVoidWalker.blp
            [red] => 200
            [buildingShadow] => Array
                (
                )

            [unitSound] => ObsidianDestroyer
            [blue] => 0
            [turnRate] => 1
            [sides1] => 1
            [uberSplat] => OSMA
            [auto] => Array
                (
                )

            [dmgplus1] => 2000
            [bldtm] => 1
        )

    [settings] => Array
        (
            [author] => Der_kleine_Tomy
            [element] => fire
            [authorDisplay] => |c00ff0000Der_kleine_Tomy|r
            [alpha] => 255
            [balanceTip] => |cffFFFF00+0.7% |rtrigger chances/lvl
            [rarity] => uncommon
            [version] => 1.0
            [abil_factor] => 0.81
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => -0.638907
                    [y] => -2.35261
                    [z] => 0
                    [scale] => 0.375
                    [rot] => 0
                    [file] => Doodads\LordaeronSummer\Structures\InnScorched\InnScorched.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [1] => Array
                (
                    [x] => -43.838
                    [y] => 18.6423
                    [z] => 0
                    [scale] => 0.45
                    [rot] => 5.18363
                    [file] => Doodads\Cinematic\FireRockSmall\FireRockSmall.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [2] => Array
                (
                    [x] => -1.95108
                    [y] => -38.0871
                    [z] => 0
                    [scale] => 0.45
                    [rot] => 6.17847
                    [file] => Doodads\Cinematic\FireRockSmall\FireRockSmall.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [3] => Array
                (
                    [x] => 35.3686
                    [y] => 17.6551
                    [z] => 0
                    [scale] => 0.45
                    [rot] => 3.75246
                    [file] => Doodads\Cinematic\FireRockSmall\FireRockSmall.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [4] => Array
                (
                    [x] => -4.16296
                    [y] => 9.53388
                    [z] => 76.8
                    [scale] => 2.25
                    [rot] => 1.71042
                    [file] => Abilities\Spells\Items\AIfb\AIfbTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

        )

    [dmgTable] => Array
        (
            [0] => Array
                (
                    [id] => MOD_TRIGGER_CHANCES
                    [base] => 0
                    [add] => 0.007
                )

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Damage
                    [code] => local Creep target = Event.getTarget()
    local boolean immune = target.isImmune()
    local boolean sif = target.getArmorType() == ARMOR_SIF
    local boolean zod = target.getArmorType() == ARMOR_ZOD
    local integer level = tower.getLevel()
    local real damageadd
    local real posDamageTypes = 3
  
    if immune then
        set posDamageTypes = 2
    endif
  
    if GetRandomInt(1, 100) > 50 then
        if sif or zod then
            set damageadd = 1.00
        elseif tower.calcChance(1.00/posDamageTypes) then
            set damageadd = 1.80
        elseif not immune and tower.calcChance(1.00/(posDamageTypes - 1)) then
            set damageadd = 1.50
        else
            set damageadd = 1.20
        endif
    else
        if zod then
            set damageadd = 0.90
        elseif sif then
            if not immune or (immune and tower.calcChance(0.50)) then
                set damageadd = 0.40
            else
                set damageadd = 0.00
            endif
        elseif tower.calcChance(1.00/(6.00-posDamageTypes)) then
            set damageadd = 1.00
        elseif tower.calcChance(1.00/(6.00-(posDamageTypes + 1))) then
            set damageadd = 0.90
        elseif not immune or (immune and tower.calcChance(1.00/(6.00-(posDamageTypes + 2)))) then
            set damageadd = 0.60
        else
            set damageadd = 0.00
        endif
    endif
  
    set Event.damage = Event.damage * damageadd
    if damageadd > 1.00 then
        call tower.getOwner().displaySmallFloatingText(formatFloat(damageadd,2), tower, 0, 255, 0, 40)
    elseif damageadd < 1.00 then
        call tower.getOwner().displaySmallFloatingText(formatFloat(damageadd,2), tower, 255, 0, 0, 40)
    else
        call tower.getOwner().displaySmallFloatingText(formatFloat(damageadd,2), tower, 255, 255, 255, 40)
    endif
                    [values] => Array
                        (
                            [ONDAMAGE_chance] => 1.0
                            [icon] => ReplaceableTextures\CommandButtons\BTNOrbofSlowness.blp
                            [visible] => true
                            [name] => Mimic
                            [short_explain] => The Ghost is able to deal different damage types.
                            [ONDAMAGE_chanceLevelAdd] => 0.0
                            [long_explain] => The Ghost's attacks are varied, and its damage type will either be good or bad against its target. Trigger chance adjusts the good/bad attacks to be better.
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals
        //@import
        BuffType tomy_ElementalWrath
    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
                        (
                            [icon] => 
                            [visible] => false
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [2] => Array
                (
                    [name] => On Attack
                    [code] => if tower.getBuffOfType(tomy_ElementalWrath) == 0 then
        call tomy_ElementalWrath.applyCustomTimed(tower, tower, 150 + tower.getLevel() * 7, 5.0 + 0.1 * tower.getLevel())
    endif
                    [values] => Array
                        (
                            [icon] => ReplaceableTextures\CommandButtons\BTNSpiritLink.blp
                            [visible] => true
                            [name] => Elemental Wrath
                            [short_explain] => The Ghost has a chance on attack to increase its triggerchance temporarily.
                            [ONATTACK_chance] => 0.20
                            [ONATTACK_chanceLevelAdd] => 0.0
                            [long_explain] => The Elemental Ghost has a |cffFFFF8020%|r chance to unleash it's wrath on attack, increasing its trigger chance by |cffFFFF8015%|r for |cffFFFF805|r seconds. Cannot retrigger during Elemental Wrath.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.1|r seconds duration|r|n|cffFFFF80+0.7%|r trigger chance increase
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
        )

    [units] => Array
        (
        )

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

        )

)