Ancient Owl of Wisdom v1
3900
ID:
191
Family ID:
Author:
Der_kleine_Tomy
Rarity:
unique
Element:
astral
Attack Type:
Energy
Attack Range:
900
Attack CD:
2
Damage:
2977-2977
Abil. Factor:
0.30
Status:
Approved

Description:

Strong spell damage tower which gets stronger with experience. Can even damage immune units with it's spells.

Latest Upload Comment:

Restored from 1.10
Specials:
5% spell crit chance (+0.15%/lvl)
+1% spell damage/lvl
Energyball
The Ancient Owl of Wisdom has a 30% chance to cast Energyball on the attacked creep. The Energyball deals 6500 + [3.25x Towerexp] spell damage in a 100 AoE around the attacked creep. The experience bonus cannot exceed [150x current wave] damage.

Level Bonus:
+2 AoE
+0.4% chance
Energy Aura
Every 4 seconds, for each creep in 900 range the Ancient Owl of Wisdom has a 10% chance to cast Energyball on it.

Level Bonus:
+0.2% chance
Download

Toggle Triggers

Header

    globals
    //@import
      ProjectileType tomy_energyballPT
    endglobals
    
    
 function Tomy_Energyball_Start takes Unit target, Tower tower returns nothing
    set Projectile.createFromUnitToUnit(tomy_energyballPT,tower,0,0,tower,target,true,false,false).userInt = tower
 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
endfunction

On Attack

ONATTACK_chance: 0.30 ONATTACK_chanceLevelAdd: 0.004
function onAttack takes Tower tower returns nothing
    call Tomy_Energyball_Start(Event.getTarget(),tower)
endfunction

On Tower Creation

function onCreate takes Tower tower returns nothing
 set tower.userInt = 2
endfunction

Periodic

PERIODIC_period: 4.0
function periodic takes Tower tower returns nothing
 
    local Unit target
    local Iterate it = Iterate.overUnitsInRangeOfCaster(tower,TARGET_CREEPS,900)
   
    loop
        set target = it.next()
        exitwhen target == 0
        if tower.calcChance(0.10+0.002*tower.getLevel()) then
            call Tomy_Energyball_Start(target,tower)
        endif 
    endloop
  
endfunction