Commit Graph
81 Commits
Author SHA1 Message Date
Karrz1 25fc7ca3a6 0.1.38: core fixes since 0.1.37.6 (spells, talents, auction house prices, Scourge Invasion, world data, client 70959 hotfixes) 2026-11-18 21:11:41 +00:00
Karrz1 e29b5b1438 Pets: a hunter pet swings at 2.0 s and keeps its wild speed through a Faster / Slower Attack passive
The 1.60 client has ten hunter pet passives (skill line 270): Faster
Attack I-VII (+17 .. +100% attack speed) and Slower Attack I-III (-17,
-20, -26%). On a 2.0 s pet they give exactly the common wild speeds,
1.7 .. 1.0 s and 2.34 .. 2.52 s. Our pets kept the beast's wild speed
as their base swing time instead, so the pet frame showed a raw speed
and no passive.

A hunter pet now has a 2.0 s base swing and learns the passive nearest
to its beast's wild speed (by ratio; 0 or 2.0 s: none) as a family
spell, so it is not saved and comes back on every summon. Attack power
still counts per second of the wild speed, so a pet's damage per second
is what it was: Frenzy and other haste still add to it.

Dev world DB 11-16, tameable beasts by wild speed: 2.0 s or none 11110,
1.5 s 275, 1.0 s 38, 3.0 s 37, 1.3 s 33, 1.2 s 17, 1.4 / 1.6 / 2.4 s 16
each. The 3.0 s beasts (and a few odd ones) take the nearest step, so a
3.0 s pet swings at 2.52 s now.

Idea from the Everlake core (GPL), written as our own code; the credit
is in NOTICE.md.
2026-11-16 12:18:56 +00:00
Karrz1 16705c7c90 Realm loopback test: with a localAddress the stock pick is either realm address 2026-11-14 12:02:52 +00:00
Karrz1 9c19986d28 Realm: 127.0.0.1 for a local game only when the world server is on this PC
Since 0.1.30 a game on the auth server's own PC always got 127.0.0.1 from the
realm list, so a VPN that was on when the server started could not break the
login. With the auth server on one PC and the world server on another, that
sent the game to a PC with no world server and the login failed.

Now a loopback client gets 127.0.0.1 only when the realm's address or
localAddress is this PC, or when something listens on 127.0.0.1 at the
realm's port (the VPN case: the address is gone but the world server still
listens here). Otherwise the realmlist addresses are used as before 0.1.30.
The port check is kept for a minute per port.
2026-11-14 11:55:25 +00:00
Karrz1 91fb7c8f74 Spells: Forever.VanillaAoE puts Consecration and Improved Blizzard back to vanilla
WoW Forever reworked both spells. Consecration ticks a small hit on every
enemy plus a bigger hit the text gives only to the first 4 (rank 1: 2 + 4 a
second, vanilla 8). Improved Blizzard chills 15 / 25 / 40% where vanilla
chilled 30 / 50 / 65%.

New worldserver.conf switch Forever.VanillaAoE, default 0 (the Forever
spells, nothing changes). With 1:
- Consecration: each tick hits every enemy in it for the vanilla tick
  (8 / 15 / 24 / 35 / 48, so 64 to 384 over 8 sec) with the same 0.042
  spell power a tick (about 33% over the 8 ticks). Mana is vanilla already.
- Improved Blizzard: the Chill takes the vanilla amount of the same rank.
- At startup the client gets the matching rows (tick values, the five
  Consecration mana rows, curve 83071), so tooltips show the vanilla numbers
  and a client with Blizzard's live cache stops showing 73 mana. The server's
  own spells are built before this and are not touched.

