*Waypoint creature fix by DearScorpion - "example: the portal dragon in Duskwood will basically return to it's spawnpoint and start over without this patch, with it however it will more or less kill you on the spot and continue its waypoint path where it left off"
--HG-- branch : trunk
This commit is contained in:
1 parent
9a603e8f11
commit
f7601aa00e
3 files changed
+2
-5
No files matched your search
+2
-2
@@ -10529,8 +10529,8 @@ void Unit::SetInCombatState(bool PvP, Unit* enemy)
|
||||
if(GetTypeId() != TYPEID_PLAYER)
|
||||
{
|
||||
// Set home position at place of engaging combat for escorted creatures
|
||||
if(((Creature*)this)->IsAIEnabled)
|
||||
if (((Creature *)this)->AI()->IsEscorted())
|
||||
//if(((Creature*)this)->IsAIEnabled)
|
||||
//if (((Creature *)this)->AI()->IsEscorted())
|
||||
((Creature*)this)->SetHomePosition(GetPositionX(), GetPositionY(), GetPositionZ(), GetOrientation());
|
||||
if(enemy)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user