This commit is contained in:
aozhiwei 2019-07-26 13:45:12 +08:00
parent 0377c4e119
commit 17c12c37a1

View File

@ -1365,6 +1365,10 @@ void Human::ProcBuffEffect(Buff* buff)
a8::SetBitFlag(status, HS_Assaulting);
Entity* entity = room->GetEntityByUniId(skill_target_id);
if (entity) {
if (entity->pos.Distance(pos) <= 0.000001f) {
pos = entity->pos;
skill_target_pos = entity->pos;
} else {
move_dir = entity->pos - pos;
move_dir.Normalize();
skill_target_pos = entity->pos;
@ -1372,6 +1376,7 @@ void Human::ProcBuffEffect(Buff* buff)
skill_dir.Normalize();
}
}
}
break;
case kBET_OnceChgAttr:
{