*Still use the old updatevictim functions for most scripts because some old scripts may cause crash using new function.
--HG-- branch : trunk
This commit is contained in:
@@ -202,7 +202,7 @@ struct TRINITY_DLL_DECL boss_gothikAI : public BossAI
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
if(!UpdateVictim() || !CheckInRoom())
|
||||
if(!UpdateCombatState() || !CheckInRoom())
|
||||
return;
|
||||
|
||||
events.Update(diff);
|
||||
|
||||
@@ -128,7 +128,7 @@ struct TRINITY_DLL_DECL boss_nothAI : public BossAI
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
if(!UpdateVictim() || !CheckInRoom())
|
||||
if(!UpdateCombatState() || !CheckInRoom())
|
||||
return;
|
||||
|
||||
events.Update(diff);
|
||||
|
||||
@@ -173,7 +173,7 @@ struct TRINITY_DLL_DECL boss_sapphironAI : public BossAI
|
||||
|
||||
events.Update(diff);
|
||||
|
||||
if(phase != PHASE_BIRTH && !UpdateVictim() || !CheckInRoom())
|
||||
if(phase != PHASE_BIRTH && !UpdateCombatState() || !CheckInRoom())
|
||||
return;
|
||||
|
||||
if(phase == PHASE_GROUND)
|
||||
|
||||
Reference in New Issue
Block a user