Some cleanups. (might break build for scripts as they are a WIP)
This commit is contained in:
@@ -392,7 +392,7 @@ namespace Game
|
||||
|
||||
public static uint XPValue(Player player, uint contentTuningId, uint xpDifficulty, float xpMultiplier = 1.0f, int expansion = -1)
|
||||
{
|
||||
if (player)
|
||||
if (player != null)
|
||||
{
|
||||
uint questLevel = (uint)player.GetQuestLevel(contentTuningId);
|
||||
QuestXPRecord questXp = CliDB.QuestXPStorage.LookupByKey(questLevel);
|
||||
|
||||
@@ -271,7 +271,7 @@ namespace Game
|
||||
}
|
||||
|
||||
Quest quest = Global.ObjectMgr.GetQuestTemplate(objective.QuestID);
|
||||
if (_owner.GetGroup() && _owner.GetGroup().IsRaidGroup() && !quest.IsAllowedInRaid(referencePlayer.GetMap().GetDifficultyID()))
|
||||
if (_owner.GetGroup() != null && _owner.GetGroup().IsRaidGroup() && !quest.IsAllowedInRaid(referencePlayer.GetMap().GetDifficultyID()))
|
||||
{
|
||||
Log.outTrace(LogFilter.Achievement, $"QuestObjectiveCriteriaMgr.CanUpdateCriteriaTree: (Id: {criteria.Id} Type {criteria.Entry.Type} Quest Objective {objective.Id}) Quest cannot be completed in raid group");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user