but the spell works fine and you get the spell effects right? and the cooldown works as intended?
Noticed some mistakes, change to this
local res = 40 -- block percentage %
function onStatsChange(cid, attacker, type, combat, value)
if getPlayerStorageValue(cid,99) == 1 then
if type...