local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_ICEAREA) combat:setArea(createCombatArea(AREA_WAVE4, AREADIAGONAL_WAVE4)) function onGetFormulaValues(player, level, magicLevel) local min = (level / 5) + (magicLevel * 0.8) + 5 local max = (level / 5) + (magicLevel * 2) + 12 return -min, -max end combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues") local spell = Spell(SPELL_INSTANT) function spell.onCastSpell(creature, variant) return combat:execute(creature, variant) end spell:group("attack") spell:id(121) spell:name("Ice Wave") spell:words("exevo frigo hur") spell:level(18) spell:mana(25) spell:needDirection(true) spell:cooldown(4000) spell:groupCooldown(2000) spell:vocation("druid;true", "elder druid;true") spell:register()