Core/Quests: Implemented QUEST_OBJECTIVE_FLAG_KILL_PLAYERS_SAME_FACTION

Port From (https://github.com/TrinityCore/TrinityCore/commit/2ffedf30a9f177ba848bb74c1b41375ac6d734a9)
This commit is contained in:
hondacrx
2021-05-11 13:00:12 -04:00
parent 3a4097c920
commit 10787838dc
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -222,7 +222,7 @@ namespace Game.Entities
_RewardHonor(player); _RewardHonor(player);
// 4.1.1 Send player killcredit for quests with PlayerSlain // 4.1.1 Send player killcredit for quests with PlayerSlain
if (_victim.IsTypeId(TypeId.Player)) if (_victim.IsTypeId(TypeId.Player))
player.KilledPlayerCredit(); player.KilledPlayerCredit(_victim.GetGUID());
} }
// Give XP only in PvE or in Battlegrounds. // Give XP only in PvE or in Battlegrounds.
// Give reputation and kill credit only in PvE. // Give reputation and kill credit only in PvE.
+2 -2
View File
@@ -2229,9 +2229,9 @@ namespace Game.Entities
UpdateQuestObjectiveProgress(QuestObjectiveType.Monster, (int)entry, 1, guid); UpdateQuestObjectiveProgress(QuestObjectiveType.Monster, (int)entry, 1, guid);
} }
public void KilledPlayerCredit() public void KilledPlayerCredit(ObjectGuid victimGuid)
{ {
UpdateQuestObjectiveProgress(QuestObjectiveType.PlayerKills, 0, 1); UpdateQuestObjectiveProgress(QuestObjectiveType.PlayerKills, 0, 1, victimGuid);
} }
public void KillCreditGO(uint entry, ObjectGuid guid = default) public void KillCreditGO(uint entry, ObjectGuid guid = default)