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

            [Art] => ReplaceableTextures\CommandButtons\BTNStormBrewmaster.blp
            [turnRate] => 3
            [dmgplus1] => 3111
            [bldtm] => 1
            [unitSound] => StormPandarenBrewmaster
            [goldcost] => 4000
            [sides1] => 1
            [acquire] => 1000
            [upgrades] => Array
                (
                )

            [Upgrade] => Array
                (
                )

            [Name] => Taita, the Hermit
            [red] => 200
            [weapTp1] => missile
            [MissileHoming] => 1
            [file] => Units\Creeps\StormPandarenBrewmaster\StormPandarenBrewmaster.mdl
            [uberSplat] => OSMA
            [Missileart] => Abilities\Spells\Other\FrostBolt\FrostBoltMissile.mdl
            [Missilespeed] => 1500
            [dice1] => 1
            [RngBuff1] => 250
            [green] => 200
            [modelScale] => 0.5
            [rangeN1] => 1000
            [backSw1] => 0.77
            [atkType1] => pierce
            [cool1] => 1.3
            [Ubertip] => Standing on a snowy peak, he's watched the world below for decades.
            [abilList] => Array
                (
                )

            [moveHeight] => 130
            [dmgpt1] => 0.4
            [buildingShadow] => Array
                (
                )

            [targs1] => Array
                (
                )

            [weapsOn] => 1
        )

    [settings] => Array
        (
            [balanceTip] => Array
                (
                )

            [abil_factor] => 0.55
            [author] => DaveMatthews
            [alpha] => 255
            [authorDisplay] => DaveMatthews
            [version] => 1.0
            [element] => ice
            [rarity] => unique
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => 0.728293
                    [y] => -56.6447
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 4.71239
                    [file] => Doodads\Terrain\CliffDoodad\IceCrownWaterfall\IceCrownWaterfall.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [1] => Array
                (
                    [x] => -0.310304
                    [y] => 3.40148
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 3.10669
                    [file] => Doodads\Icecrown\Terrain\ClearIceRock\ClearIceRock3.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [2] => Array
                (
                    [x] => -53.7369
                    [y] => 5.31197
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 3.14159
                    [file] => Doodads\Terrain\CliffDoodad\IceCrownWaterfall\IceCrownWaterfall.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [3] => Array
                (
                    [x] => 5.00469
                    [y] => 54.9924
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 1.5708
                    [file] => Doodads\Terrain\CliffDoodad\IceCrownWaterfall\IceCrownWaterfall.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [4] => Array
                (
                    [x] => 55.9911
                    [y] => -4.85573
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 0.000000476837
                    [file] => Doodads\Terrain\CliffDoodad\IceCrownWaterfall\IceCrownWaterfall.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [5] => Array
                (
                    [x] => -2.08793
                    [y] => 5.59345
                    [z] => 0
                    [scale] => 0.6
                    [rot] => 0.645772
                    [file] => Abilities\Spells\Human\ManaShield\ManaShieldCaster.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [6] => Array
                (
                    [x] => -36.7846
                    [y] => -49.0335
                    [z] => 0
                    [scale] => 0.6
                    [rot] => 0.366519
                    [file] => Doodads\Icecrown\Water\BubbleGeyserSteam\BubbleGeyserSteam.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [7] => Array
                (
                    [x] => 55.1769
                    [y] => -49.0335
                    [z] => 0
                    [scale] => 0.6
                    [rot] => 5.46288
                    [file] => Doodads\Icecrown\Water\BubbleGeyserSteam\BubbleGeyserSteam.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [8] => Array
                (
                    [x] => 52.0989
                    [y] => 52.1428
                    [z] => 0
                    [scale] => 0.6
                    [rot] => 0.680679
                    [file] => Doodads\Icecrown\Water\BubbleGeyserSteam\BubbleGeyserSteam.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [9] => Array
                (
                    [x] => -46.4012
                    [y] => 46.9704
                    [z] => 0
                    [scale] => 0.6
                    [rot] => 0.802852
                    [file] => Doodads\Icecrown\Water\BubbleGeyserSteam\BubbleGeyserSteam.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

        )

    [dmgTable] => Array
        (
        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Attack
                    [code] => local Projectile p
local Unit creep = Event.getTarget()
local unit u = creep.getUnit()
local real speed = GetUnitDefaultMoveSpeed(u)
local real currentSpeed = GetUnitMoveSpeed(u)
local real slow = ((speed - currentSpeed) / speed)

if tower.calcChance(slow) then
   set p = Projectile.createFromUnitToUnit(dave_frostbolt, tower,1,1, tower, creep, true, false, false)
endif
set u = null
                    [values] => Array
                        (
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNFrostBolt.blp
                            [name] => Frost Bolt
                            [short_explain] => Has a chance to launch a frostbolt on attack.
                            [ONATTACK_chance] => 1.0
                            [ONATTACK_chanceLevelAdd] => 0.0
                            [long_explain] => On attack, this tower has a chance, equal to the percentage of movement speed the attacked unit is missing, to launch a frost bolt, dealing |cffFFFF8020%|r of the tower's attack damage as elemental damage in |cffFFFF80200|r AoE around the target for each stack of icy touch the creep has. This spell deals double damage to stunned targets. |n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.4%|r damage per stack
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals
      BuffType dave_blood
      BuffType dave_touch
      ProjectileType dave_frostbolt
    endglobals
    
    
    function boltHit takes Projectile p, Unit creep returns nothing
    local Tower tower = p.getCaster()
    local integer level= tower.getLevel()
    local Buff b = creep.getBuffOfType(dave_touch)
    local real damage = tower.getCurrentAttackDamageWithBonus()
    local integer bufflevel = 0
    
    if b!= 0 then
      set bufflevel = b.getLevel()
    endif
    
    if creep.getBuffOfGroup( "stun" )!=0 then
       call tower.doAttackDamageAoEUnit(creep,200,2*(damage*(bufflevel*(0.2+(0.004*level)))), tower.calcAttackMulticrit(0,0,0),0)
    else
       call tower.doAttackDamageAoEUnit(creep,200,damage*(bufflevel*(0.2+(0.004*level))), tower.calcAttackMulticrit(0,0,0),0)
    endif
    endfunction

    private function init takes nothing returns nothing
    local Modifier m = Modifier.create()
    local Modifier o = Modifier.create()
        
    set dave_blood = BuffType.create(3.0,0.0,true)
    call dave_blood.setBuffModifier(m)
    call dave_blood.setBuffIcon( '@@0@@' )
    call m.addModification(MOD_ATTACKSPEED,0.5,0.005)
    
    set dave_touch = BuffType.create(5.0,0.0,false)
    call dave_touch.setBuffModifier(o)
    call dave_touch.setBuffIcon( '@@1@@' )
    call o.addModification(MOD_MOVESPEED,0.0,-0.1)
    
    set dave_frostbolt = ProjectileType.create("Abilities\\Spells\\Undead\\FreezingBreath\\FreezingBreathMissile.mdl",4,900) 
    call dave_frostbolt.enableHoming(ProjectileTargetEvent.boltHit,0)
	endfunction
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [2] => Array
                (
                    [name] => On Kill
                    [code] => local integer level = tower.getLevel()

call dave_blood.apply(tower,tower,level)
                    [values] => Array
                        (
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNFrost.blp
                            [name] => Cold Blood
                            [short_explain] => This tower gains attack speed everytime it kills a unit.
                            [long_explain] => Every time it kills a unit, this tower gains |cffFFFF8050%|r attack speed for |cffFFFF803|r seconds. |n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.5%|r attack speed
                        )

                )

            [3] => Array
                (
                    [name] => On Damage
                    [code] => local Unit target = Event.getTarget()
local Buff b = target.getBuffOfType(dave_touch)
local integer bufflevel = 0
local real damage = tower.getCurrentAttackDamageWithBonus()
local integer level = tower.getLevel()

if b != 0 then
   set bufflevel = b.getLevel()
   set Event.damage = Event.damage*(1+(bufflevel*(0.1+0.002*level)))
endif

if bufflevel < 6 then
    call dave_touch.apply(tower, target, bufflevel+1)
endif
                    [values] => Array
                        (
                            [ONDAMAGE_chance] => 1.0
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNReplenishMana.blp
                            [name] => Icy Touch
                            [short_explain] => Slows enemies and deals additional damage to them.
                            [ONDAMAGE_chanceLevelAdd] => 0.0
                            [long_explain] => Each attack slows the attacked unit by |cffFFFF8010%|r for |cffFFFF805|r seconds, stacking up to |cffFFFF806|r times. This tower deals additional |cffFFFF8010%|r damage for every stack of icy touch the target has. |n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.2%|r damage per stack
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => BUfa
                    [oeValues] => Array
                        (
                            [Buffubertip] => This unit has its attack speed increased.
                            [Targetattachcount] => 1
                            [Specialattach] => Array
                                (
                                )

                            [TargetArt] => Abilities\Spells\Undead\FrostArmor\FrostArmorTarget.mdl
                            [Bufftip] => Cold Blood
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNFrost.blp
                            [SpecialArt] => Array
                                (
                                )

                        )

                )

            [1] => Array
                (
                    [id] => @@1@@
                    [derivedFrom] => BUfa
                    [oeValues] => Array
                        (
                            [Buffubertip] => This unit is slowed and will take spell damage when this buff expires.
                            [Specialattach] => Array
                                (
                                )

                            [Targetattachcount] => 1
                            [TargetArt] => Abilities\Spells\Other\FrostDamage\FrostDamage.mdl
                            [Bufftip] => Icy Touch
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNReplenishMana.blp
                            [SpecialArt] => Array
                                (
                                )

                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

)