Improved lootshare so that drops are awarded to clan members near a slain NPC, participation in combat is not necessary

Reconnecting in combat will no longer cause lost drops
This commit is contained in:
Player Name
2024-08-10 11:09:43 +00:00
committed by Ryan
parent d15b47fc65
commit 37836ae992
5 changed files with 49 additions and 30 deletions
@@ -263,7 +263,7 @@ public final class DuelSession extends ComponentPlugin {
Player o = getOpposite(p);
o.getImpactHandler().setDisabledTicks(6);
o.teleport(RandomFunction.getRandomElement(DuelArea.RESPAWN_LOCATIONS));
boolean victory = type == 0 || type == 2 || type == 1 && p.getImpactHandler().getImpactLog().containsKey(o);
boolean victory = type == 0 || type == 2 || type == 1 && p.getImpactHandler().getPlayerImpactLog().containsKey(o.getDetails().getUid());
fightState = 2;
p.removeExtension(DuelSession.class);
end();