Esempio n. 1
0
 public void heal(int index) {
   for (int i = 0; i < partyPokemon.length; i++) {
     NBTTagCompound nbt = partyPokemon[i];
     if (nbt != null) {
       if (nbt.getInteger("pixelmonID") == index) heal(nbt);
     }
   }
 }
Esempio n. 2
0
 public void healAllPokemon() {
   for (int i = 0; i < partyPokemon.length; i++) {
     NBTTagCompound nbt = partyPokemon[i];
     if (nbt != null) {
       heal(nbt);
     }
   }
 }