aboutsummaryrefslogtreecommitdiff
path: root/src/game/Creature.cpp
diff options
context:
space:
mode:
authormaximius <none@none>2009-09-29 20:39:25 -0700
committermaximius <none@none>2009-09-29 20:39:25 -0700
commit1b168c6c9fcfa1100a9029dc77fe2b3816ac505b (patch)
tree3b4721c120b0456a343d5e8dbc23e2d52aa3388d /src/game/Creature.cpp
parentf9d62c1b3374bfff2a80c84b3ed80ece610ceb71 (diff)
*Add some error output for improper moveflags on flying creatures.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Creature.cpp')
-rw-r--r--src/game/Creature.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp
index fa710a41be3..e9db1493e0c 100644
--- a/src/game/Creature.cpp
+++ b/src/game/Creature.cpp
@@ -2288,6 +2288,9 @@ bool Creature::LoadCreaturesAddon(bool reload)
if (cainfo->move_flags != 0)
SetUnitMovementFlags(cainfo->move_flags);
+ if (cainfo->move_flags & (MOVEMENTFLAG_FLY_MODE | MOVEMENTFLAG_FLYING))
+ sLog.outErrorDb("Creature (GUID: %u Entry: %u) has improper `moveflags` value in `creature_template_addon`. Use `InhabitType` = 4 (Flying) in `creature_template`, not MOVEMENTFLAG_FLY_MODE or MOVEMENTFLAG_FLYING in `creature_addon`.",GetGUIDLow(),GetEntry());
+
//Load Path
if (cainfo->path_id != 0)
m_path_id = cainfo->path_id;