mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[7220] Check creature spells data at server startup.
This commit is contained in:
parent
3f02246e36
commit
e83be70aca
4 changed files with 13 additions and 9 deletions
|
|
@ -303,10 +303,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];
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue