[11781] Set walking as a default creature movement mode

Signed-off-by: SilverIce <slifeleaf@gmail.com>
This commit is contained in:
MaxXx2021 2011-08-12 18:12:16 +03:00 committed by SilverIce
parent f572279a61
commit de54e63f7a
3 changed files with 5 additions and 1 deletions

View file

@ -175,6 +175,8 @@ m_creatureInfo(NULL)
m_CreatureSpellCooldowns.clear();
m_CreatureCategoryCooldowns.clear();
SetWalk(true);
}
Creature::~Creature()
@ -1485,6 +1487,7 @@ void Creature::SetDeathState(DeathState s)
SetHealth(GetMaxHealth());
SetLootRecipient(NULL);
SetWalk(true);
if (GetTemporaryFactionFlags() & TEMPFACTION_RESTORE_RESPAWN)
ClearTemporaryFaction();

View file

@ -67,6 +67,7 @@ void HomeMovementGenerator<Creature>::Finalize(Creature& owner)
if (owner.GetTemporaryFactionFlags() & TEMPFACTION_RESTORE_REACH_HOME)
owner.ClearTemporaryFaction();
owner.SetWalk(true);
owner.LoadCreatureAddon(true);
owner.AI()->JustReachedHome();
}

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11780"
#define REVISION_NR "11781"
#endif // __REVISION_NR_H__