Ruby Sanctum: Fixed Siphoned might distance check

This commit is contained in:
Yehonal
2017-03-14 16:57:56 +01:00
parent b522a0cb72
commit c6bfab883f

View File

@@ -330,7 +330,9 @@ class spell_baltharus_enervating_brand_trigger : public SpellScriptLoader
{
if (Unit* caster = GetOriginalCaster())
if (Unit* target = GetHitUnit())
if (target == GetCaster())
if (target == GetCaster()
// the spell has an unlimited range, so we need this check
&& target->GetDistance2d(caster) <= 12.0f)
target->CastSpell(caster, SPELL_SIPHONED_MIGHT, true);
}