修复宕机问题
This commit is contained in:
parent
a8af7f5178
commit
678041dcbe
@ -2111,6 +2111,9 @@ void Human::ProcSkillPhase(MetaData::SkillPhase* phase)
|
|||||||
if (bullet_meta->i->equip_subtype() == kBulletType_Trace) {
|
if (bullet_meta->i->equip_subtype() == kBulletType_Trace) {
|
||||||
Human* skill_target = room->GetHumanByUniId(skill_target_id);
|
Human* skill_target = room->GetHumanByUniId(skill_target_id);
|
||||||
if (skill_target) {
|
if (skill_target) {
|
||||||
|
if (skill_target->pos.Distance(pos) < 0.00001f) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
attack_dir = skill_target->pos - pos;
|
attack_dir = skill_target->pos - pos;
|
||||||
attack_dir.Normalize();
|
attack_dir.Normalize();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user