Skip to content

fix(illusion-temple): open the barriers, add the monsters of temple 6, show the skills, and fix the entry - #1618

Merged
sven-n merged 9 commits into
MUnique:masterfrom
pllanosclaria:fix/illusion-temple-arena
Nov 24, 2026
Merged

sven-n merged 9 commits into
MUnique:masterfrom
pllanosclaria:fix/illusion-temple-arena

Conversation

@pllanosclaria

Copy link
Copy Markdown
Contributor

Closes #1617

Fixes the problems of the issue, one commit per problem, so it can be reviewed commit by commit (or split, if you
prefer separate PRs).

Changes

  • Barriers (fix(illusion-temple): open the arena barriers…): IllusionTempleContext clears the Water attribute
    of every water tile of its map right before it sends BattleStarted, the same rule as the client. Not closed again:
    the map belongs to the game instance and is discarded with it. Not done with a MiniGameChangeEvent: its start events
    are applied before the 20 s preparation, and the client opens its own copy anyway.
  • Arena monsters (…add the arena monsters of temple 6 and the third one of temple 5, and …grant skill points for the arena monsters 400 to 403): the monsters 400–403 (stats from the S6 data of the issue, which matches ours for
    386–399), temple 5 cycles through 398–400, temple 6 gets the 32 spawns of 401–403 on the same positions.
    IllusionTempleDataUpdatePlugIn version 5 adds them to existing databases; on temple 5 it only changes the spawns
    which still have the monster version 4 put there. ArenaMonsterRangeEnd 403.
  • Entry (fix(mini-games): keep entering players in the game…): MiniGameContext.GetEntrySpawnPosition returns a
    random walkable tile of the entrance gate when the landing tile isn't walkable (every mini game; Kanturu falls back to
    it outside the tower). IllusionTempleContext only finishes for too few players while the match is running; before,
    RunGameAsync already handles too few players when the entrance closes (and gives the fee back).
  • Own player id (…name the player by the constant player id…): the skill target is looked up with
    Player.GetObject, and every Illusion Temple view call passes GetId(receiver) instead of the raw id. The view
    interfaces are unchanged.
  • Enter result (…don't blame the ticket level…): only CharacterLevelTooLow/TooHigh get 3; the other failures
    get 1, which the client shows no text for (the server tells the reason). This changes what f7db7bf set on purpose:
    the client's text for 3 is about the ticket level, so it's wrong for a missing ticket or missing zen.
  • Temple 5 up to 400 (…let characters of level 400 without the master class enter temple 5): initializer, and
    version 5 of the update where the maximum is still 399. A master class at 400 also fits 381–400 and could enter temple 5
    with a temple 5 ticket by a crafted request (the client sends temple 6 for them); excluding the master classes would
    need a new definition field, so I left it.
  • Mirage (…don't keep the player in the dialog of the entrance npc): TalkNpcAction.AdvancePlayerState is false for
    NpcWindow.IllusionTemple. OpenedNpc is still set, so the refusals are still told by her.

Testing

  • New tests in IllusionTempleContextTest (barriers open at the start and other blocked tiles stay; killing 386, 399,
    400 and 403 gives 2 points; entering on a gate with blocked tiles lands on the walkable one; leaving before the start
    keeps the game open; Order of Protection on oneself is answered with the constant id; the state names the receiver as
    relic carrier by the constant id; talking to the entrance npc doesn't block another npc), IllusionTempleDataTest
    (fresh database and the version 4 repair: 18 spirits, 32 spawns per temple in the cycle order; an owner's temple 5
    spawn stays; temple 5 maximum 399 → 400, an owner's 390 stays; a second run changes nothing) and the changed
    IllusionTempleEnterResultMappingTests. Each new test fails without its fix.
  • dotnet build src/MUnique.OpenMU.sln without warnings in the changed files; dotnet test src/MUnique.OpenMU.sln --no-build: MUnique.OpenMU.Tests 3533 (and one failure of ConcurrentIssuersStayWithinTheLimitAsync, "Collection was
    modified" in PlayerInMemoryContext.DeleteExpiredLoginTicketsAsync; it passed 5 of 5 runs alone, on this branch and on
    master, so it looks like a race of its own), Persistence.Initialization.Tests 1013, Web.Tests 835, Network.Packets.Tests
    726, Network.Tests 73, AttributeSystem.Tests 62, PlugIns.Tests 55, ChatServer.Tests 26, Pathfinding.Tests 10,
    ConnectServer.Tests 8.
  • In game, local server with this branch on a4768ac, Season 6 data, MuMain main (Linux), one player
    (MinimumPlayerCount 1; the problems were first seen with two):
    barriers open; spirits in temples 5 and 6, their kills give points; Order of Protection shown and usable again;
    Tracking; the relic carrier is slowed (client side, as in S6); entering without zen gives one message; a level 400
    character without the master class enters temple 5; after Mirage, the other NPCs talk again; the update ran at the
    start (version 4 → 5).
  • Not tested with the fixes: two or more players (the team logic isn't changed), the original 1.04d client (no packet
    changed).

…battle starts

The barriers between the team bases and the arena are the water tiles of the
temple map. The client clears them when it gets the BattleStarted state, but the
server kept them blocked, so every step into the arena was set back.
…d one of temple 5

Temple 6 had no Illusion Sorcerer Spirits, so its players couldn't get skill
points, and temple 5 cycled through two variants instead of three. Adds the
monsters 400 to 403 and their spawns, on the same 32 positions as the other
temples; version 5 of the update brings existing databases up to date.
…a blocked tile

The warp picks a random tile of the entrance gate, and the gate of the illusion
temples contains blocked tiles. A player who landed on one was sent to the
safezone, and the illusion temple then ended the whole event because too few
players were left, while the entrance was still open. Entering players now get
a walkable tile of the entrance gate, and the illusion temple only ends for too
few players once the match is running.
…o 403

Kills only counted for the monsters 386 to 399, so the new arena monsters of
temple 5 and 6 gave no skill points.
…s own event messages

The client knows its own player by the constant player id, but the illusion temple
looked a skill target up by the raw map id and sent the raw map ids back. A player
who used a skill on himself got the effect without seeing it, and his client kept
waiting for the answer, so it sent no further skill request. The same applied to
the relic carrier announcement, the end of a skill and the team state.
…ls for another reason

The client shows "The admission and scroll levels do not match" for the result 3,
which was also sent for a missing ticket, missing zen and any other failure, next
to the server's own message with the real reason. Only a character level which
doesn't fit the temple gets 3 now; the other failures get a result without a
client text.
…class enter temple 5

Temple 5 ended at level 399 and temple 6 requires the master class, so a level
400 character without it couldn't enter any temple. The client sends them to
temple 5. Version 5 of the update raises the limit where it's still 399.
…ance npc

The client closes the illusion temple entrance window without a close request, as
the original client did, so after talking to Mirage the player stayed in the npc
dialog state and couldn't talk to any other npc until he logged in again. Talking
to her doesn't change the player state anymore.
@codacy-production

codacy-production Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 44 complexity

Metric Results
Complexity 44

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Codacy reports the reflection on private fields (S3011). Like the existing helpers
of the fixture, it goes through helpers with a justified suppression.

@sven-n sven-n left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, and thanks for one commit per problem of #1617, which made it easy to review:

  • The arena barriers open with BattleStarted.
  • Temple 6 gets its arena monsters, and temple 5 its third one (version 5 of IllusionTempleDataUpdatePlugIn, which only touches the spawns version 4 put there).
  • Entering players land on a walkable tile.
  • The receiver-relative player ids are used consistently.
  • The enter result no longer blames the ticket level for other failures.
  • Level 400 characters without the master class can enter temple 5.

I built it on current master and ran the tests, including Persistence.Initialization.Tests (1013 passed): everything passes.


Generated by Claude Code

@sven-n
sven-n merged commit e567144 into MUnique:master Nov 24, 2026
1 check passed
@pllanosclaria
pllanosclaria deleted the fix/illusion-temple-arena branch November 24, 2026 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Illusion Temple: the barriers stay closed, temple 6 has no monsters, the skills aren't shown, and more

2 participants