on which spell/object do your refer?AndakRainor wrote:
@bongobeat: you could look at objects.lua in the spells pack to see how I solved this.
There is "frostburst_cast" that use the skill but I'm not sure if I understand it correctly. Does it change the duration of the frozen condition?
Code: Select all
defineObject{
name = "frostburst_cast",
baseObject = "frostburst",
components = {
{
class = "TileDamager",
attackPower = 11,
castByChampion = 1,
damageType = "cold",
sound = "frostburst",
onHitMonster = function(self, monster)
monster:setCondition("frozen", math.random()*(3+party.party:getChampionByOrdinal(self:getCastByChampion()):getSkillLevel("water_magic")))
end,
},
},
}