Skip to content

wowlua v0.13.7

Choose a tag to compare

@github-actions github-actions released this 30 Oct 10:45
· 288 commits to main since this release
dd08326

0.13.7 (2026-10-30)

New

  • World profiles from the game: /wl snapshot records your character's world in a dev build (gear, bags, action bars, auras, target, settings), and wowlua profile snapshot <name> writes it as tests/profiles/<name>.json, without your character's name and realm.
  • A world profile's trained lists the spells your character has trained, by ID: they are known in the test (IsSpellKnown, IsPlayerSpell), and /wl snapshot records your spellbook into it. mock.player:learn and mock.player:unlearn change them in a test. A profile's spells is only for changing a spell's data now.
  • unit:update(data) changes a unit's data in place, any field mock.spawnUnit takes: its level, name, reaction, class, health, distance and so on. The unit stays the same unit, and each change fires the event the game fires for it (UNIT_LEVEL, UNIT_FACTION, UNIT_NAME_UPDATE, …).
  • Completion offers the functions, classes, values and enums your other files export, and adds their import when you pick one.
  • Editors can choose when the language server checks (while typing, when you pause, on save), which build profile its diagnostics follow, and how many threads it uses, in its initialization options or workspace/didChangeConfiguration.
  • Each flavor has its max level (WoW Forever 60, Classic Era 60, TBC Anniversary 70, Retail 90): a world profile's character above the max level of your flavors is E4401, and GetMaxLevelForLatestExpansion answers it in tests.
  • A world profile's unit can have "level": -1, a boss's "??" level: UnitLevel answers -1.
  • The world profile schema describes position.world ({ y, x, z, instanceID }, where UnitPosition places your character) and the fields of channels (joined channels, groupChannels, regionalService), so editors complete them.
  • addon.toc-extra documents the TOC directives you can add there (AddonCompartmentFunc, AllowLoadGameType, …) in its schema and the manifest reference.
  • A function breakpoint can name where a function is defined: src/Threat.wowlua:560 stops in every call of the function defined on that line, local functions too.
  • mock.setHardcore(true) makes the test's realm a hardcore realm on vanilla (Classic Era): C_GameRules.IsHardcoreActive() answers true.
  • Every power of a class: in tests a unit has all the powers its class has, not just one. A druid has mana, rage, energy and combo points, a rogue energy and combo points, a death knight runic power and runes, a monk energy, mana and chi. UnitPower(unit, Enum.PowerType.ComboPoints) and UnitPowerMax answer each one; without a type they answer the power the unit shows, as before.
  • mock.spawnUnit, mock.setPlayer, unit:update and a world profile's units take powers, by token: powers = { RAGE = { current = 30 }, COMBO_POINTS = { current = 2, max = 5 } }. A changed power fires UNIT_POWER_UPDATE and UNIT_MAXPOWER with its token, and unit:setPower(n, { powerType = "COMBO_POINTS" }) sets any of them. A key that isn't a power token is E4401 in a profile.
  • Each flavor lists its classes with their powers and its races, so wowlua and wowlua Studio show the same ones (WoW Forever's nine classes and its races, the Skyborne among them; MoP Classic's Death Knights, Monks and Pandaren; Retail's thirteen classes).
  • Racial spells: your character knows its race's racial spells in tests without listing them (IsPlayerSpell, C_SpellBook.IsSpellKnown), taken from the game's own data for WoW Forever, Classic Era, TBC Anniversary and MoP Classic, by class where they differ (an Undead's Touch of the Grave). WoW Forever's Skyborne know Walk on Air, Elemental Insight and Wind Blessed, plus Read Leyline as the Alliance's High Order Skyborne or Skysight as the Horde's Windshaper Skyborne.
  • A world profile's character can only be a race and class the game pairs in your flavors (the game's own data): a Classic Era Orc priest or an Alliance Skyborne shaman is E4401. The flavor table lists each race's classes, so wowlua Studio offers only those.
  • Each race in the flavor table has its faction (Alliance, Horde, or either for the Pandaren, Dracthyr, Earthen, Haranir and Skyborne), so wowlua Studio offers a faction choice only where the player picks one.

Changed

  • test.screen.uiScale and a world profile's screen.uiScale take the game's UI Scale slider's values, 0.65 to 1.15 in steps of 0.01: another value is E4002 in wowlua.json and E4401 in a profile.
  • Coverage minimums in test.coverage are percentages from 0 to 100, and stdlib.log.history-size is at least 1: other values are E4002 (a history size of 0 made every log call fail).
  • wowlua's flavors are camelot (WoW Forever), standard (Retail), vanilla (Classic Era), tbc (TBC Anniversary) and mists (MoP Classic). camelot is supported everywhere: tests, the emulated client and the debugger run it. The others are coming soon: wowlua checks and builds them, but doesn't run them yet.
  • mists stays a flavor, now named MoP Classic: it is coming soon like Retail, Classic Era and TBC Anniversary, and a world profile's character on it goes up to level 90.
  • cata and wrath (and the alias titan) are no flavors anymore: a wowlua.json naming one gets E4004. wowlua init reads no _Cata or _Wrath TOC, and a packager project's --@version-wrath@, --@version-titan@ and --@version-cata@ blocks are left out of every build.
  • Watches and hovers in the debugger only read: they set nothing and call only functions that change nothing (the Lua library's, like string.format, and the game's queries, like UnitHealth or frame:GetWidth()). Anything else says so instead of running; the debug console still runs any code.
  • A unit with a class shows its class's power unless you give powerType: a spawned warrior shows rage and a rogue energy (mana before), each at its default (rage 0 of 100, energy 100 of 100, combo points 0 of 5). Changing a unit's class with unit:update gives it the new class's powers and fires UNIT_DISPLAYPOWER.
  • Mana starts full: a character's mana is its class's base mana for its level in the game's data (a level 1 mage 100, a priest 110 on WoW Forever), and a unit without one has 100 of 100 instead of 0 of 100.
  • UnitHasPowerType is true for any power the unit has, and an item's mana only changes the mana of a character that has it.
  • A character's or unit's faction follows its race: UnitFactionGroup of an Orc is "Horde" even if faction says otherwise, and a world profile giving a race another faction is E4401. faction is for races of either faction (a Skyborne's UnitRace then answers High Order Skyborne or Windshaper Skyborne) and for creatures. A player given only faction = "Horde" is an Orc instead of a Human.
  • wowlua test --profile-out and the MCP server's profile_stop keep the whole profile in the speedscope file: each function's calls, the events and scripts, and the call trees of the last 600 game frames. speedscope still opens it.

Fixed

  • A world profile's unit with "nameplate": true no longer stops Blizzard's nameplates with an error (bad argument #2 to 'SetSize'): its nameplate appears once your character enters the world, as in the game.
  • camelot's client is found in _forever_, where WoW Forever installs it: wowlua install, wowlua dev, the game's art in screenshots and the game data read from the client work with it again (_classic_beta_ still works for a beta client).
  • On standard, mists, tbc and vanilla, functions the game client has but Blizzard does not document exist, as on camelot: GetQuestLogTitle on Classic Era, GetGlyphSocketInfo on Mists, GetReadyCheckStatus everywhere. Without a behaviour they raise "not mocked", so a test can mock them; before they were nil, even though the type checker knew them. A function only some clients have still exists only on theirs.
  • C_ActionBar.GetBonusBarOffset, C_ActionBar.HasOverrideActionBar, C_ActionBar.HasVehicleActionBar, C_PetBattles.IsInBattle, IsTargetLoose, UnitIsMinion, UnitNameplateShowsWidgetsOnly, UnitIsTapDenied, GetRaidTargetIndex, GetNumArenaOpponentSpecs, GetArenaOpponentSpec, GetReadyCheckStatus, C_TTSSettings.GetSpeechRate and C_TTSSettings.GetSpeechVolume answer on every flavor as the client does with nothing there, instead of "not mocked" or nil. GetExpansionLevel, GetServerExpansionLevel, GetClassicExpansionLevel, GetAccountExpansionLevel, GetMaximumExpansionLevel and GetMinimumExpansionLevel answer what each client does (the server's expansion only after login).
  • C_ClassColor.GetClassColor answers each class's colour on every flavor, as the game does (Classic Era's Shaman in pink), and nothing for a class the client doesn't have.
  • On mists, tbc and vanilla, GetTalentGroupRole raises the client's "API unsupported in this version of World of Warcraft." error, as do GetNumTalentTabs, GetNumTalentGroups and GetUnspentTalentPoints on mists and GetNumSpecGroups and GetTalentTierInfo on tbc and vanilla. GetRuneType answers each rune's type as the game does (1, 1, 3, 3, 2, 2), and nothing for another rune.
  • Kiosk.GetCharacterTemplateSetIndex exists on standard, mists, tbc and vanilla (as on camelot), and C_SocialRestrictions.IsAgeVerificationRestricted on standard.
  • On mists, tbc and vanilla, C_CombatLog.GetCurrentEventInfo() answers the payload of the last COMBAT_LOG_EVENT_UNFILTERED a test fired, C_GameRules.IsHardcoreActive() answers false unless the test set a hardcore realm, and GetWeaponEnchantInfo() answers no enchant with the client's number of values (8 on Mists, 12 on TBC and Classic Era).