The numbers live in the pure header ClassicVanillaAoe.h, checked by
tests/game/ClassicVanillaAoe.cpp ([ClassicVanillaAoe]).
2026-11-14 09:36:59 +00:00
Karrz1 edcd627657 Pets: Move To works like Stay at the clicked spot
After the pet bar's Move To a pet never fought again until it was dismissed
and called back: PetAI only knew Stay and Follow, so it sent the pet home on
the next update and refused every target, even an explicit Attack. Move To
now counts as Stay at the new spot everywhere the code checked for Stay (pet
AI attack, chase and return, catch-up and travel parking, resurrect, possess),
and the handler stores the clicked spot as the stay position (the spline had
not started yet, so it saved where the pet stood). Test: PetStayCommand.

From buildthehomelab/wow-trinitycore-everlake, commit 5ad51b11b, by Bob (GPL-2.0). Thank you!
2026-11-14 09:36:57 +00:00
Karrz1 b47e6dfed1 Handle Classic instance reset intervals on calendar boundaries - regression coverage
From KylRikul/TrinityCore, commit b46cfb945f, by KylRikul (GPL-2.0). Thank you!
2026-11-14 08:07:57 +00:00
Karrz1 d41b7aaca0 test: cover charged modifiers and legacy proc controls
From KylRikul/TrinityCore, commit c9e88b7058, by KylRikul (GPL-2.0). Thank you!
2026-11-14 08:07:57 +00:00
Karrz1 218f2c1681 test: cover native proc charge event filtering
From KylRikul/TrinityCore, commit d626ff38e7, by KylRikul (GPL-2.0). Thank you!
2026-11-14 08:07:57 +00:00
Karrz1 ff51af8729 test: cover Scatter Shot cancellation of Auto Shot
From KylRikul/TrinityCore, commit fbcf12ae0a, by KylRikul (GPL-2.0). Thank you!
2026-11-14 08:07:57 +00:00
Karrz1 ae1a595ce3 test: add isolated real map fixture for spell lifecycle checks
From KylRikul/TrinityCore, commit f5edcd618a, by KylRikul (GPL-2.0). Thank you!
2026-11-14 08:07:57 +00:00
Karrz1 e6399e4fcb Tests: the talent code test needs the bot module
ClassicTalentCode.cpp includes the module's TalentCode.h, so a core build without the
module skips it like the other module-only tests.
2026-11-13 22:00:59 +00:00
Karrz1 0683240cd4 Transmog: armor changes are saved again
The Classic 1.60 client sends every outfit slot and slot option when an outfit is saved: 45 entries (15 TransmogOutfitSlotInfo
and 42 TransmogOutfitSlotOption rows, client data 70888). CMSG_TRANSMOG_OUTFIT_UPDATE_SLOTS still read at most 30, the retail
count, so the whole save was refused before the handler ran: no gold taken, nothing saved. Weapon-only changes still worked,
armor changes did not. The packet now takes 45, and the server logs an error at startup if the client data ever gives more
slots than the packet takes.

Found by the 0.1.35 armor transmog fix sent to Karrz (outfit-45.patch, base 82990bd8).

