1
This commit is contained in:
parent
72c8797fb5
commit
be4531162b
@ -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_x = a8::Low32(param.param3.GetInt64()) / (float)kTEN_W;
|
||||||
float attack_y = a8::High32(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;
|
a8::Vec2 old_attack_dir = sender->attack_dir;
|
||||||
|
if (bullet_meta->bullet_born_offset.size() <= 1){
|
||||||
sender->attack_dir = a8::Vec2(attack_x, attack_y);
|
sender->attack_dir = a8::Vec2(attack_x, attack_y);
|
||||||
sender->attack_dir.Normalize();
|
sender->attack_dir.Normalize();
|
||||||
|
}
|
||||||
sender->InternalShot(bullet_meta,
|
sender->InternalShot(bullet_meta,
|
||||||
skill_id,
|
skill_id,
|
||||||
offset_idx);
|
offset_idx);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user