Core/Creatures: Minor HasSpell method cleanup
This commit is contained in:
@@ -2203,11 +2203,11 @@ namespace Game.Entities
|
|||||||
|
|
||||||
public override bool HasSpell(uint spellId)
|
public override bool HasSpell(uint spellId)
|
||||||
{
|
{
|
||||||
byte i;
|
for (byte i = 0; i < SharedConst.MaxCreatureSpells; ++i)
|
||||||
for (i = 0; i < SharedConst.MaxCreatureSpells; ++i)
|
|
||||||
if (spellId == m_spells[i])
|
if (spellId == m_spells[i])
|
||||||
break;
|
return true;
|
||||||
return i < SharedConst.MaxCreatureSpells; //broke before end of iteration of known spells
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public long GetRespawnTimeEx()
|
public long GetRespawnTimeEx()
|
||||||
|
|||||||
Reference in New Issue
Block a user