Core/Players: Fix logic in CanSeeSpellClickOn (#23090)

Block SpellClick for the npc if there is no entry

(cherry picked from commit 0eacccc2cd614aaef790ad0ce9df3d57212e9b58)
This commit is contained in:
Gustavo
2021-11-24 20:35:18 +01:00
committed by Shauren
parent 9d891e3e5c
commit 80421d7cac
+1 -1
View File
@@ -27098,7 +27098,7 @@ bool Player::CanSeeSpellClickOn(Creature const* c) const
auto clickBounds = sObjectMgr->GetSpellClickInfoMapBounds(c->GetEntry());
if (clickBounds.begin() == clickBounds.end())
return true;
return false;
for (auto const& clickPair : clickBounds)
{