mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
Core/Conversations: Conversation actor improvements
* Store NoActorObject in database * Support adding player as conversation actor using database * Send actor id in packets Co-authored-by: funjoker <funjoker109@gmail.com> Closes #27911
This commit is contained in:
@@ -32,9 +32,8 @@ public:
|
||||
|
||||
conversation_allied_race_dk_defender_of_azeroth() : ConversationScript("conversation_allied_race_dk_defender_of_azeroth") { }
|
||||
|
||||
void OnConversationCreate(Conversation* conversation, Unit* creator) override
|
||||
void OnConversationCreate(Conversation* /*conversation*/, Unit* creator) override
|
||||
{
|
||||
conversation->AddActor(ObjectGuid::Create<HighGuid::Player>(0xFFFFFFFFFFFFFFFF), 1);
|
||||
if (Player* player = creator->ToPlayer())
|
||||
player->KilledMonsterCredit(NPC_TALK_TO_YOUR_COMMANDER_CREDIT);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user