修复宕机问题

This commit is contained in:
aozhiwei 2019-08-15 20:05:30 +08:00
parent a8af7f5178
commit 678041dcbe

View File

@ -2111,6 +2111,9 @@ void Human::ProcSkillPhase(MetaData::SkillPhase* phase)
if (bullet_meta->i->equip_subtype() == kBulletType_Trace) {
Human* skill_target = room->GetHumanByUniId(skill_target_id);
if (skill_target) {
if (skill_target->pos.Distance(pos) < 0.00001f) {
return;
}
attack_dir = skill_target->pos - pos;
attack_dir.Normalize();
}