Code: Select all
function onSpellCast(caster,target,spell)
if caster:isPC() then
local dmg = doElementalNuke(25*SPELL_POWER,1,caster,spell,target,false,1.0);
return dmg;
else
local dmg = doElementalNuke(25,1,caster,spell,target,false,1.0);
return dmg;
end
end;
EDIT: put in working code and kjLotus' help