(cherry picked from commit 7dfb09260e9cfe8fe97d8f180f40ed88277b7f57)
2026-11-13 11:22:57 +00:00
Karrz1 8b4422e490 Spells: Revive no longer crashes the server
A spell whose target type is "an ally's corpse" (TARGET_CORPSE_TARGET_ALLY)
asked for no explicit target unless its SpellTargetRestrictions row said so.
Druid Revive (437138, and 1237948-1237951) and Reintegration (430318) have no
such row, so the server dropped the dead player as the target, and when the
cast finished it hit the assert in SelectImplicitTargetObjectTargets: the
world server went down on every Revive (report and crash dump from the
#bug-reports thread, 2026-11-12). The target type itself now asks for an
ally corpse or an unreleased dead player, as the other resurrections do.

New test CorpseTargetExplicitMask (new file: cmake reconfigure needed).

(cherry picked from commit 5486906812844dfe48c2967692ee954573008dea)
2026-11-13 02:23:30 +00:00
Karrz1 26ae994422 Guild charters keep the whole guild name
The classic client sends the charter title with an 8 bit length, as the
server's own charter query reply does. The server read 7 bits, dropped the
last bit and so kept only half the name: "Knights of Valor" (16) became the
guild "Knights " (8). Reported in #bot-feedback.

New test PetitionBuyLayout (needs a cmake reconfigure for the new file).

(cherry picked from commit 6bef18515d5e4af999c1f512e37fe85ae3117e27)
2026-11-13 02:17:45 +00:00
Karrz1 db7a313d94 Bots: talent links of Wowhead's current Forever trees; bot builds keep the row rule
Checked against Wowhead (T4, 11-12): its Forever calculator writes the tree version as a
word now ("vkndmh"), and moves an older "v2" link to it. It then dropped talents from the
links our bots printed, because the bots held talents in rows their own tab had not opened
(an Arms warrior's Anger Management on 9 Arms points, a mage's Arcane Subtlety with no point
in the top row). The Forever trait data opens a row by the points of all three tabs, so the
game let our builds through; a player's talent frame and Wowhead do not.

- TalentCode: reads "v<word>" as well as "v<digit>" in front of the code; links are written
  with the current version ("vkndmh...<code>_t0") so they open as they are; RowsOpen checks
  the talent frame's row rule (5 points per row above, same tab).
- PlayerbotAPI: the talent walk keeps that rule for our builds too
  (Playerbot.ClassicTalents.RowsPerTab = 1, new; 0 = as before), and always for a code the
  owner gives. A bot that holds a build which breaks it is walked once more.
- Tests: the vkndmh links, and the bot builds Wowhead dropped talents from.
2026-11-12 17:04:11 +00:00
Karrz1 a799ec37ec Bots: change talents <Wowhead link> learns the owner's own build
Asked on Discord #bot-feedback (Dumpins, 11-12), as ike3 bots' talents order: make the
talents in the Wowhead Forever talent calculator, whisper the bot "change talents <link>"
(or the code alone) and it learns that build.

- Api/TalentCode.h: reads the calculator link or code (class word, "v2" version, the
  "_t0/..." tail skipped), checks it against the class's tabs (talents per tab, ranks,
  5 points per row, 51 points), writes a build back as a code and a link, and gives the
  levelling order (the tab with most points first, row by row).
- ClassicSpec: GetTalentTabs lays the class's three tabs out from the trait data the way
  the calculator does (tabs left to right, rows 600 apart, talents left to right; hidden
  off-grid nodes left out). Checked against the 70862 client data for all nine classes.
  The owner's code per bot (SetTalentCode / GetTalentCode), and InferSpecFromRanks so the
  rotation and role follow the build.
- PlayerbotAPI: apply_classic_talents learns the owner's code instead of our build when one
  is set; the old talents go, the ranks are bought in the levelling order and each new
  level's point goes on down the build.
- BotCommandParser: "change talents <link>" (also "set talents", "talents <link>"),
  "talents link" (the bot's talents as a calculator link), "talents default" (our builds
  again); setspec clears the code. Refusals say why (another class's link, a code that does
  not fit the trees). Russian replies in BotLocaleRu.
- OwnerRegistry + migration 0040: a companion's code is kept across relog and restart.
- .playerbot talentcode <Name> [<link or code> | clear] (GM, console): the class's tabs as
  laid out, sets the code, walks at once and prints the code the bot then holds, so it can
  be tested with world bots and nobody in game.
2026-11-12 14:22:09 +00:00
Karrz1 aa3ec68731 Warlock: a Bane and a Curse stand on one target together
azeldof (Discord, 11-09): Bane of Agony and Curse of Weakness pushed
each other off the target. The Forever client renamed Curse of Agony and
Curse of Doom to Bane, and the tooltips say so: the 7 Bane spells read
"Only one Bane per Warlock can be active on any one target", the 23
Curse spells read "Only one Curse per Warlock". The core only knew the
Cataclysm Bane of Havoc (80240) as a bane; every other bane dispels as a
curse and so fell into the curse group, one per warlock per target.

