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

            [targs1] => Array
                (
                )

            [goldcost] => 3800
            [weapsOn] => 1
            [castbsw] => 1.17
            [dice1] => 1
            [castpt] => 0.3
            [Missilespeed] => 1500
            [file] => units\nightelf\DruidoftheClaw\DruidoftheClaw.mdl
            [dmgpt1] => 0.15
            [atkType1] => pierce
            [modelScale] => 0.9
            [weapTp1] => msplash
            [acquire] => 900
            [rangeN1] => 900
            [upgrades] => Array
                (
                )

            [cool1] => 1.5
            [Ubertip] => From the flesh of Ymir, king of the Jötanr, gods fashioned the mortal realms. Born of venom dripped into the frozen waters of Elivágar, Ymir was exiled to the lonely wastes of Ginnungagap where he mastered Icy powers.
            [backSw1] => 0.53
            [green] => 95
            [abilList] => Array
                (
                )

            [Qarea1] => 400
            [Name] => Ymir
            [Missileart] => Abilities\Spells\Undead\FreezingBreath\FreezingBreathMissile.mdl
            [Art] => ReplaceableTextures\CommandButtons\BTNDruidOfTheClaw.blp
            [red] => 125
            [buildingShadow] => Array
                (
                )

            [turnRate] => 3
            [blue] => 240
            [Qfact1] => 0.25
            [sides1] => 1
            [uberSplat] => OSMA
            [auto] => Array
                (
                )

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

    [settings] => Array
        (
            [author] => IamanEvilMan
            [element] => ice
            [authorDisplay] => |c00ff0000IamanEvilMan|r
            [alpha] => 255
            [balanceTip] => |cffCCFF00Splash attack:|n   |cffFFFF00400|r AoE: |cffFF800025%|r damage|r|n|cffFFFF00+10% |rdamage/lvl
            [rarity] => unique
            [version] => 1.0
            [abil_factor] => 0.4146
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => -48.1842
                    [y] => 30.4602
                    [z] => 0
                    [scale] => 0.5
                    [rot] => 4.69494
                    [file] => Doodads\Northrend\Rocks\North_IceClaw\North_IceClaw9.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [1] => Array
                (
                    [x] => 51.228
                    [y] => 35.0835
                    [z] => 0
                    [scale] => 0.5
                    [rot] => 3.12414
                    [file] => Doodads\Northrend\Rocks\North_IceClaw\North_IceClaw9.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [2] => Array
                (
                    [x] => -27.3553
                    [y] => -63.6625
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 4.71239
                    [file] => Doodads\Cinematic\EyeOfSargeras\EyeOfSargeras.mdl
                    [red] => 25
                    [green] => 75
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [3] => Array
                (
                    [x] => 41.9511
                    [y] => -45.7868
                    [z] => 0
                    [scale] => 0.5
                    [rot] => 3.12414
                    [file] => Doodads\Northrend\Rocks\North_IceClaw\North_IceClaw9.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [4] => Array
                (
                    [x] => -45.133
                    [y] => -26.0851
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 0
                    [file] => Doodads\LordaeronSummer\Props\SkullPile\SkullPile0.mdl
                    [red] => 190
                    [green] => 155
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [5] => Array
                (
                    [x] => -7.11081
                    [y] => -5.93871
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 0
                    [file] => Doodads\LordaeronSummer\Props\SkullPile\SkullPile0.mdl
                    [red] => 190
                    [green] => 155
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [6] => Array
                (
                    [x] => -3.4304
                    [y] => -36.0533
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 1.55334
                    [file] => Doodads\LordaeronSummer\Props\SkullPile\SkullPile0.mdl
                    [red] => 190
                    [green] => 155
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [7] => Array
                (
                    [x] => -42.7442
                    [y] => -54.8235
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 1.55334
                    [file] => Doodads\LordaeronSummer\Props\SkullPile\SkullPile0.mdl
                    [red] => 190
                    [green] => 155
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [8] => Array
                (
                    [x] => -19.9984
                    [y] => -59.4999
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 1.55334
                    [file] => Doodads\LordaeronSummer\Props\SkullPile\SkullPile0.mdl
                    [red] => 190
                    [green] => 155
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [9] => Array
                (
                    [x] => 33.168
                    [y] => -10.15
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 1.55334
                    [file] => Doodads\LordaeronSummer\Props\SkullPile\SkullPile0.mdl
                    [red] => 190
                    [green] => 155
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [10] => Array
                (
                    [x] => 46.8529
                    [y] => -56.2321
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 1.55334
                    [file] => Doodads\LordaeronSummer\Props\SkullPile\SkullPile0.mdl
                    [red] => 190
                    [green] => 155
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [11] => Array
                (
                    [x] => -60.4489
                    [y] => 6.94876
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 1.55334
                    [file] => Doodads\LordaeronSummer\Props\SkullPile\SkullPile0.mdl
                    [red] => 190
                    [green] => 155
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [12] => Array
                (
                    [x] => 49.4814
                    [y] => 12.4337
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 1.55334
                    [file] => Doodads\LordaeronSummer\Props\SkullPile\SkullPile0.mdl
                    [red] => 190
                    [green] => 155
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [13] => Array
                (
                    [x] => -57.4447
                    [y] => -54.3529
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 1.55334
                    [file] => Doodads\LordaeronSummer\Props\SkullPile\SkullPile0.mdl
                    [red] => 190
                    [green] => 155
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [14] => Array
                (
                    [x] => 21.203
                    [y] => 25.8843
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 1.55334
                    [file] => Doodads\LordaeronSummer\Props\SkullPile\SkullPile0.mdl
                    [red] => 190
                    [green] => 155
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

        )

    [dmgTable] => Array
        (
            [0] => Array
                (
                    [id] => MOD_DAMAGE_BASE_PERC
                    [base] => 0
                    [add] => 0.1
                )

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Tower Creation
                    [code] => //This allows Ymir to turn and face his foes
    call AddUnitAnimationProperties(tower.getUnit(), "stand alternate", false)
    //Ymir only gains Base Damage if he kills a unit under the effects of his debuff, so previous kills do not count
    set tower.userInt = 0
                    [values] => Array
                        (
                            [icon] => 
                            [visible] => false
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [1] => Array
                (
                    [name] => On Damage
                    [code] => local Creep target = Event.getTarget()
    local integer slow_power = 1000-R2I(target.getLifePercent()*1000) //slow becomes less powerful with every cast
    local real Wrath_Dmg = tower.getCurrentAttackDamageWithBonus() * (.1 + .006*tower.getLevel())
    
    call tower.doSpellDamage(target, Wrath_Dmg, tower.calcSpellCritNoBonus())
    call IamAnEvilMan_Wrath_of_Ymir.applyCustomTimed(tower, target, slow_power, 2.0)
    call SFXAtUnit("Abilities\\Weapons\\ZigguratFrostMissile\\ZigguratFrostMissile.mdl", target.getUnit())
                    [values] => Array
                        (
                            [ONDAMAGE_chance] => .20
                            [icon] => ReplaceableTextures\CommandButtons\BTNDevourMagic.blp
                            [visible] => true
                            [name] => Wrath of Ymir
                            [short_explain] => Ymir has a chance on damage to slow and deal some extra spell damage.
                            [ONDAMAGE_chanceLevelAdd] => 0.004
                            [long_explain] => When Ymir damages a creep, there is a |cffFFFF8020%|r chance that he deals an additional |cffFFFF8010%|r of his attack damage as spell damage and slows the target by an amount equal to the percent of its remaining hitpoints for |cffFFFF802|r seconds. |n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.4%|r chance |n|cffFFFF80+0.6%|r damage
                        )

                )

            [2] => Array
                (
                    [name] => On Tower Details
                    [code] => local real Wrath_Dmg = tower.getCurrentAttackDamageWithBonus() * (.1 + .006*tower.getLevel())

    call EvilManValues.setValue(0, I2S(R2I(Wrath_Dmg)))
    return EvilManValues
                    [values] => Array
                        (
                            [0] => Array
                                (
                                    [_value] => 0
                                    [typ] => string
                                )

                        )

                )

            [3] => Array
                (
                    [name] => Header
                    [code] => globals
    BuffType IamAnEvilMan_Blood_of_Ymir 
    BuffType IamAnEvilMan_Flesh_of_Ymir
    BuffType IamAnEvilMan_Wrath_of_Ymir
    MultiboardValues EvilManValues
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 m = Modifier.create()
    call m.addModification(MOD_DMG_FROM_ICE, 0.25, 0.004) 
    set IamAnEvilMan_Blood_of_Ymir = BuffType.create( 6.00, 0.08, false )
    call IamAnEvilMan_Blood_of_Ymir.setBuffModifier(m)
    call IamAnEvilMan_Blood_of_Ymir.setStackingGroup("IamAnEvilMan_Blood_of_Ymir")
    call IamAnEvilMan_Blood_of_Ymir.setBuffIcon('@@0@@')
   
    set m = Modifier.create()
    call m.addModification(MOD_DEBUFF_RESISTANCE,0.25,0.006)
    set IamAnEvilMan_Flesh_of_Ymir = BuffType.createAuraEffectType(true)
    call IamAnEvilMan_Flesh_of_Ymir.setBuffModifier(m)
    call IamAnEvilMan_Flesh_of_Ymir.setStackingGroup("IamAnEvilMan_Flesh_of_Ymir")
    call IamAnEvilMan_Flesh_of_Ymir.setBuffIcon('@@1@@')
    
    set m = Modifier.create()
    call m.addModification(MOD_MOVESPEED,-1,0.001) 
    set IamAnEvilMan_Wrath_of_Ymir=BuffType.create(0,0,false) 
    call IamAnEvilMan_Wrath_of_Ymir.setBuffModifier(m)	 
    call IamAnEvilMan_Wrath_of_Ymir.setBuffIcon('@@2@@')  

    set EvilManValues = MultiboardValues.create(1)
    call EvilManValues.setKey(0, "Wrath Spelldamage")
    
endfunction
                    [values] => Array
                        (
                            [icon] => 
                            [visible] => false
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [4] => Array
                (
                    [name] => On Unit Comes In Range
                    [code] => call IamAnEvilMan_Blood_of_Ymir.apply(tower, Event.getTarget(), tower.getLevel())
                    [values] => Array
                        (
                            [icon] => ReplaceableTextures\CommandButtons\BTNNeutralManaShield.blp
                            [visible] => true
                            [name] => Blood of Ymir
                            [short_explain] => Creeps that come into range of Ymir temporarily take extra damage from |cFF00FFFFIce|r towers.
                            [UNITINRANGE_targetType] => TARGET_TYPE_CREEPS
                            [long_explain] => When a creep comes in |cffFFFF80900|r range of Ymir, he debuffs the creep for |cffFFFF806|r seconds, increasing vulnerability to |cFF00FFFFIce|r towers by |cffFFFF8025%|r. |n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.08|r seconds duration|n|cffFFFF80+0.4%|r vulnerability
                            [UNITINRANGE_range] => 900
                        )

                )

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

                    [values] => Array
                        (
                            [icon] => ReplaceableTextures\CommandButtons\BTNReplenishMana.blp
                            [visible] => true
                            [AURA_auraEffect] => IamAnEvilMan_Flesh_of_Ymir
                            [AURA_power] => 0
                            [long_explain] => The ancient Flesh of Ymir grants him |cffFFFF80-25%|r debuff duration. |n|n|cffFF8000Level Bonus:|r|n|cffFFFF80-0.6%|r debuff duration
                            [AURA_level] => 0
                            [AURA_auraRange] => 0.00
                            [AURA_targetType] => TARGET_TYPE_TOWERS
                            [AURA_levelAdd] => 1
                            [AURA_powerAdd] => 1
                            [name] => Flesh of Ymir
                            [AURA_targetSelf] => true
                            [short_explain] => Ymir has decreased debuff durations.
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => Brpm
                    [oeValues] => Array
                        (
                            [Bufftip] => Blood of Ymir
                            [Buffubertip] => This unit takes extra damage from Ice towers while debuffed by Blood of Ymir.
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNNeutralManaShield.blp
                            [EditorName] => Blood of Ymir
                        )

                )

            [1] => Array
                (
                    [id] => @@1@@
                    [derivedFrom] => ANmd
                    [oeValues] => Array
                        (
                            [Bufftip] => Flesh of Ymir
                            [Targetattach] => Array
                                (
                                )

                            [Buffubertip] => Ymir's ancient flesh decreases debuff duration.
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNReplenishMana.blp
                            [TargetArt] => Array
                                (
                                )

                            [EditorName] => Flesh of Ymir
                            [race] => undead
                        )

                )

            [2] => Array
                (
                    [id] => @@2@@
                    [derivedFrom] => BCbf
                    [oeValues] => Array
                        (
                            [Bufftip] => Wrath of Ymir
                            [Buffubertip] => This unit is slowed by Wrath of Ymir.
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNDevourMagic.blp
                            [TargetArt] => Array
                                (
                                )

                            [EditorName] => Wrath of Ymir
                            [race] => undead
                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

)