small fix
This commit is contained in:
parent
765b20d39c
commit
6787012047
@ -268,9 +268,9 @@ class StatisticCollector implements CallbackListener {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'LibXmlRpc_OnArmorEmpty':
|
case 'LibXmlRpc_OnArmorEmpty':
|
||||||
$shooter = $this->maniaControl->playerManager->getPlayer($callback[1][1][0]);
|
$victim = $this->maniaControl->playerManager->getPlayer($callback[1][1][1]);
|
||||||
$victim = $this->maniaControl->playerManager->getPlayer($callback[1][1][1]);
|
if (isset($callback[1][1][0])) {
|
||||||
if ($shooter != null) {
|
$shooter = $this->maniaControl->playerManager->getPlayer($callback[1][1][0]);
|
||||||
$this->maniaControl->statisticManager->incrementStat(self::STAT_ON_KILL, $shooter);
|
$this->maniaControl->statisticManager->incrementStat(self::STAT_ON_KILL, $shooter);
|
||||||
}
|
}
|
||||||
$this->maniaControl->statisticManager->incrementStat(self::STAT_ON_DEATH, $victim);
|
$this->maniaControl->statisticManager->incrementStat(self::STAT_ON_DEATH, $victim);
|
||||||
|
Loading…
Reference in New Issue
Block a user