Chameleons Soul v1
1161
lvl: 47

ID:

247

Author:

Boekie

Rarity:

rare

Status:

Approved

Description:

This soul adapts itself to its user.

Latest Upload Comment:

Restored from 1.10
Transform
+100% experience for Astral
+45% spelldamage for Darkness
+10% crit chance for Nature
+40% damage for Fire
+50% buff duration for Ice
+25% attackspeed for Storm
+30% item chance for Iron
Download

Toggle Triggers

On Item Drop

goldcost: 0
function onDrop takes Item itm returns nothing
    local Tower  tower = itm.getCarrier() 
    
    if tower.getElement() == 0 then 
        call tower.modifyProperty(MOD_EXP_RECEIVED, -1.00) 
    elseif tower.getElement() == 1 then 
        call tower.modifyProperty(MOD_SPELL_DAMAGE_DEALT, -0.45) 
    elseif tower.getElement() == 2 then 
        call tower.modifyProperty(MOD_ATK_CRIT_CHANCE, -0.10) 
    elseif tower.getElement() == 3 then 
        call tower.modifyProperty(MOD_DAMAGE_ADD_PERC, -0.40) 
    elseif tower.getElement() == 4 then 
        call tower.modifyProperty(MOD_BUFF_DURATION, -0.50) 
    elseif tower.getElement() == 5 then 
        call tower.modifyProperty(MOD_ATTACKSPEED, -0.25)
    elseif tower.getElement() == 6 then 
        call tower.modifyProperty(MOD_ITEM_CHANCE_ON_KILL, -0.30) 
    endif 
    
endfunction

On Item Pickup

goldcost: 1161
function onPickup  takes Item itm returns nothing
    local Tower  tower = itm.getCarrier() 

    if tower.getElement() == 0 then 
        call tower.modifyProperty(MOD_EXP_RECEIVED, 1.00) 
    elseif tower.getElement() == 1 then 
        call tower.modifyProperty(MOD_SPELL_DAMAGE_DEALT, 0.45) 
    elseif tower.getElement() == 2 then 
        call tower.modifyProperty(MOD_ATK_CRIT_CHANCE, 0.10) 
    elseif tower.getElement() == 3 then 
        call tower.modifyProperty(MOD_DAMAGE_ADD_PERC, 0.40) 
    elseif tower.getElement() == 4 then 
        call tower.modifyProperty(MOD_BUFF_DURATION, 0.50) 
    elseif tower.getElement() == 5 then 
        call tower.modifyProperty(MOD_ATTACKSPEED, 0.25)
    elseif tower.getElement() == 6 then 
        call tower.modifyProperty(MOD_ITEM_CHANCE_ON_KILL, 0.30) 
    endif 
endfunction