local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 14)
local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10000)
setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELDPERCENT, 200)
setConditionParam(condition, CONDITION_PARAM_BUFF, true)
setCombatCondition(combat, condition)
function onCastSpell(cid, var)
addEvent(addEffect, i, {cid = cid, pos = getThingPos(cid), i = 0})
return doCombat(cid, combat, var)
end
function addEffect(param)
local i = param.i + 100
doSendMagicEffect(getThingPos(param.cid), 14)
if i < 10000 then
addEvent(addEffect, 100, {cid = param.cid, pos = getThingPos(param.cid), i = i})
end
return true
end