[7288] Implement CreatureAI::JustReachedHome scripting call for home movement end point event. Author: NoFantasy

*Note: need to look at SD2 script to check what is the use of this function.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-02-16 20:18:21 -06:00
parent 4eb963528b
commit f271e71dc5
3 changed files with 7 additions and 1 deletions

View File

@@ -20,6 +20,7 @@
#include "HomeMovementGenerator.h"
#include "Creature.h"
#include "CreatureAI.h"
#include "Traveller.h"
#include "MapManager.h"
#include "ObjectAccessor.h"
@@ -75,6 +76,8 @@ HomeMovementGenerator<Creature>::Update(Creature &owner, const uint32& time_diff
owner.BuildHeartBeatMsg(&packet);
owner.SendMessageToSet(&packet, false);
}
owner.AI()->JustReachedHome();
return false;
}