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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user