Core/GameObjects: corrected a logic fail when checking for targets on the same map
This commit is contained in:
1 parent
c94907814c
commit
9665da3435
1 file changed
+1
-1
@@ -2737,7 +2737,7 @@ bool GameObject::IsAtInteractDistance(Position const& pos, float radius) const
|
||||
|
||||
bool GameObject::IsWithinDistInMap(Player const* player) const
|
||||
{
|
||||
return IsInMap(this) && IsInPhase(player) && IsAtInteractDistance(player);
|
||||
return IsInMap(player) && IsInPhase(player) && IsAtInteractDistance(player);
|
||||
}
|
||||
|
||||
SpellInfo const* GameObject::GetSpellForLock(Player const* player) const
|
||||
|
||||
Reference in new issue
Block a user