fix(Core/Spell): use 2d range check for TARGET_CHECK_ENTRY (#27077)

This commit is contained in:
sogladev 2026-08-19 17:34:23 +02:00 committed by GitHub
parent 69f387e98f
commit 4eea36c3c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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