mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-26 11:52:32 +01:00
Core/Creature: Ignore combat reach when looking for assisting creatures
Fixes #25487
(cherry picked from commit 24018b7a74)
This commit is contained in:
@@ -1199,7 +1199,8 @@ namespace Trinity
|
||||
return;
|
||||
|
||||
// too far
|
||||
if (!u->IsWithinDistInMap(i_funit, i_range))
|
||||
// Don't use combat reach distance, range must be an absolute value, otherwise the chain aggro range will be too big
|
||||
if (!u->IsWithinDistInMap(i_funit, i_range, true, false, false))
|
||||
return;
|
||||
|
||||
// only if see assisted creature's enemy
|
||||
@@ -1340,7 +1341,8 @@ namespace Trinity
|
||||
return false;
|
||||
|
||||
// too far
|
||||
if (!i_funit->IsWithinDistInMap(u, i_range))
|
||||
// Don't use combat reach distance, range must be an absolute value, otherwise the chain aggro range will be too big
|
||||
if (!i_funit->IsWithinDistInMap(u, i_range, true, false, false))
|
||||
return false;
|
||||
|
||||
// only if see assisted creature
|
||||
@@ -1369,7 +1371,8 @@ namespace Trinity
|
||||
if (!u->CanAssistTo(i_obj, i_enemy))
|
||||
return false;
|
||||
|
||||
if (!i_obj->IsWithinDistInMap(u, i_range))
|
||||
// Don't use combat reach distance, range must be an absolute value, otherwise the chain aggro range will be too big
|
||||
if (!i_obj->IsWithinDistInMap(u, i_range, true, false, false))
|
||||
return false;
|
||||
|
||||
if (!i_obj->IsWithinLOSInMap(u))
|
||||
|
||||
Reference in New Issue
Block a user