Skip to content

Instantly share code, notes, and snippets.

@sirikfoll
Created March 7, 2019 16:23
Show Gist options
  • Save sirikfoll/a37f69920712865d455c8e4b3c0e9cc7 to your computer and use it in GitHub Desktop.
Save sirikfoll/a37f69920712865d455c8e4b3c0e9cc7 to your computer and use it in GitHub Desktop.
diff --git a/src/server/scripts/Spells/spell_quest.cpp b/src/server/scripts/Spells/spell_quest.cpp
index da2fce1061..b2592390a9 100644
--- a/src/server/scripts/Spells/spell_quest.cpp
+++ b/src/server/scripts/Spells/spell_quest.cpp
@@ -1465,6 +1465,11 @@ class spell_q12372_destabilize_azure_dragonshrine_dummy : public SpellScriptLoad
}
};
+enum q12372Creatures
+{
+ NPC_WYRMREST_DEFENDER = 27629
+};
+
// ID - 50287 Azure Dragon: On Death Force Cast Wyrmrest Defender to Whisper to Controller - Random (cast from Azure Dragons and Azure Drakes on death)
class spell_q12372_azure_on_death_force_whisper : public SpellScriptLoader
{
@@ -1477,7 +1482,8 @@ class spell_q12372_azure_on_death_force_whisper : public SpellScriptLoader
void HandleScript(SpellEffIndex /*effIndex*/)
{
- if (Creature* defender = GetHitCreature())
+ Creature* defender = GetHitCreature();
+ if (defender && defender->GetEntry() == NPC_WYRMREST_DEFENDER)
defender->AI()->Talk(WHISPER_ON_HIT_BY_FORCE_WHISPER, defender->GetCharmerOrOwner());
}
@@ -1962,7 +1968,7 @@ enum BurstAtTheSeams
{
AREA_THE_BROKEN_FRONT = 4507,
AREA_MORD_RETHAR_THE_DEATH_GATE = 4508,
-
+
NPC_DRAKKARI_CHIEFTAINK = 29099,
NPC_ICY_GHOUL = 31142,
NPC_VICIOUS_GEIST = 31147,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment