[7220] Check creature spells data at server startup. Author: VladimirMangos

--HG--
branch : trunk
This commit is contained in:
megamage
2009-02-02 09:53:01 -06:00
parent 617dc4b64c
commit 5299225a8b
4 changed files with 13 additions and 9 deletions
+2 -4
View File
@@ -360,10 +360,8 @@ bool Creature::UpdateEntry(uint32 Entry, uint32 team, const CreatureData *data )
SetPvP(true);
}
m_spells[0] = GetCreatureInfo()->spell1;
m_spells[1] = GetCreatureInfo()->spell2;
m_spells[2] = GetCreatureInfo()->spell3;
m_spells[3] = GetCreatureInfo()->spell4;
for(int i=0; i < CREATURE_MAX_SPELLS; ++i)
m_spells[i] = GetCreatureInfo()->spells[i];
// HACK: trigger creature is always not selectable
if(isTrigger())