diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/game/GridNotifiers.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/GridNotifiers.h b/src/game/GridNotifiers.h index d66b595dce8..b76bbb27256 100644 --- a/src/game/GridNotifiers.h +++ b/src/game/GridNotifiers.h @@ -941,11 +941,11 @@ namespace Trinity return; // too far - if (!i_funit->IsWithinDistInMap(u, i_range)) + if (!u->IsWithinDistInMap(i_enemy, i_range)) return; - // only if see assisted creature - if (!i_funit->IsWithinLOSInMap(u)) + // only if see assisted creature's enemy + if (!u->IsWithinLOSInMap(i_enemy)) return; if (u->AI()) |