Core/GameObjects: corrected a logic fail when checking for targets on the same map

This commit is contained in:
Ovahlord
2020-04-28 01:13:08 +02:00
parent c94907814c
commit 9665da3435

View File

@@ -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