Core/Creatures: Minor HasSpell method cleanup

Port From (https://github.com/TrinityCore/TrinityCore/commit/a54e5bf4c8fda8595465b043effd4ce51ce3311d)
This commit is contained in:
hondacrx
2021-09-21 18:56:36 -04:00
parent 076441a76a
commit ed1fa6282e
+1 -5
View File
@@ -2421,11 +2421,7 @@ namespace Game.Entities
public override bool HasSpell(uint spellId)
{
for (byte i = 0; i < SharedConst.MaxCreatureSpells; ++i)
if (spellId == m_spells[i])
return true;
return false;
return m_spells.Contains(spellId);
}
public long GetRespawnTimeEx()