Minor Magic Ruin v1
45
ID:
11
Family ID:
Author:
drol
Rarity:
common
Element:
astral
Attack Type:
Elemental
Attack Range:
700
Attack CD:
1
Damage:
47-51
Abil. Factor:
0.975
Status:
Approved

Description:

Some magic still sparkles inside these ruins.

Latest Upload Comment:

Restored from 1.10
Illuminate
Attacks debuff the target, making it grant 5% more experience once killed. This effect last 5 seconds.

Level Bonus:
+0.2% experience
+0.2 seconds
Download

Toggle Triggers

Header

    globals
    //@export
    BuffType drol_magicRuin
    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 astralMod = Modifier.create()
        set   drol_magicRuin = BuffType.create(5,0,false)
        call  astralMod.addModification(MOD_EXP_GRANTED, 0.05 , 0.002 )
        call  drol_magicRuin.setBuffModifier(astralMod)
        call  drol_magicRuin.setBuffIcon('@@0@@') 
    
    endfunction

On Damage

ONDAMAGE_chance: 1.0 ONDAMAGE_chanceLevelAdd: 0.0
function onDamage takes Tower tower returns nothing
 call drol_magicRuin.applyCustomTimed(tower,Event.getTarget(),tower.getLevel(),5+tower.getLevel()*0.2)
endfunction