Edit: Nvm didnt read the method correct
public Player getOpponent() {
for (Player pl : World.getInstance().getPlayerList()) {
if (pl != null) {
if (pl.getIndex() == enemyIndex) {
return pl;
}
}
}
return null;
}
use that method instead of getP2() and change some stuff cause Im using a clean source for 525 rs2hd and I made most off the stuff