Ruby Sanctum: Fixed Siphoned might distance check
This commit is contained in:
parent
b522a0cb72
commit
c6bfab883f
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue