@Override
public void informPokemonHealthChanged(Pokemon poke, int change) {
if (m_players != null && poke != null) {
if (poke.compareTo(getActivePokemon()[0]) == 0) {
TcpProtocolHandler.writeMessage(m_players[0].getTcpSession(),
new HealthChangeMessage(0 , change));
TcpProtocolHandler.writeMessage(m_players[1].getTcpSession(),
new HealthChangeMessage(1 , change));
} else if(poke.compareTo(getActivePokemon()[1]) == 0) {
TcpProtocolHandler.writeMessage(m_players[1].getTcpSession(),
new HealthChangeMessage(0 , change));
TcpProtocolHandler.writeMessage(m_players[0].getTcpSession(),
new HealthChangeMessage(1 , change));
} else {
int index = getPokemonPartyIndex(0, poke);
if(index > -1) {
m_players[0].getTcpSession().write("Ph" + String.valueOf(index) + poke.getHealth());
//TODO: Add support for enemy pokemon healing for pokemon in pokeballs