diff options
author | megamage <none@none> | 2009-03-14 09:24:59 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-03-14 09:24:59 -0600 |
commit | d90d0002e3e07e78730b6feafbeb583999961858 (patch) | |
tree | dd09948907868b932971d22105bb2253d51979af /src/game/Creature.cpp | |
parent | 076ccce8c16b60f84f635cdb85795aba63c0c863 (diff) | |
parent | c9874ee715480b41881704d40cc26f72562d5836 (diff) |
*Merge.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Creature.cpp')
-rw-r--r-- | src/game/Creature.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index d31e6dec1a1..c075a33e92f 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -290,6 +290,9 @@ bool Creature::InitEntry(uint32 Entry, uint32 team, const CreatureData *data ) if(!m_respawnradius && m_defaultMovementType==RANDOM_MOTION_TYPE) m_defaultMovementType = IDLE_MOTION_TYPE; + for(int i=0; i < CREATURE_MAX_SPELLS; ++i) + m_spells[i] = GetCreatureInfo()->spells[i]; + return true; } @@ -345,9 +348,6 @@ bool Creature::UpdateEntry(uint32 Entry, uint32 team, const CreatureData *data ) SetPvP(true); } - for(int i=0; i < CREATURE_MAX_SPELLS; ++i) - m_spells[i] = GetCreatureInfo()->spells[i]; - // HACK: trigger creature is always not selectable if(isTrigger()) SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); |