*Fix a typo - by Anubisss

--HG--
branch : trunk
This commit is contained in:
Blaymoira
2009-03-07 09:04:27 +01:00
parent 7123bef975
commit 892e54c79c
2 changed files with 5 additions and 4 deletions
@@ -201,9 +201,6 @@ struct TRINITY_DLL_DECL mob_ragin_flamesAI : public ScriptedAI
void UpdateAI(const uint32 diff) void UpdateAI(const uint32 diff)
{ {
if (!UpdateVictim())
return;
//Check_Timer //Check_Timer
if(Check_Timer < diff) if(Check_Timer < diff)
{ {
@@ -219,6 +216,9 @@ struct TRINITY_DLL_DECL mob_ragin_flamesAI : public ScriptedAI
Check_Timer = 1000; Check_Timer = 1000;
}else Check_Timer -= diff; }else Check_Timer -= diff;
if (!UpdateVictim())
return;
if (!onlyonce) if (!onlyonce)
{ {
if (Unit* target = SelectUnit(SELECT_TARGET_RANDOM,0)) if (Unit* target = SelectUnit(SELECT_TARGET_RANDOM,0))
@@ -46,7 +46,8 @@ struct TRINITY_DLL_DECL instance_mechanar : public ScriptedInstance
bool IsEncounterInProgress() const bool IsEncounterInProgress() const
{ {
for(uint8 i = 0; i < ENCOUNTERS; ++i) for(uint8 i = 0; i < ENCOUNTERS; ++i)
if(Encounters[i]) return true; if(Encounters[i] == IN_PROGRESS)
return true;
return false; return false;
} }