[PR #2202] [MERGED] Match vanilla evoker summon, fangs, vex and wololo rules #4100

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

📋 Pull Request Information

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

Base: main ← Head: fix/evoker-and-vex-rules


📝 Commits (1)

  • 0ba73d0 Match vanilla evoker, fangs and vex rules

📊 Changes

3 files changed (+29 additions, -14 deletions)

View changed files

📝 crates/horizon-client/src/game/fangs.rs (+21 -9)
📝 crates/horizon-client/src/mobs/illager.rs (+6 -4)
📝 crates/horizon-client/src/mobs/vex.rs (+2 -1)

📄 Description

What and why

Four small differences from vanilla in how evokers and vexes treat each other and nearby mobs.

  • The evoker's summon check counted vexes within a squared distance of 16 * 16 * 3. Vanilla counts vexes within 16 blocks, so the check now uses 16 * 16.
  • Evoker fangs spared every witch and every vex. Vanilla spares only entities allied to the owner: illagers (evoker, illusioner, pillager, vindicator) when no teams are involved, plus a vex whose owner is an ally. Witches and ownerless vexes now take the 6 damage. If the fangs' owner is gone, nothing is spared, as when getOwner() is null.
  • A vex ignored other vexes and forgot the ravager when picking who to retaliate against. Vanilla uses HurtByTargetGoal(this, Raider.class), which ignores raiders (including ravagers and witches) and not vexes. The ignore list now matches.
  • The wololo spell only checked the box around the evoker. Vanilla also needs the sheep within range(16), so a distance check was added to the box check.

Vanilla reference

  • Evoker.EvokerSummonSpellGoal.canUse (TargetingConditions.range(16.0))
  • Evoker.EvokerWololoSpellGoal.canUse
  • EvokerFangs.dealDamageTo, Entity.isAlliedTo
  • AbstractIllager.considersEntityAsAlly (#illager_friends), Evoker.considersEntityAsAlly (a vex whose root owner is allied)
  • Vex.registerGoals (HurtByTargetGoal(this, Raider.class))

Teams are not modelled for mobs here, so only the no-team case of the ally check is covered.

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/2202 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/evoker-and-vex-rules` --- ### 📝 Commits (1) - [`0ba73d0`](https://github.com/horizon-rust/horizon/commit/0ba73d0a7e122b059ff862447722beb2460b07df) Match vanilla evoker, fangs and vex rules ### 📊 Changes **3 files changed** (+29 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/fangs.rs` (+21 -9) 📝 `crates/horizon-client/src/mobs/illager.rs` (+6 -4) 📝 `crates/horizon-client/src/mobs/vex.rs` (+2 -1) </details> ### 📄 Description ## What and why Four small differences from vanilla in how evokers and vexes treat each other and nearby mobs. - The evoker's summon check counted vexes within a squared distance of `16 * 16 * 3`. Vanilla counts vexes within 16 blocks, so the check now uses `16 * 16`. - Evoker fangs spared every witch and every vex. Vanilla spares only entities allied to the owner: illagers (evoker, illusioner, pillager, vindicator) when no teams are involved, plus a vex whose owner is an ally. Witches and ownerless vexes now take the 6 damage. If the fangs' owner is gone, nothing is spared, as when `getOwner()` is null. - A vex ignored other vexes and forgot the ravager when picking who to retaliate against. Vanilla uses `HurtByTargetGoal(this, Raider.class)`, which ignores raiders (including ravagers and witches) and not vexes. The ignore list now matches. - The wololo spell only checked the box around the evoker. Vanilla also needs the sheep within `range(16)`, so a distance check was added to the box check. ## Vanilla reference - `Evoker.EvokerSummonSpellGoal.canUse` (`TargetingConditions.range(16.0)`) - `Evoker.EvokerWololoSpellGoal.canUse` - `EvokerFangs.dealDamageTo`, `Entity.isAlliedTo` - `AbstractIllager.considersEntityAsAlly` (`#illager_friends`), `Evoker.considersEntityAsAlly` (a vex whose root owner is allied) - `Vex.registerGoals` (`HurtByTargetGoal(this, Raider.class)`) Teams are not modelled for mobs here, so only the no-team case of the ally check is covered. ## 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:14:41 +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#4100
No description provided.