Bane of Agony 980/1014/6217/11711/11712/11713, Bane of Doom 603 and
Forever's Bane of Havoc 1225228 are now banes. Two banes still replace
each other, and two curses still do.

This reverses the 10-26 rule (afb14d2c8c) that made 603 and 980 curses
as vMaNGOS does: that is the vanilla rule, the Forever client's own
tooltips draw the line between Bane and Curse. The ClassicAuraExclusivity
test changes with it: the banes are SPELL_SPECIFIC_BANE, a bane and a
curse are not exclusive, two banes and two curses are.

The warlock bot rotation already counted on this (its raid curse and
Bane of Agony are cast side by side), so raid warlock bots keep both.
Not seen in a test yet.

(cherry picked from commit 73df44d7b112e4e92f0e699f99b768640ecc946e)
2026-11-12 04:31:39 +00:00
Karrz1 da83cfc03f Tests: no hired bot policy test in the core
The hired bots are not part of this core, so their policy test is gone from the test list.
2026-11-09 17:35:58 +00:00
Karrz1 ff699fb5cf Sync with WoW Forever 0.1.34: Blizzlike core
Brings forever up to date with our 0.1.34 code for the WoW Forever client 1.60.1.70862.
Blizzlike only: fixes from real game data (packet captures, live hotfixes, player caches, Wowhead and Questie data,
VMaNGOS for the vanilla world) and server fixes. No custom items or custom content; every rate and option defaults
to Blizzard's behaviour.

What is new since 2ae1313e, in short:
- Clients 70790, 70840 and 70862: message numbers, mail, guild window, charters, contact list, add-on whispers.
- Crash and exploit fixes: guild ranks, loot of emptied veins, quest lookups, taxi mask, battleground templates,
  vendor free buys, item sell price, auction house, falling out of the world, bnetserver request limit.
