feat(CI/Codestyle): added codestyle check (#3668)

This commit is contained in:
Kargatum 2021-01-09 17:59:50 +07:00 committed by GitHub
parent 57aa46244d
commit ea93a5c1a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
400 changed files with 238 additions and 748 deletions

View file

@ -191,7 +191,7 @@ void TargetedMovementGeneratorMedium<T, D>::_setTargetLocation(T* owner, bool in
float maxDist = MELEE_RANGE + owner->GetMeleeReach() + i_target->GetMeleeReach();
if (!forceDest && (i_path->GetPathType() & PATHFIND_NOPATH || (!i_offset && !isPlayerPet && i_target->GetExactDistSq(i_path->GetActualEndPosition().x, i_path->GetActualEndPosition().y, i_path->GetActualEndPosition().z) > maxDist * maxDist)))
{
if (owner->GetTypeId() == TYPEID_UNIT)
if (owner->GetTypeId() == TYPEID_UNIT)
{
owner->ToCreature()->SetCannotReachTarget(false);
}