Core/Pooling: Quest pooling rewrite
Port From (https://github.com/TrinityCore/TrinityCore/commit/51fbda4223442635a35d3225c0797d0151ea7051)
This commit is contained in:
@@ -1210,27 +1210,14 @@ namespace Game.Entities
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool HasQuest(uint quest_id)
|
||||
public override bool HasQuest(uint questId)
|
||||
{
|
||||
|
||||
var qr = Global.ObjectMgr.GetGOQuestRelationBounds(GetEntry());
|
||||
foreach (var id in qr)
|
||||
{
|
||||
if (id == quest_id)
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return Global.ObjectMgr.GetGOQuestRelations(GetEntry()).HasQuest(questId);
|
||||
}
|
||||
|
||||
public override bool HasInvolvedQuest(uint quest_id)
|
||||
public override bool HasInvolvedQuest(uint questId)
|
||||
{
|
||||
var qir = Global.ObjectMgr.GetGOQuestInvolvedRelationBounds(GetEntry());
|
||||
foreach (var id in qir)
|
||||
{
|
||||
if (id == quest_id)
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return Global.ObjectMgr.GetGOQuestInvolvedRelations(GetEntry()).HasQuest(questId);
|
||||
}
|
||||
|
||||
public bool IsTransport()
|
||||
|
||||
Reference in New Issue
Block a user