- Classes, talents, pets and buffs from the live game data and Blizzard's hotfixes of November.
- Quests, NPCs, spawns, trainers, loot, fishing, events, Merchant's Favor crates and writs, sealed crate turn-ins.
- Dungeon and raid scripts (Molten Core, Blackwing Lair, Zul'Gurub, Ahn'Qiraj, Shadowfang Keep, Deadmines ...).
- Pathing fixes that help pets and NPCs.
- Russian creature names, quest titles and quest texts.
- README: Blizzlike stance, branches, repack.
2026-11-09 17:27:57 +00:00
Karrz1 ff04fe72fa Network: connections per address and login timeouts
Nothing limited how many connections one address could hold open, and a connection that never logged in stayed open for good, on both servers. worldserver: Network.ConnectionsPerIp (16; a player uses two) and Network.AuthTimeout (60 s to log in). bnetserver: Network.ConnectionsPerIp (16), Network.HandshakeTimeout (30 s for the TLS handshake) and Network.LoginTimeout (600 s to log in). 0 turns each off, and connections from the server's own PC (loopback) are never limited, so the local launcher and a single-PC realm are unaffected. The count lives in Trinity::Net::IpConnectionLimit (common/network), with a test.
2026-10-27 15:04:16 +00:00
KylRikul 4b0d1242f1 test: cover incremental commits and validation safeguards 2026-10-08 19:49:52 +02:00
Advocaite 3dc19a1fee Merge pull request #14 from KylRikul/codex/forever-caster-control-overlap
Check overlapping caster control effects before allowing a spell
2026-10-08 18:29:24 +08:00
Advocaite a2ce325f59 Merge pull request #17 from KylRikul/codex/forever-shadowburn-death-aura
Arm native Shadowburn death-item aura before its killing damage
2026-10-08 18:29:20 +08:00
Advocaite 5b7d93ca57 Merge pull request #15 from KylRikul/codex/forever-pet-follow-position
Keep hunter pet follow and recall positions consistent
2026-10-08 18:29:16 +08:00
KylRikul ef725658da Arm native Shadowburn death-item aura before its killing damage - regression coverage 2026-10-08 12:26:05 +02:00
Advocaite 24ef35397d Merge pull request #13 from KylRikul/codex/forever-sentry-aura-cleanup
Remove the owner-cast Sentry aura when its current totem despawns
2026-10-08 18:23:28 +08:00
Advocaite e5bfbce78a Merge pull request #9 from KylRikul/codex/forever-power-index-guard
Guard class power lookup against invalid resource indices
2026-10-08 18:23:20 +08:00
Advocaite aa496eb70e Merge pull request #7 from KylRikul/codex/forever-temporary-enchant-visuals
Show temporary weapon enchant visuals and refresh them on changes
2026-10-08 18:23:16 +08:00
Advocaite f77c59ee62 Merge pull request #6 from KylRikul/codex/forever-paladin-aura-exclusivity
Enforce native Paladin aura exclusivity per caster
2026-10-08 18:23:11 +08:00
Advocaite 111ac44daf Merge pull request #5 from KylRikul/codex/forever-pet-scale-interval
Fix pet family scale interpolation interval
2026-10-08 18:23:07 +08:00
Advocaite 7d615c290e Merge pull request #4 from KylRikul/codex/forever-summon-level-fallback
Preserve companion levels when summon scaling limits are absent
2026-10-08 18:23:03 +08:00
Advocaite e688b71cc4 Merge pull request #3 from KylRikul/codex/forever-dispel-immunity-mask
Fix dispel immunity mask comparisons
2026-10-08 18:22:59 +08:00
KylRikul e25af384ec Keep hunter pet follow and recall positions consistent - regression coverage 2026-10-08 12:21:36 +02:00
KylRikul a2e2bd81cf Check overlapping caster control effects before allowing a spell - regression coverage 2026-10-08 12:19:01 +02:00
KylRikul e258978d66 Check overlapping caster control effects before allowing a spell - regression coverage 2026-10-08 12:18:56 +02:00
KylRikul a159b59cd2 Remove the owner-cast Sentry aura when its current totem despawns - regression coverage 2026-10-08 12:17:25 +02:00
KylRikul e6a4e6d4dd Roll and cast each combat enchant effect only once - regression coverage 2026-10-08 12:16:28 +02:00
KylRikul 6c08e13406 Guard class power lookup against invalid resource indices - regression coverage 2026-10-08 12:10:29 +02:00
KylRikul 0fa56002d8 Test native temporary enchant visuals, precedence and clearing 2026-10-08 11:14:06 +02:00
KylRikul 6acf7fcd84 Expose visual resolution to the focused regression fixture 2026-10-08 11:13:50 +02:00
KylRikul 7870ffbf08 Test native Paladin aura classification and per-caster stacking 2026-10-08 11:09:11 +02:00
KylRikul fb6817be82 Add narrow test access for aura classification 2026-10-08 11:08:39 +02:00
KylRikul c0f43d174b Add regression coverage for pet family scale intervals 2026-10-08 11:04:18 +02:00
KylRikul 5a5534a682 Add regression coverage for companion level initialization 2026-10-08 08:38:27 +02:00
KylRikul a58cc25234 Add regression coverage for dispel immunity callers 2026-10-08 08:31:46 +02:00
KylRikul 2807989d66 Initialize real spell immunity data for regression tests 2026-10-08 08:30:35 +02:00
Shauren 4db97c8372 Dep/Catch2: Update to 3.15.2 2026-07-15 23:46:27 +02:00
Shauren b63bf1c1e6 Core/Misc: Reduce memory usage when data query cache is disabled in config 2026-03-13 12:57:02 +01:00
Shauren 3331699906 Build: Modernize include directory management using target_sources(FILE_SET) 2025-11-12 22:53:54 +01:00