Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions sql/updates/world/2026_01_20_00_world.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
-- Update Thotar the Razor Hill hunter trainer
DELETE FROM `creature_template_gossip` WHERE `CreatureID` = 3171;
INSERT INTO `creature_template_gossip` (`CreatureID`, `MenuID`, `VerifiedBuild`) VALUES
(3171, 14006, 65299); -- 3171

DELETE FROM `gossip_menu` WHERE `MenuID` = 14006;
INSERT INTO `gossip_menu` (`MenuID`, `TextID`, `VerifiedBuild`) VALUES
(14006, 4888, 65299), -- 3171
(14006, 5002, 65299); -- 3171

-- Add conditions for If/If Not a Hunter
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 14 AND `SourceGroup` = 14006;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ConditionStringValue1`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(14, 14006, 5002, 0, 0, 15, 0, 4, 0, 0, '', 1, 0, 0, '', 'Show gossip text if player is not a Hunter'),
(14, 14006, 4888, 0, 0, 15, 0, 4, 0, 0, '', 0, 0, 0, '', 'Show gossip text if player is a Hunter');
8 changes: 8 additions & 0 deletions src/common/Utilities/UniqueTrackablePtr.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,14 @@ class unique_weak_ptr
unique_weak_ptr(unique_weak_ptr<T2>&& other) noexcept
: _ptr(std::move(other)._ptr) { }

template <typename T2>
unique_weak_ptr(unique_trackable_ptr<T2> const& aliased, T* aliasValue)
: _ptr(std::shared_ptr<T>(aliased._ptr, aliasValue)) { }

template <typename T2>
unique_weak_ptr(unique_trackable_ptr<T2>&& aliased, T* aliasValue)
: _ptr(std::shared_ptr<T>(std::move(aliased)._ptr, aliasValue)) { }

unique_weak_ptr& operator=(unique_trackable_ptr<T> const& trackable)
{
_ptr = trackable._ptr;
Expand Down
Loading