1
This commit is contained in:
parent
0377c4e119
commit
17c12c37a1
@ -1365,6 +1365,10 @@ void Human::ProcBuffEffect(Buff* buff)
|
|||||||
a8::SetBitFlag(status, HS_Assaulting);
|
a8::SetBitFlag(status, HS_Assaulting);
|
||||||
Entity* entity = room->GetEntityByUniId(skill_target_id);
|
Entity* entity = room->GetEntityByUniId(skill_target_id);
|
||||||
if (entity) {
|
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 = entity->pos - pos;
|
||||||
move_dir.Normalize();
|
move_dir.Normalize();
|
||||||
skill_target_pos = entity->pos;
|
skill_target_pos = entity->pos;
|
||||||
@ -1372,6 +1376,7 @@ void Human::ProcBuffEffect(Buff* buff)
|
|||||||
skill_dir.Normalize();
|
skill_dir.Normalize();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case kBET_OnceChgAttr:
|
case kBET_OnceChgAttr:
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user