[PR #2368] [MERGED] Raiders no longer count idle time too fast in a raid #4248

Closed
opened 2026-11-03 04:15:46 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2368
Author: @kacpherek
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: fix/raid-no-action-time


📝 Commits (1)

  • cb97c54 Raiders in a raid no longer count idle time twice as fast

📊 Changes

1 file changed (+5 additions, -8 deletions)

View changed files

📝 crates/horizon-client/src/game/raids.rs (+5 -8)

📄 Description

What and why

Raiders that belong to a raid counted idle time (noActionTime) at 4 per tick instead of vanilla's 3. They gave up on the raid and became eligible for despawn about twice as early, and the Raids.canJoinRaid limit was reached too soon.

The mob step already adds +1 (Mob.serverAiStep) and +2 (Raider.updateNoActionTime). The raid bookkeeping in sync_raiders added another +1 for every raider with a raid id. That extra +1 is removed. The reset to 0 while fighting a player or iron golem stays.

Vanilla reference

  • Mob.serverAiStep: noActionTime++
  • Raider.updateNoActionTime: noActionTime += 2 (replaces Monster's)
  • Raider.aiStep: reset to 0 when the target is a player or iron golem
  • Raids.canJoinRaid: getNoActionTime() <= 2400

Self-check

cargo check -p horizon-client passes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/2368 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/raid-no-action-time` --- ### 📝 Commits (1) - [`cb97c54`](https://github.com/horizon-rust/horizon/commit/cb97c5496e127edc5287914d0ad63f974a0158b2) Raiders in a raid no longer count idle time twice as fast ### 📊 Changes **1 file changed** (+5 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/raids.rs` (+5 -8) </details> ### 📄 Description ## What and why Raiders that belong to a raid counted idle time (`noActionTime`) at 4 per tick instead of vanilla's 3. They gave up on the raid and became eligible for despawn about twice as early, and the `Raids.canJoinRaid` limit was reached too soon. The mob step already adds +1 (`Mob.serverAiStep`) and +2 (`Raider.updateNoActionTime`). The raid bookkeeping in `sync_raiders` added another +1 for every raider with a raid id. That extra +1 is removed. The reset to 0 while fighting a player or iron golem stays. ## Vanilla reference - `Mob.serverAiStep`: `noActionTime++` - `Raider.updateNoActionTime`: `noActionTime += 2` (replaces `Monster`'s) - `Raider.aiStep`: reset to 0 when the target is a player or iron golem - `Raids.canJoinRaid`: `getNoActionTime() <= 2400` ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:15:46 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#4248
No description provided.