onCastSpell
player:setStorageValue(storage, 1)
addEvent(setPlayerStorageValue, bufftime(ms), player.uid, storage, 0)
onHealthChange
if player:getStorageValue(storage) == 1 then
secondaryDamage = primaryDamage * 0.2
secondaryType = COMBAT_EARTH
its just an example, and a really quick code to...