Partial fix of Quest 12698 - by Seirge - Also, I wrote a very preliminary script for the scarlet ghouls which puts them in evade mode, this definitely needs to be improved.

--HG--
branch : trunk
This commit is contained in:
Chaz Brown committed 2009-09-06 02:13:25 -04:00
1 parent b9208e371c
commit 556753e0fb
3 files changed
+30 -1

No files matched your search

@@ -688,7 +688,8 @@ struct TRINITY_DLL_DECL npc_dkc1_gothikAI : public ScriptedAI
{
if (CAST_PLR(owner)->GetQuestStatus(12698) == QUEST_STATUS_INCOMPLETE)
{
CAST_CRE(who)->CastSpell(owner, 52517, true);
//CAST_CRE(who)->CastSpell(owner, 52517, true);
CAST_PLR(owner)->KilledMonsterCredit(28845, me->GetGUID());
CAST_CRE(who)->ForcedDespawn();
if (CAST_PLR(owner)->GetQuestStatus(12698) == QUEST_STATUS_COMPLETE)
@@ -705,6 +706,27 @@ CreatureAI* GetAI_npc_dkc1_gothik(Creature* pCreature)
return new npc_dkc1_gothikAI(pCreature);
}
struct TRINITY_DLL_DECL npc_scarlet_ghoulAI : public ScriptedAI
{
npc_scarlet_ghoulAI(Creature *c) : ScriptedAI(c) {}
void MoveInLineOfSight(Unit *target)
{
EnterEvadeMode();
return;
}
void Aggro(Unit *who)
{
EnterEvadeMode();
return;
}
};
CreatureAI* GetAI_npc_scarlet_ghoul(Creature* pCreature)
{
return new npc_scarlet_ghoulAI(pCreature);
}
/*####
## npc_scarlet_miner_cart
####*/
@@ -961,6 +983,11 @@ void AddSC_the_scarlet_enclave_c1()
newscript->GetAI = &GetAI_npc_dkc1_gothik;
newscript->RegisterSelf();
newscript = new Script;
newscript->Name="npc_scarlet_ghoul";
newscript->GetAI = &GetAI_npc_scarlet_ghoul;
newscript->RegisterSelf();
// Massacre At Light's Point
newscript = new Script;
newscript->Name="npc_scarlet_miner";