Skip to content

fix(Scripts/Northrend): Update Drakkensryd proto-drake vehicle logic#25587

Merged
Rorschach91 merged 2 commits intoazerothcore:masterfrom
sogladev:fix-drakkensryd-3
May 2, 2026
Merged

fix(Scripts/Northrend): Update Drakkensryd proto-drake vehicle logic#25587
Rorschach91 merged 2 commits intoazerothcore:masterfrom
sogladev:fix-drakkensryd-3

Conversation

@sogladev
Copy link
Copy Markdown
Member

@sogladev sogladev commented Apr 25, 2026

Changes Proposed:

This PR proposes changes to:

  • Core (units, players, creatures, game systems).

  • Scripts (bosses, spell scripts, creature scripts).

  • Database (SAI, creatures, etc).

  • refactor manual accessory reinstall logic

  • set Hyldnir Harpoon to only enter the passenger position. Avoids issues where a second player can mount the Rider's position

  • set UNIT_FLAG2_PREVENT_SPELL_CLICK to avoid cogwheel icon on the drake

TODO: Using the harpoon can overwrite / mount an already occupied player's seat.

AI-assisted Pull Requests

Important

While the use of AI tools when preparing pull requests is not prohibited, contributors must clearly disclose when such tools have been used and specify the model involved.

Contributors are also expected to fully understand the changes they are submitting and must be able to explain and justify those changes when requested by maintainers.

  • AI tools (e.g. ChatGPT, Claude, or similar) were used entirely or partially in preparing this pull request. Please specify which tools were used, if any.

Issues Addressed:

#25387 (comment)

SOURCE:

The changes have been validated through:

  • Live research (checked on live servers, e.g Classic WotLK, Retail, etc.)
  • Sniffs (remember to share them with the open source community!)
  • Video evidence, knowledge databases or other public sources (e.g forums, Wowhead, etc.)
  • The changes promoted by this pull request come partially or entirely from another project (cherry-pick). Cherry-picks must be committed using the proper --author tag in order to be accepted, thus crediting the original authors, unless otherwise unable to be found

Tests Performed:

This PR has been:

  • Tested in-game by the author.
  • Tested in-game by other community members/someone else other than the author/has been live on production servers.
  • This pull request requires further testing and may have edge cases to be tested.

.tele storm
.add q 12886

How to Test the Changes:

  • This pull request can be tested by following the reproduction steps provided in the linked issue
  • This pull request requires further testing. Provide steps to test your changes. If it requires any specific setup e.g multiple players please specify it as well.

Known Issues and TODO List:

  • [ ]
  • [ ]

How to Test AzerothCore PRs

When a PR is ready to be tested, it will be marked as [WAITING TO BE TESTED].

You can help by testing PRs and writing your feedback here on the PR's page on GitHub. Follow the instructions here:

http://www.azerothcore.org/wiki/How-to-test-a-PR

REMEMBER: when testing a PR that changes something generic (i.e. a part of code that handles more than one specific thing), the tester should not only check that the PR does its job (e.g. fixing spell XXX) but especially check that the PR does not cause any regression (i.e. introducing new bugs).

For example: if a PR fixes spell X by changing a part of code that handles spells X, Y, and Z, we should not only test X, but we should test Y and Z as well.

- refactor manual accessory reinstall logic
- set Hyldnir Harpoon to only enter the passenger position. Avoids
issues where a second player can mount the Rider's position
- set UNIT_FLAG2_PREVENT_SPELL_CLICK to avoid cogwheel icon on the drake
Copilot AI review requested due to automatic review settings April 25, 2026 14:37
@github-actions github-actions Bot added CORE Related to the core Script Refers to C++ Scripts for the Core file-cpp Used to trigger the matrix build labels Apr 25, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the Hyldsmeet Proto-Drake (Drakkensryd quest) vehicle behavior to improve seat/vehicle usability and reduce unintended player interactions.

Changes:

  • Refactors proto-drake accessory reinstall logic by tracking whether the accessory is currently installed and respawning it on a timer after removal.
  • Prevents spell-click interaction on the proto-drake (removing the cogwheel interaction icon) via UNIT_FLAG2_PREVENT_SPELL_CLICK.
  • Applies a SpellMgr correction for 54933 (Hyldnir Harpoon) to force a specific vehicle seat selection via BasePoints.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/server/scripts/Northrend/zone_storm_peaks.cpp Adjusts Hyldsmeet proto-drake vehicle AI (seat handling, accessory reinstall gating, prevents spell-click).
src/server/game/Spells/SpellInfoCorrections.cpp Forces Hyldnir Harpoon to use a specific vehicle seat through a spell effect basepoints correction.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/server/scripts/Northrend/zone_storm_peaks.cpp Outdated
// 54933 Hyldnir Harpoon
ApplySpellFix({ 54933 }, [](SpellInfo* spellInfo)
{
spellInfo->Effects[EFFECT_0].BasePoints = 1;
Copy link

Copilot AI Apr 25, 2026

Choose a reason for hiding this comment

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

This spell correction sets BasePoints = 1, but it’s not obvious to future readers that this is to force a specific vehicle seat (often seatId = points - 1). Adding a short inline note about the seat mapping/intent would make this fix easier to maintain.

Suggested change
spellInfo->Effects[EFFECT_0].BasePoints = 1;
spellInfo->Effects[EFFECT_0].BasePoints = 1; // Force vehicle seat 0 (seatId is derived from points, typically points - 1).

Copilot uses AI. Check for mistakes.
@sogladev sogladev force-pushed the fix-drakkensryd-3 branch from d7fc9d2 to 238e298 Compare April 25, 2026 15:18
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Rorschach91 Rorschach91 merged commit 43aa645 into azerothcore:master May 2, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CORE Related to the core file-cpp Used to trigger the matrix build Ready to be Reviewed Script Refers to C++ Scripts for the Core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hunter cannot complete the mission “The Drakkensryd” Hunter cannot complete the mission “The Drakkensryd”

3 participants