mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 01:37:37 +01:00
Revert last rev and fix in correct way. Also some clean up after merge
--HG-- branch : trunk
This commit is contained in:
@@ -88,9 +88,8 @@ struct TRINITY_DLL_DECL npc_escortAI : public ScriptedAI
|
||||
bool IsBeingEscorted;
|
||||
bool IsOnHold;
|
||||
|
||||
uint64 m_uiPlayerGUID;
|
||||
|
||||
private:
|
||||
uint64 m_uiPlayerGUID;
|
||||
uint32 m_uiWPWaitTimer;
|
||||
uint32 m_uiPlayerCheckTimer;
|
||||
float MaxPlayerDistance;
|
||||
|
||||
@@ -234,7 +234,7 @@ struct TRINITY_DLL_DECL npc_koltira_deathweaverAI : public npc_escortAI
|
||||
|
||||
void JustSummoned(Creature* pSummoned)
|
||||
{
|
||||
if (Unit* pPlayer = Unit::GetUnit(*me, m_uiPlayerGUID))
|
||||
if (Player* pPlayer = GetPlayerForEscort())
|
||||
{
|
||||
pSummoned->AI()->AttackStart(pPlayer);
|
||||
pSummoned->AddThreat(me, 0.0f);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user