From ffc0fe829c4b4ad8143325f353c39f8763012ac6 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Sat, 9 May 2020 15:10:19 +0200 Subject: [PATCH] Core/Spells: Death Grip will now use exact distances instead of comparing the melee distance between the caster and the target closes #73 --- src/server/scripts/Spells/spell_dk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/scripts/Spells/spell_dk.cpp b/src/server/scripts/Spells/spell_dk.cpp index e3bcaee3f8..c33b7596fa 100644 --- a/src/server/scripts/Spells/spell_dk.cpp +++ b/src/server/scripts/Spells/spell_dk.cpp @@ -1050,7 +1050,7 @@ class spell_dk_death_grip_initial : public SpellScript // Patch 3.3.3 (2010-03-23): Minimum range has been changed to 8 yards in PvP. Unit* target = GetExplTargetUnit(); if (target && target->GetTypeId() == TYPEID_PLAYER) - if (caster->GetDistance(target) < 8.f) + if (caster->GetExactDist(target) < 8.f) return SPELL_FAILED_TOO_CLOSE; return SPELL_CAST_OK;