From c8ca5a994f826ebe797971989a6640c5368b6ef0 Mon Sep 17 00:00:00 2001 From: Azerus Date: Fri, 12 Aug 2011 19:07:30 +0600 Subject: [PATCH] [bws30] Add walk state for creature how default spline mode. --- src/game/Creature.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index 41c63ac9f..ad8440840 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -166,6 +166,7 @@ m_regenHealth(true), m_AI_locked(false), m_isDeadByDefault(false), m_meleeDamageSchoolMask(SPELL_SCHOOL_MASK_NORMAL), m_originalEntry(0), m_temporaryFactionFlags(TEMPFACTION_NONE), m_creatureInfo(NULL) { + SetWalk(true); m_regenTimer = 200; m_valuesCount = UNIT_END; @@ -1499,6 +1500,8 @@ void Creature::SetDeathState(DeathState s) SetHealth(GetMaxHealth()); SetLootRecipient(NULL); + SetWalk(true); + if (GetTemporaryFactionFlags() & TEMPFACTION_RESTORE_RESPAWN) ClearTemporaryFaction();