The Fire Lord v1
2750
ID:
554
Family ID:
Author:
Boekie
Rarity:
unique
Element:
fire
Attack Type:
Decay
Attack Range:
900
Attack CD:
2.5
Damage:
4107-4126
Abil. Factor:
0.45
Status:
Approved

Description:

This creature is made of pure lava. It has the ability to control fire.

Latest Upload Comment:

Restored from 1.10
Hellfire
When the Fire Lord attacks there is a 25% chance that it gains a 5 target multishot and 25% bonus attackspeed for 7.5 seconds. Cannot retrigger!

Level Bonus:
+0.2 seconds duration 
+0.4% attackspeed 
+0.2% chance 
+1 target at level 15 and 25
Liquid Fire
When the Fire Lord damages a creep it will be set on fire, dealing 500 spelldamage per second and increasing the damage it takes from fire towers by 10%. The liquid fire lasts 5 seconds.

Level Bonus:
+50 spelldamage per second 
+0.1 seconds duration 
+0.4% bonus damage from fire
Download

Toggle Triggers

Header

   globals    
   BuffType boekie_fireMulti_buff1
   BuffType boekie_fireMulti_buff2
   BuffType boekie_fireMulti_buff3
   
   BuffType boekie_liquidFire_buff

   endglobals    
   
   function boekie_liquidFire takes Buff b returns nothing 
   local Unit target = b.getBuffedUnit()  
   local Tower tower = b.getCaster()  
   
   call tower.doSpellDamage(target,500+b.getLevel()*50,tower.calcSpellCritNoBonus())
   
   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
    
        local Modifier m = Modifier.create() 
        local Modifier n = Modifier.create() 
        call m.addModification( MOD_ATTACKSPEED, 0.25, 0.004 )        
        call n.addModification( MOD_DMG_FROM_FIRE , 0.10, 0.004 )
        
        set boekie_fireMulti_buff1 = BuffType.create( 7.5, 0.2, true )  
        call boekie_fireMulti_buff1.setBuffIcon( '@@3@@' )           
        call boekie_fireMulti_buff1.setBuffModifier( m ) 
        call boekie_fireMulti_buff1.setStackingGroup("fireMulti")
        call boekie_fireMulti_buff1.addAbility('@@2@@',false)
        
        set boekie_fireMulti_buff2 = BuffType.create( 7.5, 0.2, true )  
        call boekie_fireMulti_buff2.setBuffIcon( '@@3@@' )          
        call boekie_fireMulti_buff2.setBuffModifier( m ) 
        call boekie_fireMulti_buff2.setStackingGroup("fireMulti")
        call boekie_fireMulti_buff2.addAbility('@@1@@',false)
        
        set boekie_fireMulti_buff3 = BuffType.create( 7.5, 0.2, true )  
        call boekie_fireMulti_buff3.setBuffIcon( '@@3@@' )  
        call boekie_fireMulti_buff3.setBuffModifier( m ) 
        call boekie_fireMulti_buff3.setStackingGroup("fireMulti")
        call boekie_fireMulti_buff3.addAbility('@@0@@',false)
    
        set boekie_liquidFire_buff = BuffType.create(5,0.1,false) 
        call boekie_liquidFire_buff.setBuffIcon('@@4@@') 
        call boekie_liquidFire_buff.setBuffModifier( n ) 
        call boekie_liquidFire_buff.setStackingGroup("boekie_liquidFire")

         call boekie_liquidFire_buff.addPeriodicEvent(EventHandler.boekie_liquidFire,1) 
         
    endfunction

On Attack

ONATTACK_chance: 0.25 ONATTACK_chanceLevelAdd: 0.002
function onAttack takes Tower tower returns nothing
    local integer level = tower.getLevel()
    
    if tower.getBuffOfGroup("fireMulti") == 0 then 
        
        if level < 15 then
        
        call boekie_fireMulti_buff1.apply(tower,tower,tower.getLevel())
        
        elseif level <25 then
        
        call boekie_fireMulti_buff2.apply(tower,tower,tower.getLevel())
        
        else
        
        call boekie_fireMulti_buff3.apply(tower,tower,tower.getLevel())
        
        endif
        
    endif
endfunction

On Damage

ONDAMAGE_chance: 1.0 ONDAMAGE_chanceLevelAdd: 0.0
function onDamage takes Tower tower returns nothing
local Unit creep = Event.getTarget()

call boekie_liquidFire_buff.apply(tower,creep,tower.getLevel())
endfunction