i need to modify this script to heal all pokemons from pokebag, not from pokeball slot:
local focus = 0
local talk_start = 0
local target = 0
local following = false
local attacking = false
function onThingMove(creature, thing, oldpos, oldstackpos, item, itemEx)
end...