tenta isso
elseif spell == "Mega Drain" then local uid = checkAreaUid(getThingPos(cid), check, 1, 1) for _,pid in pairs(uid) do if isCreature(cid) and isCreature(pid) and pid ~= cid then if isPlayer(pid) and #getCreatureSummons(pid) >= 1 then return false end local life = getCreatureHealth(pid) doAreaCombatHealth(cid, GRASSDAMAGE, getThingPosWithDebug(target), 0, -min, -max, 14) local newlife = life - getCreatureHealth(pid) doSendMagicEffect(getThingPos(cid), 14) if newlife >= 1 then doCreatureAddHealth(cid, newlife) doSendAnimatedText(getThingPos(cid), "+"..newlife.."", 32) end end end







info
Grupo: Barão
Registrado: 23/05/07
Posts: 210
Reputação: +14
Gênero: Masculino
teria como alterar o Mega Drain para igual PxG, atacando soh 1 pokemon?
se tiver rodeado de pokemon, o mega drain, tira life de todos..
data/lib/pokemon moves.lua