Hi guys, I'm trying to make runes with different areas, and I came across this difficulty.
When I use the rune in one direction, the area goes one way, and when I use it in another direction, the area goes out in another.
It's like some system forces you to invert the area according to the direction the rune is thrown, and I didn't want that, I'd like a fixed area on all sides. I even tested it with other areas to prove this, follow the images.
Does anyone know how I can solve this problem? I know that in normal spells direction="0" solves it, but in runes it's not working
When I use the rune in one direction, the area goes one way, and when I use it in another direction, the area goes out in another.
It's like some system forces you to invert the area according to the direction the rune is thrown, and I didn't want that, I'd like a fixed area on all sides. I even tested it with other areas to prove this, follow the images.
Lua:
combate local = Combate()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, 7)
AREA_KUNAI = {
{1, 1, 1},
{1, 3, 0},
{1, 1, 1}
}
combat:setArea(createCombatArea(AREA_KUNAI))
função onGetFormulaValues(player, level, maglevel)
local min = (nível / 4,5) + (maglevel * 6) + 25
local max = (nível / 4,5) + (maglevel * 8) + 45
return -min, -max
fim
combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
função onCastSpell(criatura, variante)
return combat:execute(criatura, variante)
fim
Does anyone know how I can solve this problem? I know that in normal spells direction="0" solves it, but in runes it's not working
Last edited: