aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-12-22 14:22:39 +0100
committerShauren <shauren.trinity@gmail.com>2024-12-22 15:13:53 +0100
commit38a5956b8544ee43ec4faeba42a40dbee4dcc65f (patch)
tree3ee632a658b108edabdfaf4620adb66dcac3df5d /src
parent2997e1dc025258f2e4fc52629cd0c6338c0e689b (diff)
Scripts/Spells: Added missing Throw Glaive part to Cycle of Hatred implementation
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_dh.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/server/scripts/Spells/spell_dh.cpp b/src/server/scripts/Spells/spell_dh.cpp
index 1eb811ec470..11cb6165f5f 100644
--- a/src/server/scripts/Spells/spell_dh.cpp
+++ b/src/server/scripts/Spells/spell_dh.cpp
@@ -114,6 +114,7 @@ enum DemonHunterSpells
SPELL_DH_FRAILTY = 224509,
SPELL_DH_FURIOUS_GAZE = 343311,
SPELL_DH_FURIOUS_GAZE_BUFF = 343312,
+ SPELL_DH_FURIOUS_THROWS = 393029,
SPELL_DH_GLIDE = 131347,
SPELL_DH_GLIDE_DURATION = 197154,
SPELL_DH_GLIDE_KNOCKBACK = 196353,
@@ -351,7 +352,7 @@ class spell_dh_collective_anguish_eye_beam : public AuraScript
}
};
-// Called by 188499 - Blade Dance, 162794 - Chaos Strike and 342817 - Glaive Tempest
+// Called by 188499 - Blade Dance, 162794 - Chaos Strike, 185123 - Throw Glaive and 342817 - Glaive Tempest
class spell_dh_cycle_of_hatred : public SpellScript
{
bool Validate(SpellInfo const* /*spellInfo*/) override
@@ -361,7 +362,14 @@ class spell_dh_cycle_of_hatred : public SpellScript
bool Load() override
{
- return GetCaster()->HasAura(SPELL_DH_CYCLE_OF_HATRED);
+ if (!GetCaster()->HasAura(SPELL_DH_CYCLE_OF_HATRED))
+ return false;
+
+ if (GetSpellInfo()->Id != SPELL_DH_THROW_GLAIVE)
+ return true;
+
+ // Throw Glaive triggers this talent only with Furious Throws
+ return GetCaster()->HasAura(SPELL_DH_FURIOUS_THROWS);
}
void ReduceEyeBeamCooldown() const