aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-26 13:38:09 -0500
committermegamage <none@none>2009-08-26 13:38:09 -0500
commitf13b3f4e58ec84e13da280b5297a5ae789cc834a (patch)
tree73e13ed230273e908535d48157362a77b69169ad
parentcda2fc2ecb4bd57b9a02c373396163097dc71093 (diff)
*Fix the bug that inhabit_air does not make mob fly
--HG-- branch : trunk
-rw-r--r--src/game/Creature.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp
index 8c143b664c2..3d11c4a0941 100644
--- a/src/game/Creature.cpp
+++ b/src/game/Creature.cpp
@@ -420,6 +420,9 @@ bool Creature::UpdateEntry(uint32 Entry, uint32 team, const CreatureData *data )
ApplySpellImmune(0, IMMUNITY_EFFECT,SPELL_EFFECT_ATTACK_ME, true);
}
+ if(GetCreatureInfo()->InhabitType & INHABIT_AIR)
+ AddUnitMovementFlag(MOVEMENTFLAG_FLY_MODE + MOVEMENTFLAG_FLYING);
+
return true;
}
@@ -2251,9 +2254,6 @@ bool Creature::LoadCreaturesAddon(bool reload)
if (cainfo->move_flags != 0)
SetUnitMovementFlags(cainfo->move_flags);
- if(GetCreatureInfo()->InhabitType & INHABIT_AIR)
- AddUnitMovementFlag(MOVEMENTFLAG_FLY_MODE + MOVEMENTFLAG_FLYING);
-
if(cainfo->auras)
{
for (CreatureDataAddonAura const* cAura = cainfo->auras; cAura->spell_id; ++cAura)