feat(Core/Position): own file (#10505)
This commit is contained in:
parent
b0b9fece99
commit
93520f6466
15 changed files with 561 additions and 496 deletions
|
|
@ -8689,7 +8689,7 @@ namespace Acore
|
|||
}
|
||||
else if (_spellInfo->HasAttribute(SPELL_ATTR0_CU_CONE_LINE))
|
||||
{
|
||||
if (!_caster->HasInLine(target, _caster->GetObjectSize()))
|
||||
if (!_caster->HasInLine(target, _caster->GetObjectSize() + target->GetObjectSize()))
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
|
@ -8709,7 +8709,7 @@ namespace Acore
|
|||
bool WorldObjectSpellTrajTargetCheck::operator()(WorldObject* target)
|
||||
{
|
||||
// return all targets on missile trajectory (0 - size of a missile)
|
||||
if (!_caster->HasInLine(target, 0))
|
||||
if (!_caster->HasInLine(target, target->GetObjectSize()))
|
||||
return false;
|
||||
return WorldObjectSpellAreaTargetCheck::operator ()(target);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue