fix (Core/Spells): remove object size for hit calculation of aoe aura spells that target enemies (#19529)

remove object size for aoe on enemy spells
This commit is contained in:
Tereneckla
2024-08-18 23:34:56 +00:00
committed by GitHub
parent 1908ede1b5
commit 79a653b13e
2 changed files with 2 additions and 2 deletions

View File

@@ -1104,7 +1104,7 @@ namespace Acore
}
if (i_funit->_IsValidAttackTarget(u, _spellInfo, i_obj->GetTypeId() == TYPEID_DYNAMICOBJECT ? i_obj : nullptr) && i_obj->IsWithinDistInMap(u, i_range))
if (i_funit->_IsValidAttackTarget(u, _spellInfo, i_obj->GetTypeId() == TYPEID_DYNAMICOBJECT ? i_obj : nullptr) && i_obj->IsWithinDistInMap(u, i_range,true,false))
return true;
return false;