Skip to content

Commit

Permalink
Fix shaman totems targeting neutral units
Browse files Browse the repository at this point in the history
(based on cmangos/mangos-wotlk@7a02f5daf)

Signed-off-by: Xfurry <xfurry.cmangos@outlook.com>
  • Loading branch information
Laizerox authored and xfurry committed Jan 4, 2018
1 parent e608d2a commit bed16a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Grids/GridNotifiers.h
Expand Up @@ -945,7 +945,7 @@ namespace MaNGOS
bool operator()(Unit* u)
{
if (u->isTargetableForAttack() && i_obj->IsWithinDistInMap(u, i_range) &&
!i_funit->IsFriendlyTo(u) && u->isVisibleForOrDetect(i_funit, i_funit, false))
i_funit->IsHostileTo(u) && u->isVisibleForOrDetect(i_funit, i_funit, false))
{
i_range = i_obj->GetDistance(u); // use found unit range as new range limit for next check
return true;
Expand Down

0 comments on commit bed16a6

Please sign in to comment.