DB/Quest: Restrict both A Druid's Form quests to druids
Maintainer antworten meist innerhalb von 6 Tagen
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 76/100
Rechercherichtung
Beginne mit der SQL-Korrektur im Issue und untersuche das Schema von quest_template_addon sowie die vorhandenen Zeilen für die Quest-IDs 59350 und 59951. Führe die Anweisung in einer lokalen Datenbank aus und überprüfe, dass bei beiden Quests AllowableClasses auf 1024 gesetzt ist und die übrigen Add-on-Felder erhalten bleiben. Fertig, wenn für beide Quests nur Druiden die Klassenbeschränkung erfüllen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
A hunter can see Ralia Dreamchaser's A Druid's Form (59350) at the Exile's Reach camp. The quest has no quest_template_addon row, so AllowableClasses defaults to 0 and the server accepts every class. The Horde counterpart, 59951, has the same missing restriction.
Both quest templates explicitly refer to “your druidic studies” and learning the stag form, and both use reward spell 321047. The installed client DB2 independently confirms that 321047 has effect 36 (SPELL_EFFECT_LEARN_SPELL) with EffectTriggerSpell=783, Travel Form; spell 783 has SpellClassSet=7, which the core defines as SPELLFAMILY_DRUID. This supports restricting both quests to druids without inferring an unobserved prerequisite. The existing Alliance relations are Ralia Dreamchaser 156932 as starter and Ralia Dreamchaser 164907 as ender. No Horde relation or race prerequisite is added by this fix.
fix.sql sets AllowableClasses=1024 for exactly 59350 and 59951. In the core, CLASS_DRUID=11 and Unit::GetClassMask() returns 1 << (GetClass()-1), so 1024 is the druid mask. Player::SatisfyQuestClass() uses that mask in the normal quest visibility and acceptance paths. No C++ change or quest scenario implementation is needed for this restriction.
Only AllowableClasses is updated. Existing addon fields, including prerequisites, remain intact. When an addon row is absent, the other columns receive their existing schema defaults. The fix does not alter AllowableRaces, questgivers, rewards, objectives, phasing, or the quest sequence.
Evidence includes the audited quest templates, missing addon rows, existing giver relations, related camp class restrictions, and the exact core class-gate source references. Ten available Retail captures were checked with a fully consuming quest decoder; none contains a query/details/list record for these two quests. QUERY_QUEST_INFO_RESPONSE does not carry server-side AllowableClasses or PrevQuestID, so no packet-derived prerequisite or exact class mask is claimed.
Validation: repeat SQL application and preservation of existing prerequisites/addon fields are checked in an isolated relational fixture. The actual Player::SatisfyQuestClass() function was extracted from the core and compiled in a harness: both quest masks allow only class 11 across classes 1–13, including rejection of hunters. A fresh pristine TDB 1210.26091 plus 104 master updates in MySQL 8.0.46 confirmed the missing rows and passed independent application, repeat and preservation checks. The two masks are deployed locally; client hunter/druid UI verification after that update has not been observed.
Selected non-player DB2 rows are attached as client-reward-db2.txt; the dump contains no character or account data.
Branch: master; base 2ce3ec2216f642850f1aa6c9a7a93c99f07666e9. Affected quests: 59350, 59951.
Sanitized source evidence · MySQL application/reapplication/preservation results.
SQL fix
-- A Druid's Form (Alliance 59350 / Horde 59951) must be druid-only.
-- CLASS_DRUID=11, so its class mask is 1 << (11-1) = 1024.
-- Update only the class restriction; preserve existing prerequisites and all
-- other addon fields. Missing rows receive the schema defaults for those fields.
INSERT INTO `quest_template_addon` (`ID`, `AllowableClasses`) VALUES
(59350, 1024),
(59951, 1024)
ON DUPLICATE KEY UPDATE `AllowableClasses`=1024;
Validation platform: Linux aarch64, MySQL8.0.46; local gameplay client macOS arm64.
- Vorherrschende Sprache
- C++
- Sterne
- 10.9k
- Forks
- 6.5k
- Ø Merge
- 9 T. 12 Std.
- Gemergte PRs (30 T.)
- 7
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus TrinityCore/TrinityCore
-
DB/Locale: add missing ruRU Ogre Ruins quest turn-in textEvtl. vergeben @kolyanok hat das heute übernommen. OffenBranch-master
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
TrinityCore/TrinityCore#32189 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 6 Tagen
-
DB/Loot: allow observed lower coin amounts on three Exile's Reach creaturesEvtl. vergeben @kolyanok hat das heute übernommen. OffenBranch-master
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
TrinityCore/TrinityCore#32182 ·
Maintainer antworten meist innerhalb von 6 Tagen
-
DB/Gameobject: Add the missing Quilboar Treasures spawn on Exile's ReachEvtl. vergeben @kolyanok hat das heute übernommen. OffenBranch-master
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
TrinityCore/TrinityCore#32177 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 6 Tagen
-
DB/Creature: Restore repair service for Exile's Reach quartermastersEvtl. vergeben @kolyanok hat das vor 1 Tag übernommen. OffenBranch-master
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 68/100
TrinityCore/TrinityCore#32176 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 6 Tagen
-
Branch-3.3.5a Comp-Database Feedback-FixHack
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
TrinityCore/TrinityCore#31779 · 19 Kommentare ·
Maintainer antworten meist innerhalb von 6 Tagen
Alle Issues in TrinityCore/TrinityCore
Ähnliche Issues
-
bug data-types
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
ClickHouse/clickhouse-cpp#645 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 2 Tagen
-
connector-maintenance
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
gettakaro/connectors#1067 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bot-triaged enhancement module: fft triaged
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 92/100