Core/Entities: kill unused return value from Unit::HandleSpellClick

Port From (https://github.com/TrinityCore/TrinityCore/commit/a1a00f823e7e47e8cb652b71a839c1d0875a8f84)
This commit is contained in:
hondacrx
2021-08-09 10:05:13 -04:00
parent a2628af13a
commit 7cc0221447
5 changed files with 15 additions and 17 deletions
+3 -3
View File
@@ -251,11 +251,11 @@ namespace Game.Entities
if (!creature.HasNpcFlag(NPCFlags.SpellClick))
return false;
var clickPair = Global.ObjectMgr.GetSpellClickInfoMapBounds(creature.GetEntry());
if (clickPair.Empty())
var clickBounds = Global.ObjectMgr.GetSpellClickInfoMapBounds(creature.GetEntry());
if (clickBounds.Empty())
return false;
foreach (var spellClickInfo in clickPair)
foreach (var spellClickInfo in clickBounds)
{
if (!spellClickInfo.IsFitToRequirements(this, creature))
return false;