From e08294d332bc3ca528fa1592a0dc9472a09af9b0 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Mon, 29 Nov 2021 14:30:34 -0500 Subject: [PATCH] Spell/Script: Specify a target for Azure Dragon: On Death Force Cast Wyrmrest Defender to Whisper to Controller - Random Port From (https://github.com/TrinityCore/TrinityCore/commit/67e702b29b4fa09c628fba00649dcd74e048aad4) --- Source/Scripts/Spells/Quest.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Scripts/Spells/Quest.cs b/Source/Scripts/Spells/Quest.cs index ab21ade29..cc5eb8c58 100644 --- a/Source/Scripts/Spells/Quest.cs +++ b/Source/Scripts/Spells/Quest.cs @@ -252,6 +252,7 @@ namespace Scripts.Spells.Quest //Quest12372 public const uint WyrmrestTempleCredit = 27698; + public const uint WyrmrestDefender = 27629; //Quest11010 11102 11023 public const uint FelCannon2 = 23082; @@ -1226,7 +1227,7 @@ namespace Scripts.Spells.Quest void HandleScript(uint effIndex) { Creature defender = GetHitCreature(); - if (defender) + if (defender != null && defender.GetEntry() == CreatureIds.WyrmrestDefender) defender.GetAI().Talk(Misc.WhisperOnHitByForceWhisper, defender.GetCharmerOrOwner()); }