mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[11781] Set walking as a default creature movement mode
Signed-off-by: SilverIce <slifeleaf@gmail.com>
This commit is contained in:
parent
f572279a61
commit
de54e63f7a
3 changed files with 5 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "11780"
|
||||
#define REVISION_NR "11781"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue