Jewels of the Moon v1
1132
lvl: 32

ID:

62

Author:

drol

Rarity:

unique

Status:

Approved

Description:

Once granted by the Moon to her servants, these jewels help whoever uses them for a good purpose.

Latest Upload Comment:

Restored from 1.10
Celestial Wisdom
Grants the wielder 2 experience every 15 seconds. The amount of experience is increased by 2 at night.
Specials:
+20% trigger chances
Download

Toggle Triggers

Periodic

PERIODIC_period: 15 goldcost: 500
function periodic takes Item itm returns nothing
    
    local real night = GetFloatGameState(GAME_STATE_TIME_OF_DAY)
    local Effect targetEffect 
    local Unit tower = itm.getCarrier()
    
    set targetEffect = Effect.createScaled("Abilities\\Spells\\Human\\DispelMagic\\DispelMagicTarget.mdl", tower.getX(), tower.getY(), 0, 0, 0.8) 
    call targetEffect.setLifetime(2.0)
    
    if night >= 18.00 or night < 6.00 then
    call tower.addExp(4.0)
    else
    call tower.addExp(2.0)
    endif 
endfunction