Visitar URL original
main quest softlock bug · Issue #12311 · Card-Forge/forge · GitHub
Skip to content

main quest softlock bug #12311

Open
Open

Description

@darklurker11

Describe the bug
I on quest "the enemy of my enemy" and I can't complete the rescue objective because the green castle has been completed beforehand so I got softlocked

To Reproduce
Just defeat a castle boss before the quest begins

Expected behavior
For a way to check if the boss was defeated like a servant npc complaining, a switch to check the rescue part or by just owning the key

Activity

  1. added theissue type on Oct 20, 2026
  2. fixfon commented on Oct 31, 2026

    @fixfon

    From reading the code (not tested in game), this is the same bug as #9084, closed as stale without a fix.

    The "Rescue the ... Captive" stages (Shandalar/world/quests.json L11177-11179) wait for a QuestFlag Ch1<Color>CastleComplete. AdventureQuestStage.java L361-363 only completes them from a QUESTFLAG event while the stage is active, so a flag set earlier is ignored. green_castle.tmx L73-74 opens the gate without the mainQuest flag, and the boss dialog in green_castle_f1.tmx L50/L60 sets the flag and deletes the boss. AdventureQuestData.java L234-239 only resets isDungeon() POIs, and DUNGEON_TYPES (PointOfInterestData.java L84) has no "castle", so #12429 doesn't cover this.

    Checking the existing flag when the stage starts, or resetting castles too, would avoid this.

    I used an AI coding agent (Claude Code) to help trace this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions