diff options
author | Kudlaty <none@none> | 2009-09-06 15:44:48 +0200 |
---|---|---|
committer | Kudlaty <none@none> | 2009-09-06 15:44:48 +0200 |
commit | d2079c0022ab9709b451a50443f24b1dcdffb7a8 (patch) | |
tree | ed7f253f7ab44f07a795eed35793436751b9d43d /src | |
parent | 8821a09832041058d506ecd71dc15a5e33dc760d (diff) | |
parent | 556753e0fb07246cd1fe19b02f0bbc794f5fbc0a (diff) |
merge
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/chapter1.cpp | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/chapter1.cpp b/src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/chapter1.cpp index 4fea246e50a..b2fa7fc85fc 100644 --- a/src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/chapter1.cpp +++ b/src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/chapter1.cpp @@ -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"; |