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

Block SpellClick for the npc if there is no entry
This commit is contained in:
Gustavo
2019-03-05 11:06:19 -03:00
committed by Giacomo Pozzoni
parent f039c30cb8
commit 0eacccc2cd
+1 -1
View File
@@ -25243,7 +25243,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)
{