From 1b168c6c9fcfa1100a9029dc77fe2b3816ac505b Mon Sep 17 00:00:00 2001 From: maximius Date: Tue, 29 Sep 2009 20:39:25 -0700 Subject: [PATCH] *Add some error output for improper moveflags on flying creatures. --HG-- branch : trunk --- src/game/Creature.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index fa710a41be..e9db1493e0 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;