mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Creatures: Rewrite trainer handling to properly support multiple trainers on the same creature
* Trainers are now defined as templates (sniffable), assigned by gossip options
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#include "WorldSession.h"
|
||||
#include "Common.h"
|
||||
#include "DB2Stores.h"
|
||||
#include "GossipDef.h"
|
||||
#include "Log.h"
|
||||
#include "ObjectAccessor.h"
|
||||
#include "Pet.h"
|
||||
@@ -65,7 +66,10 @@ void WorldSession::HandleConfirmRespecWipeOpcode(WorldPackets::Talent::ConfirmRe
|
||||
return;
|
||||
}
|
||||
|
||||
if (!unit->isCanTrainingAndResetTalentsOf(_player))
|
||||
if (!unit->CanResetTalents(_player))
|
||||
return;
|
||||
|
||||
if (!_player->PlayerTalkClass->GetGossipMenu().HasMenuItemType(GOSSIP_OPTION_UNLEARNTALENTS))
|
||||
return;
|
||||
|
||||
// remove fake death
|
||||
|
||||
Reference in New Issue
Block a user