diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 79809c9..d4a2258 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -229,8 +229,10 @@ void Human::DirectShot(MetaData::Equip* bullet_meta, int skill_id) float attack_x = a8::Low32(param.param3.GetInt64()) / (float)kTEN_W; float attack_y = a8::High32(param.param3.GetInt64()) / (float)kTEN_W; a8::Vec2 old_attack_dir = sender->attack_dir; - sender->attack_dir = a8::Vec2(attack_x, attack_y); - sender->attack_dir.Normalize(); + if (bullet_meta->bullet_born_offset.size() <= 1){ + sender->attack_dir = a8::Vec2(attack_x, attack_y); + sender->attack_dir.Normalize(); + } sender->InternalShot(bullet_meta, skill_id, offset_idx);