mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 02:20:27 +00:00
fix(Core/Combat): Removed some invalid code about auto-acquiring a nearby target if primary target is not detectable by creature. (#8624)
Spells with sanctuary always delete hostile references (if not during encounter). Update visibility should be always forced in case of invisibility/stealth auras. Restored old Shadowmeld code. Fixes #4764 Fixes #7125
This commit is contained in:
@@ -228,8 +228,7 @@ void HostileRefMgr::UpdateVisibility(bool checkThreat)
|
||||
while (ref)
|
||||
{
|
||||
HostileReference* nextRef = ref->next();
|
||||
if ((!checkThreat || ref->GetSource()->getThreatList().size() <= 1) &&
|
||||
!ref->GetSource()->GetOwner()->CanSeeOrDetect(GetOwner()))
|
||||
if ((!checkThreat || ref->GetSource()->getThreatList().size() <= 1))
|
||||
{
|
||||
nextRef = ref->next();
|
||||
ref->removeReference();
|
||||
|
||||
Reference in New Issue
Block a user