Commit ffe807b
committed
Fix RLS crates not dropping for grouped players
xp.VAR_TOP_GROUP stores the GROUP object ID when the top attacker is in
a group, not an individual player. The isPlayer() guard in addRareLoot()
was then failing immediately, preventing any RLS chest from spawning
whenever players were grouped.
Pick a random member of the group as the RLS recipient, consistent with
how other group loot mechanics work in the codebase.
Fixes #3431 parent adabbb8 commit ffe807b
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2491 | 2491 | | |
2492 | 2492 | | |
2493 | 2493 | | |
| 2494 | + | |
| 2495 | + | |
| 2496 | + | |
| 2497 | + | |
| 2498 | + | |
| 2499 | + | |
| 2500 | + | |
| 2501 | + | |
2494 | 2502 | | |
2495 | 2503 | | |
2496 | 2504 | | |
| |||
0 commit comments