A minor patch, the WHM barspells were not taking into account the Cleric's pants resistance modifiers. The only thing added is the equippedLegs section of code. A minor update to all elemental barspells (both self-target RDM and party WHM spells). 12 spell scripts updated.
Code: Select all
function onSpellCast(caster,target,spell)
local enchanceSkill = caster:getSkillLevel(34);
local power = 40 + 0.2 * enchanceSkill;
local equippedLegs = caster:getEquipID(SLOT_LEGS);
if(equippedLegs == 15119) then
power = power + 20;
elseif(equippedLegs == 15582) then
power = power + 22;
elseif(equippedLegs == 10712) then
power = power + 25;
end
local duration = 150;
if(enchanceSkill >180)then
duration = 150 + 0.8 * (enchanceSkill - 180);
end
if (caster:hasStatusEffect(EFFECT_COMPOSURE) == true and caster:getID() == target:getID()) then
duration = duration * 3;
end
target:addStatusEffect(EFFECT_BARBLIZZARD,power,0,duration,0,1);
return EFFECT_BARBLIZZARD;
end;