Core/Quests: Implemented QUEST_OBJECTIVE_KILL_WITH_LABEL
Port From (https://github.com/TrinityCore/TrinityCore/commit/1fb4acc25ae89360e71d33a8f7cba99bcc028b32)
This commit is contained in:
@@ -467,6 +467,19 @@ namespace Game.Conditions
|
||||
}
|
||||
break;
|
||||
}
|
||||
case ConditionTypes.Label:
|
||||
{
|
||||
Creature creature = obj.ToCreature();
|
||||
if (creature != null)
|
||||
condMeets = creature.HasLabel((int)ConditionValue1);
|
||||
else
|
||||
{
|
||||
GameObject go = obj.ToGameObject();
|
||||
if (go != null)
|
||||
condMeets = go.HasLabel((int)ConditionValue1);
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -594,6 +607,9 @@ namespace Game.Conditions
|
||||
case ConditionTypes.StringId:
|
||||
mask |= GridMapTypeMask.Creature | GridMapTypeMask.GameObject;
|
||||
break;
|
||||
case ConditionTypes.Label:
|
||||
mask |= GridMapTypeMask.Creature | GridMapTypeMask.GameObject;
|
||||
break;
|
||||
default:
|
||||
Cypher.Assert(false, "Condition.GetSearcherTypeMaskForCondition - missing condition handling!");
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user