Core/Quests: Implemented QUEST_OBJECTIVE_KILL_WITH_LABEL
Port From (https://github.com/TrinityCore/TrinityCore/commit/1fb4acc25ae89360e71d33a8f7cba99bcc028b32)
This commit is contained in:
@@ -3160,6 +3160,16 @@ namespace Game.Entities
|
||||
return base.GetName(locale);
|
||||
}
|
||||
|
||||
public bool HasLabel(int cretureLabel)
|
||||
{
|
||||
return GetLabels().Contains(cretureLabel);
|
||||
}
|
||||
|
||||
public List<int> GetLabels()
|
||||
{
|
||||
return Global.DB2Mgr.GetCreatureLabels(GetCreatureDifficulty().CreatureDifficultyID);
|
||||
}
|
||||
|
||||
public virtual int GetPetAutoSpellSize()
|
||||
{
|
||||
return SharedConst.MaxSpellCharm;
|
||||
|
||||
Reference in New Issue
Block a user