1
This commit is contained in:
parent
ec4e97d8c7
commit
53dd44914a
@ -631,11 +631,22 @@ void Bullet::AddGunBuff()
|
||||
} else {
|
||||
sender.Get()->context_ability = nullptr;
|
||||
}
|
||||
const mt::Buff * buff_meta = mt::Buff::GetById(gun_meta->buffid());
|
||||
int real_buff_id = gun_meta->buffid();
|
||||
if (spec_gun_buff_id) {
|
||||
real_buff_id = spec_gun_buff_id;
|
||||
}
|
||||
const mt::Buff * buff_meta = mt::Buff::GetById(real_buff_id);
|
||||
if (buff_meta) {
|
||||
sender.Get()->AddBuff(sender.Get(),
|
||||
buff_meta
|
||||
);
|
||||
auto buff_vars = std::make_shared<std::vector<float>>();
|
||||
buff_vars->push_back(GetPos().GetX());
|
||||
buff_vars->push_back(GetPos().GetY());
|
||||
buff_vars->push_back(GetPos().GetZ());
|
||||
sender.Get()->TryAddBuff(sender.Get(),
|
||||
real_buff_id,
|
||||
skill_meta,
|
||||
nullptr,
|
||||
buff_vars
|
||||
);
|
||||
}
|
||||
sender.Get()->context_dir = old_context_dir;
|
||||
sender.Get()->context_pos = old_context_pos;
|
||||
|
Loading…
x
Reference in New Issue
Block a user