fix(Core/Spell): use 2d range check for TARGET_CHECK_ENTRY (#27077)
This commit is contained in:
parent
69f387e98f
commit
4eea36c3c3
1 changed files with 5 additions and 1 deletions
|
|
@ -9166,7 +9166,11 @@ namespace Acore
|
|||
if (_caster->IsControlledByPlayer() && !unitTarget->IsControlledByPlayer())
|
||||
effectiveRange += unitTarget->GetCombatReach();
|
||||
|
||||
if (target->GetExactDist(_position) > effectiveRange)
|
||||
// override the range check for entry area targets
|
||||
float dist = target->GetExactDist(_position);
|
||||
if (_targetSelectionType == TARGET_CHECK_ENTRY)
|
||||
dist = target->GetExactDist2d(_position);
|
||||
if (dist > effectiveRange)
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue