aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/chapter1.cpp29
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";