mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
refactor(Core/Object): adds consistency in the use of type object check (#19671)
This commit is contained in:
@@ -551,7 +551,7 @@ void Player::AddQuest(Quest const* quest, Object* questGiver)
|
||||
uint32 timeAllowed = quest->GetTimeAllowed();
|
||||
|
||||
// shared timed quest
|
||||
if (questGiver && questGiver->GetTypeId() == TYPEID_PLAYER)
|
||||
if (questGiver && questGiver->IsPlayer())
|
||||
timeAllowed = questGiver->ToPlayer()->getQuestStatusMap()[quest_id].Timer / IN_MILLISECONDS;
|
||||
|
||||
AddTimedQuest(quest_id);
|
||||
|
||||
Reference in New Issue
Block a user