Skip to content

wowlua v0.13.9

Choose a tag to compare

@github-actions github-actions released this 09 Nov 18:04
· 62 commits to main since this release
2f65dc0

0.13.9 (2026-11-09)

New

  • Arena opponents: mock.setArenaOpponent(slot, unit) puts a unit on arena1 to arena5 and fires ARENA_OPPONENT_UPDATE ("seen", "unseen" with nil, "cleared" from mock.clearArenaOpponents() or leaving the instance); mock.prepareArena(specs) sets the opponents' specializations for GetArenaOpponentSpec and fires ARENA_PREP_OPPONENT_SPECIALIZATIONS. GetNumArenaOpponents counts them, and unit events such as UNIT_HEALTH fire for the arenaN tokens.
  • The pet's spellbook: mock.setPet(pet, { spells = { … }, icon = … }) gives the pet its spells. C_SpellBook.HasPetSpells counts them, the spellbook functions read them in the pet's bank (GetSpellBookItemInfo(i, Enum.SpellBookSpellBank.Pet) and the others), Blizzard's spellbook switches their autocast (on the pet bar too; an addon calling ToggleSpellBookItemAutoCast or SetSpellBookItemAutoCastEnabled gets ADDON_ACTION_FORBIDDEN, as in the game, so right-click the game's pet bar button instead: /click PetActionButton4 RightButton works in combat too), PickupSpellBookItem(i, Enum.SpellBookSpellBank.Pet) picks up the pet's spell instead of yours, and GetPetIcon answers the pet's icon. PetHasSpellbook and GetPetIcon are now typed.
  • wowlua mcp in any addon: registered once (claude mcp add --scope user wowlua -- wowlua mcp), it works in an addon that has no wowlua.json, with no setup: the addon is adopted in memory as wowlua init would, its files staying where they are and nothing written in its folder. Sessions run it over Blizzard's UI with the libraries in its libs/ folder, and its builds go to ~/.wowlua/adopted/.
  • World profiles accept renown, a map of faction IDs to numeric renown levels, applied before the addon loads.
  • More for AI agents in wowlua mcp: an agent can now check, format, build and test your package (check, fmt, build, and test with the failures' messages and lines, and coverage on request), see which frame is at a point (pick) and everything about one frame (inspect: anchors, scripts, events, the line that made it), list the world's units (units), log the game events (events), change the screen size (set_screen), save the running world as a world profile (save_world) and list the breakpoints with their hits (breakpoints). A stop at an error, a blocked action or taint now tells its details.
  • An agent can read wowlua's docs and the standard library's reference through wowlua mcp (wowlua_docs, wowlua_reference): the docs and modules of exactly the wowlua it runs, with no web access needed.
  • test.blizzard-ui reads Blizzard's UI code and global strings from your WoW installation when the flavor's game is installed, so tests run against exactly your client's UI. Without the game (in CI) it still downloads them; WOWLUA_UI_FROM=upstream downloads them anyway.
  • The game's Graphics settings: setting a Graphics option's level (Shadow Quality, View Distance, …) or the overall quality sets the settings it stands for, as the game does, and a session starts with them as the game's defaults fill them in.
  • Zooming in on a character: with --world, a character the camera comes very close to fades, and is gone with the camera inside it, instead of showing its insides.
  • Shadows in the 3D world: with --world, the sun (the moon at night) casts the shadows of characters, buildings, trees and hills, as far and as sharp as the game's Shadow Quality says. At its lowest, every character and creature has the game's round shadow under its feet, and on the Classic clients the ground shows its trees' and buildings' shadows from your installation's terrain.
  • Ambient occlusion and bounce light in the 3D world: with --world, creases, corners and the feet of walls and trees darken as the game's SSAO setting says (SSAO and its assao… values), and surfaces take the sky's light from above and the ground's from below as giQuality says.
  • WoW Forever's water: with --world, the camelot flavor's rivers and lakes ripple, reflect the sky, glint in the sun, show their bed in the shallows and foam along their shores, close to the game's own water.
  • Spells in the 3D world: with --world, spells look as in the game. A caster's hands glow while it casts, a Fireball flies to its target and bursts on it, and auras show their glow on the unit while they are up, for the spells your tests cast (unit:castSpell) and apply (unit:applyAura).
  • With --world, rain, snow and sand no longer fall inside buildings, and shadows cost less to draw.
  • A far horizon in the 3D world: with --world, distant hills show past the view distance, as far as the game's horizon setting says (horizonClip).
  • Sharper ground in the 3D world: with --world, textures stay sharp at a distance as the game's texture filtering setting says (textureFilteringMode), and the ground shines in the sun where its textures say (specular).
  • Smoother edges in the 3D world: with --world, edges are smoothed as the game's Anti-Aliasing settings say: its image-based smoothing (ffxAntiAliasingMode, on by default) and multisampling (MSAAQuality).
  • Weather: mock.setWeather("rain", 0.5) and a world profile's "weather" make it rain, snow or blow sand. C_Weather.GetCurrentWeather answers it, and with --world it falls around you while the sky turns stormy, as the game's does. A saved world profile keeps the weather and the time of day.
  • Ground clutter in the 3D world: with --world, the ground grows its grass, flowers and stones from your installation's terrain, as far and as dense as the game's settings say (groundEffectDist, groundEffectDensity).
  • Moving props in the 3D world: with --world, the props near you that move in the game (banners, lanterns, mills, birds, fountains, flowing textures) play their animations, each in its own rhythm, and the props and units show their particles: flames, smoke, sparkles.
  • Water in the 3D world: with --world, lakes, rivers, the sea and lava are drawn with their animated surfaces, the ground and units under the water showing through.
  • Daylight in the 3D world: with --world, the sky with its clouds and stars, sunlight, ambient light and fog come from your installation's light tables for the place and the realm's time of day, each game version its own. A session starts at 12:00; mock.setTimeOfDay(hour, minute) and a world profile's "time": "21:30" set the time, which GetGameTime now answers instead of always 12:00.
  • The Classic flavors' engine knows the game's colors (C_UIColor.GetColors, NORMAL_FONT_COLOR and the others Blizzard's code makes from them) and the enums and LE_* constants their clients define, so much more of Blizzard's UI loads on vanilla, tbc and mists. There, GetMaxPlayerLevel and GetMaxLevelForPlayerExpansion answer the flavor's max level (60, 70 and 90).

Changed

  • frame:Raise() no longer changes the frame's level, and clicking a top-level frame no longer brings it to the front, as in the game.
  • The camelot, vanilla, tbc and mists API declarations come from the games' current clients (WoW Forever 1.60.1.70862, Classic Era 1.15.9.70576, Anniversary 2.5.6.70577, Mists Classic 5.5.4.70631), with their global strings. A Classic flavor now declares only the UI globals its own game loads, not those of the other Classic games.
  • WoW Forever 1.60.1.70862: C_BattleNet.GetDefaultTitleWhisperTarget is declared, and BNGetDisplayName's result may be nil, so check it before using it as a string.

Fixed

  • A scroll frame's GetVerticalScrollRange() and GetHorizontalScrollRange() are secret values while something in its scroll child shows a text set from a secret, such as Blizzard's character stats in combat, as in the game: math.max(0, scroll:GetVerticalScrollRange()) now fails in your tests as it did for SuuUI in the game ("attempt to perform numeric conversion on a secret number value"). The scroll frame's and its child's sizes and its scroll stay plain numbers. Check the range with issecretvalue before doing math with it.
  • Frames are laid out as in the game: OnSizeChanged runs when a frame's place is asked for (GetLeft, GetSize, …) and otherwise before the next frame, no longer always a frame later. A frame anchored to one whose OnSizeChanged resizes the frame it hangs on (a panel that fits its height to its body) gets no place if it is laid out then for the first time: GetLeft answers nil and it is not drawn until you anchor it again, as SuuUI's keybind mode's Done button did in the game, so your tests catch it now. Let the body's script fit the panel a frame later (C_Timer.After(0, fit)), or anchor the frame again once the panel has its size.
  • The world map's quest details on WoW Forever show every reward: the rewards box is tall enough for its XP, money and items, as in the game. Before, it came out too short and the Abandon, Share and Track buttons covered the reward row. A font string that your XML leaves without anchors is now placed by its first SetPoint alone, as Blizzard's code expects, instead of also keeping its parent's bottom right corner.
  • A test's UI scale (config({ screen = { uiScale = 0.8 } }), the manifest's test.screen.uiScale, a world profile's screen) and start_session's now take effect on camelot: UIParent always came out at the fresh character's recorded 0.66. A world profile's own uiScale CVar applies only when the screen asks for no UI scale.
  • A secure button's macro runs its lines, as in the game: type = "macro" with macrotext (or macro, a saved macro) runs /click PetActionButton4 RightButton, /cast and the game's other slash commands, in combat too. Before, it did nothing. An addon calling C_Macro.RunMacroText itself gets ADDON_ACTION_FORBIDDEN.
  • GetCurrentKeyBoardFocus() may return nil, as it does while nothing has the keyboard's focus: expect(GetCurrentKeyBoardFocus()).toBe(nil) compiles.
  • On case-sensitive file systems, Blizzard's barber shop functions (ShowBarberShopFrame, HideBarberShopFrame, BarberShopFrame_LoadUI) exist as in the game: wowlua now finds a Blizzard addon's TOC whatever the case of its name, as Windows does.
  • The LibStub that mock.provideLibrary sets up has a minor version, so a real LibStub loaded after it upgrades it instead of failing with "attempt to compare nil with number".
  • wowlua mcp started in a folder without an addon no longer quits (which agents' clients show only as a closed connection); its tools say why there is nothing to run.
  • An asset under libs/, such as a library's textures, no longer fails the build with E4311 when no dependency writes the same file.
  • A texture with several masks (AddMaskTexture) shows wherever any of them shows it in screenshots, as in the game, not only where its first does. A texture takes three masks, as in the game: a fourth AddMaskTexture is an error, with the game's message.
  • Regions made or set on a draw layer named in lowercase (CreateTexture(nil, "background")) are drawn on that layer, not all on ARTWORK, and GetDrawLayer answers the name in capitals.
  • A top-level frame (SetToplevel(true)) is drawn above the rest of its strata when it is shown, its frame level unchanged, as in the game: SuuUI's bags open in front of its damage meter with their slots in front of their background.
  • A scroll frame's scroll child moves with its scroll (SetVerticalScroll, SetHorizontalScroll): its rows scroll on the screen, not only its scroll bar, as SuuUI's settings window's did.
  • The mouse wheel reaches a frame that takes only the wheel (EnableMouseWheel, an OnMouseWheel script) over a frame that takes the mouse: SuuUI's settings navigation scrolls again in wowlua Studio's game, instead of the camera zooming.
  • The mouse wheel reaches the topmost frame under the mouse that takes the wheel even when a frame that takes only the mouse is above it, as in the game; before, the camera zoomed.
  • On camelot, the races' racial spells follow WoW Forever 70707 with the server's changes: the Orcs' Command (was Savage), the Dwarves' Artisan's Precision (was Earth Fury). Once the game has reached its login screen, the 3D world, talents, spells and atlases read from your installation follow the server's changes too.
  • With WoW Forever's latest update (1.60.1.70707) installed, test.blizzard-ui loads Blizzard's UI again, and spell descriptions read from your installation show their durations again.
  • Blizzard's global strings read from your installation have their line breaks, trailing spaces and backslashes: chat lines read "says: ", not says:\32.
  • wowlua publish with a missing or wrong token now shows the registry's reason on Windows, not a connection error.
  • Aura containers (CustomAuraContainerTemplate, aura.container) on WoW Forever show only the auras the unit has: every one of their buttons showed, empty, so a player without debuffs looked as if they had Magic, Curse, Poison and Disease debuffs.
  • GetNumRegions() counts a frame's current regions, including hidden regions, rather than returning a fresh frame's recorded count.
  • DisableDrawLayer and EnableDrawLayer hide and restore a frame's draw layers without changing its regions' shown state or its child frames' layers.
  • Clearing texture artwork with file ID 0 no longer draws missing-texture placeholders.
  • ClearNormalTexture and a button's other Clear…Texture methods empty and hide the texture but leave it the button's, so GetNormalTexture still answers it afterwards: Blizzard's professions UI on WoW Forever loads again without an error.
  • A frame's OnUpdate follows SetOnUpdateMode: Enum.OnUpdateMode.Disabled stops it, RunWhenVisibleOnce and RunOnce run it once, and RunOnce and RunAlways run it while the frame is hidden too. Before, every shown frame's OnUpdate ran each frame, whatever its mode.
  • An aura filter with a negated category, such as HARMFUL|!CROWD_CONTROL, no longer matches every aura, so rows split by a category and its negation show each aura once. unit:applyAura takes crowdControl, raidInCombat, important, bigDefensive and externalDefensive to put an aura in those filters, and DISPELLABLE finds auras with a dispel type.
  • A texture tiled with SetHorizTile(true) or SetVertTile(true) is drawn as in the game: set with SetTexture(file, "REPEAT", "REPEAT") its image repeats at its own size across the texture, and without "REPEAT" the image shows once and its edge pixels stretch over the rest. Before, the image was stretched once over the whole texture. This holds for a status bar's fill texture too.