mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
Making sure CreaturesAddon are re-loaded after creature evade (by NoFantasy).
--HG-- branch : trunk
This commit is contained in:
@@ -882,8 +882,6 @@ void CreatureEventAI::Reset()
|
||||
|
||||
void CreatureEventAI::JustReachedHome()
|
||||
{
|
||||
me->LoadCreaturesAddon();
|
||||
|
||||
if (!m_bEmptyList)
|
||||
{
|
||||
for (CreatureEventAIList::iterator i = m_CreatureEventAIList.begin(); i != m_CreatureEventAIList.end(); ++i)
|
||||
|
||||
@@ -80,6 +80,7 @@ HomeMovementGenerator<Creature>::Update(Creature &owner, const uint32& time_diff
|
||||
}
|
||||
|
||||
owner.clearUnitState(UNIT_STAT_EVADE);
|
||||
owner.LoadCreaturesAddon(true);
|
||||
owner.AI()->JustReachedHome();
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user