Borean Tundra: Improvements in lurgglbrAI by Kudlaty.
--HG-- branch : trunk
This commit is contained in:
@@ -777,15 +777,18 @@ enum eLurgglbr
|
|||||||
|
|
||||||
struct TRINITY_DLL_DECL npc_lurgglbrAI : public npc_escortAI
|
struct TRINITY_DLL_DECL npc_lurgglbrAI : public npc_escortAI
|
||||||
{
|
{
|
||||||
npc_lurgglbrAI(Creature* c) : npc_escortAI(c){}
|
npc_lurgglbrAI(Creature* pCreature) : npc_escortAI(pCreature){}
|
||||||
|
|
||||||
uint32 IntroTimer;
|
uint32 IntroTimer;
|
||||||
uint32 IntroPhase;
|
uint32 IntroPhase;
|
||||||
|
|
||||||
void Reset()
|
void Reset()
|
||||||
{
|
{
|
||||||
IntroTimer = 0;
|
if (!HasEscortState(STATE_ESCORT_ESCORTING))
|
||||||
IntroPhase = 0;
|
{
|
||||||
|
IntroTimer = 0;
|
||||||
|
IntroPhase = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void WaypointReached(uint32 i)
|
void WaypointReached(uint32 i)
|
||||||
@@ -853,6 +856,9 @@ struct TRINITY_DLL_DECL npc_lurgglbrAI : public npc_escortAI
|
|||||||
} else IntroTimer -= diff;
|
} else IntroTimer -= diff;
|
||||||
}
|
}
|
||||||
npc_escortAI::UpdateAI(diff);
|
npc_escortAI::UpdateAI(diff);
|
||||||
|
|
||||||
|
if (!UpdateVictim())
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user