eu quero centralizar essa animaçao selecionada (id 387) em cima do pokemon
eu quero centralizar essa animaçao selecionada (id 387) no pokemon
elseif spell == "Eruption" then
local ret = {}
ret.id = cid
ret.cd = 11
ret.eff = 387
ret.check = 0
ret.buff = spell
ret.first = true
doCondition2(ret)
pos = getThingPosWithDebug(cid)
pos.x = pos.x-1
pos.y = pos.y-1
local dmg = isSummon(cid) and getMasterLevel(cid)+getPokemonBoost(cid) or getPokemonLevel(cid)
local function gas(cid)
doMoveInArea2(cid, 35, confusion, FIRDAMAGE, 0, 0, spell, ret)
doMoveInArea2(cid, 0, confusion, FIREDAMAGE, min, max, spell)
end
times = {0, 500, 1000, 1500, 2300, 2800, 3300, 3800, 4600, 5100, 5600, 6100, 6900, 7400, 7900, 8400, 9200, 10000}
for i = 1, #times do
addEvent(gas, times[i], cid)
end
sou novato, td ajuda é bem vinda