Update Waypoint System and Commands

Update Waypoint System and Commands
This commit is contained in:
Charles A Edwards 2016-08-30 11:15:20 +01:00 committed by Antz
parent 870b4dd0a4
commit 6ac38a0d65
48 changed files with 455 additions and 323 deletions

View file

@ -37,6 +37,8 @@
#include "ObjectGuid.h"
#include "World.h"
#include <mutex>
#include <cmath>
#define CLASS_LOCK MaNGOS::ClassLevelLockable<ObjectAccessor, ACE_Thread_Mutex>

View file

@ -40,6 +40,8 @@
#include "Player.h"
#include "Corpse.h"
#include <mutex>
#include <set>
#include <list>

View file

@ -9568,7 +9568,7 @@ bool Unit::SelectHostileTarget()
// check if currently selected target is reachable
// NOTE: path alrteady generated from AttackStart()
if (!GetMotionMaster()->operator->()->IsReachable())
if (!GetMotionMaster()->GetCurrent()->IsReachable())
{
// remove all taunts
RemoveSpellsCausingAura(SPELL_AURA_MOD_TAUNT);