Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- protected void onDie(final L2Character victim, final L2Character killer)
- {
- if(_status > 1 && victim != null && victim.isPlayer() && victim.getTeam() > 0)
- {
- // если жертва находиться в одной из команд
- if(teams[RED_TEAM].isLive(victim.getStoredId()) || teams[BLUE_TEAM].isLive(victim.getStoredId()))
- {
- // увеличиваем счётчик смертей игроку
- teams[victim.getTeam() - 1].getPlayerInfo(victim).incrementDeaths();
- // Добавляем очки противоположной команде
- teams[victim.getTeam() == 1 ? 1 : 0].increaseTeamPoints();
- addItem(player, 38001, 1);
- }
- // увеличиваем счётчик убийств
- if(killer.getPlayer() != null) // вдруг суммоном убил
- {
- final L2Player player = killer.getPlayer();
- // если убийца находиться в одной из команд
- if(teams[RED_TEAM].isLive(player.getStoredId()) || teams[BLUE_TEAM].isLive(player.getStoredId()))
- {
- teams[player.getTeam() - 1].getPlayerInfo(player).incrementKills();
- addItem(player, 38001, 1);
- }
- }
- loosePlayer(victim.getPlayer(), true);
- checkLive();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement