Core/Quests: Implemented QUEST_OBJECTIVE_KILL_WITH_LABEL

Port From (https://github.com/TrinityCore/TrinityCore/commit/1fb4acc25ae89360e71d33a8f7cba99bcc028b32)
This commit is contained in:
Hondacrx
2025-02-23 14:20:00 -05:00
parent 3a2439ba15
commit 644206f0d5
14 changed files with 108 additions and 4 deletions
+4 -2
View File
@@ -1650,6 +1650,7 @@ namespace Game
case ConditionTypes.Gamemaster:
case ConditionTypes.PrivateObject:
case ConditionTypes.StringId:
case ConditionTypes.Label:
break;
case ConditionTypes.DifficultyId:
if (!CliDB.DifficultyStorage.ContainsKey(cond.ConditionValue1))
@@ -2624,7 +2625,7 @@ namespace Game
case UnitConditionVariable.IsMounted:
return unit.GetMountDisplayId() != 0 ? 1 : 0;
case UnitConditionVariable.Label:
break;
return unit.IsCreature() && unit.ToCreature().HasLabel(value) ? value : 0;
case UnitConditionVariable.IsMySummon:
return (otherUnit != null && (otherUnit.GetCharmerGUID() == unit.GetGUID() || otherUnit.GetCreatorGUID() == unit.GetGUID())) ? 1 : 0;
case UnitConditionVariable.IsSummoner:
@@ -2986,7 +2987,8 @@ namespace Game
new ConditionTypeInfo("Scene In Progress", true, false, false, false),
new ConditionTypeInfo("Player Condition", true, false, false, false),
new ConditionTypeInfo("Private Object", false,false, false, false),
new ConditionTypeInfo("String ID", true, false, false, true)
new ConditionTypeInfo("String ID", true, false, false, true),
new ConditionTypeInfo("Label", true, false, false, false)
};
public struct ConditionTypeInfo