*Fix build.

*Fix the bug that janalai summons too many adds.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-11-25 21:25:52 -06:00
parent 31fe63f644
commit 9bbf3e9493
5 changed files with 17 additions and 3 deletions
@@ -328,7 +328,7 @@ struct TRINITY_DLL_DECL mob_fel_orc_convertAI : public ScriptedAI
void Reset()
{
m_creature->SetNoCallAssistence(true); //we don't want any assistance (WE R HEROZ!)
m_creature->SetNoCallAssistance(true); //we don't want any assistance (WE R HEROZ!)
Hemorrhage_Timer = 3000;
}
@@ -157,7 +157,7 @@ struct TRINITY_DLL_DECL aqsentinelAI : public ScriptedAI
{
if (!c->isInCombat())
{
c->SetNoCallAssistence(true);
c->SetNoCallAssistance(true);
if(c->AI())
c->AI()->AttackStart(who);
}
@@ -117,6 +117,13 @@ struct TRINITY_DLL_DECL boss_janalaiAI : public ScriptedAI
{
pInstance =((ScriptedInstance*)c->GetInstanceData());
Reset();
SpellEntry *TempSpell = (SpellEntry*)GetSpellStore()->LookupEntry(SPELL_HATCH_EGG);
if(TempSpell && TempSpell->EffectImplicitTargetA[0] != 1)
{
TempSpell->EffectImplicitTargetA[0] = 1;
TempSpell->EffectImplicitTargetB[0] = 0;
}
}
ScriptedInstance *pInstance;