Elo winner = player.getProperty("elo");
Elo loser = this.getProperty("elo");
winner.recalculateForWin(loser);
}
KillDeathHistory kdh = player.getProperty("killDeathHistory");
KillDeathHistory tkdh = this.getProperty("killDeathHistory");
if (stake) {
kdh.playerKillsDuel_$eq(kdh.playerKillsDuel() + 1);
tkdh.playerDeathsDuel_$eq(tkdh.playerDeathsDuel() + 1);
} else {
kdh.playerKillsWild_$eq(kdh.playerKillsWild() + 1);
tkdh.playerDeathsWild_$eq(tkdh.playerDeathsWild() + 1);
}
Instance.getServer().getLoginConnector().getActionSender()
.logKill(player.getUsernameHash(), usernameHash, stake);
} else {
KillDeathHistory kdh = this.getProperty("killDeathHistory");
kdh.npcDeaths_$eq(kdh.npcDeaths() + 1);
}
Mob opponent = super.getOpponent();
if (opponent != null) {
opponent.resetCombat(CombatState.WON);
}