1
This commit is contained in:
parent
73d7d819ab
commit
3d1ab9b2e1
@ -1444,8 +1444,12 @@ void CallFuncBuff::Shot()
|
|||||||
float x = meta->GetBuffParam3(this);
|
float x = meta->GetBuffParam3(this);
|
||||||
float y = meta->GetBuffParam4(this);
|
float y = meta->GetBuffParam4(this);
|
||||||
float z = meta->GetBuffParam5(this);
|
float z = meta->GetBuffParam5(this);
|
||||||
const mt::Equip* bullet_meta = mt::Equip::GetById(id);
|
const mt::Equip* gun_meta = mt::Equip::GetById(id);
|
||||||
if (bullet_meta) {
|
if (gun_meta) {
|
||||||
|
const mt::Equip* bullet_meta = mt::Equip::GetById(gun_meta->use_bullet());
|
||||||
|
if (!bullet_meta) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
bool force_client_report = meta->_buff_param6_int_set.find(1) != meta->_buff_param6_int_set.end();
|
bool force_client_report = meta->_buff_param6_int_set.find(1) != meta->_buff_param6_int_set.end();
|
||||||
bool spec_target_pos = meta->_buff_param6_int_set.find(2) != meta->_buff_param6_int_set.end();
|
bool spec_target_pos = meta->_buff_param6_int_set.find(2) != meta->_buff_param6_int_set.end();
|
||||||
bool ignore_original_dmg = meta->_buff_param6_int_set.find(3) != meta->_buff_param6_int_set.end();
|
bool ignore_original_dmg = meta->_buff_param6_int_set.find(3) != meta->_buff_param6_int_set.end();
|
||||||
@ -1508,7 +1512,7 @@ void CallFuncBuff::Shot()
|
|||||||
fly_distance = std::max(200.0f, fly_distance);
|
fly_distance = std::max(200.0f, fly_distance);
|
||||||
fly_distance = std::min(400.0f, fly_distance);
|
fly_distance = std::min(400.0f, fly_distance);
|
||||||
InternalShot(owner,
|
InternalShot(owner,
|
||||||
owner->GetCurrWeapon()->meta,
|
gun_meta,
|
||||||
bullet_meta,
|
bullet_meta,
|
||||||
skill_meta,
|
skill_meta,
|
||||||
fly_distance,
|
fly_distance,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user