Annoyed Tree v1
200
ID:
520
Family ID:
Author:
Boekie
Rarity:
uncommon
Element:
nature
Attack Type:
Physical
Attack Range:
950
Attack CD:
1.4
Damage:
142-161
Abil. Factor:
0.54
Status:
Approved

Description:

An angry tree that has a chance to throw a big rock at its target.

Latest Upload Comment:

Restored from 1.10
Rock Throw
30% chance to throw a rock towards the attacked unit. On impact it deals 150 spell damage in a 300 AoE. 

Level Bonus:
+0.6% chance
+5 damage
Download

Toggle Triggers

Header

    globals
        //@export
        ProjectileType boekie_tree_rock
    endglobals    
   
    function RockHit takes Projectile p, Unit t returns nothing
        call p.doSpellDamagePBAoE(p.userReal,100.0,0.0)
        call DestroyEffect( AddSpecialEffect("Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl", p.x, p.y ) )
    endfunction
    
    //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
            
        set boekie_tree_rock = ProjectileType.createInterpolate( "Abilities\\Weapons\\RockBoltMissile\\RockBoltMissile.mdl",750.00 )
        call boekie_tree_rock.setEventOnInterpolationFinished(ProjectileTargetEvent.RockHit)
    endfunction

On Attack

ONATTACK_chance: 0.30 ONATTACK_chanceLevelAdd: 0.006
function onAttack takes Tower tower returns nothing
    set Projectile.createLinearInterpolationFromUnitToUnit(boekie_tree_rock,tower,1.5+tower.getLevel()*0.05, tower.calcSpellCritNoBonus(),tower,Event.getTarget(),0.25,true).userReal = 300.0
endfunction