mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-21 15:27:47 -04:00
Core/Players: Fix logic in CanSeeSpellClickOn (#23090)
Block SpellClick for the npc if there is no entry
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user