mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-26 11:52:32 +01:00
Core/GameObjects: corrected a logic fail when checking for targets on the same map
This commit is contained in:
@@ -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