Core/Creatures: Minor HasSpell method cleanup
Port From (https://github.com/TrinityCore/TrinityCore/commit/a54e5bf4c8fda8595465b043effd4ce51ce3311d)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user