Core/Quests: Dont immediately update object visibility at PhaseShift and wait for the AI Hooks to be called in Player::RewardQuest
Port From (https://github.com/TrinityCore/TrinityCore/commit/b5886f6a2d1756357a9240703306e9efc82771d7)
This commit is contained in:
@@ -353,7 +353,7 @@ namespace Game
|
||||
UpdateVisibilityIfNeeded(obj, true, changed);
|
||||
}
|
||||
|
||||
public static void OnConditionChange(WorldObject obj)
|
||||
public static bool OnConditionChange(WorldObject obj, bool updateVisibility = true)
|
||||
{
|
||||
PhaseShift phaseShift = obj.GetPhaseShift();
|
||||
PhaseShift suppressedPhaseShift = obj.GetSuppressedPhaseShift();
|
||||
@@ -457,7 +457,8 @@ namespace Game
|
||||
unit.RemoveNotOwnSingleTargetAuras(true);
|
||||
}
|
||||
|
||||
UpdateVisibilityIfNeeded(obj, true, changed);
|
||||
UpdateVisibilityIfNeeded(obj, updateVisibility, changed);
|
||||
return changed;
|
||||
}
|
||||
|
||||
public static void SendToPlayer(Player player, PhaseShift phaseShift)
|
||||
|
||||
Reference in New Issue
Block a user