1
This commit is contained in:
parent
90f9c492ab
commit
d937526847
@ -451,6 +451,11 @@ void Bullet::AddGunBuff()
|
|||||||
std::shared_ptr<Ability> old_context_ability = sender.Get()->context_ability;
|
std::shared_ptr<Ability> old_context_ability = sender.Get()->context_ability;
|
||||||
a8::Vec2 old_context_pos = sender.Get()->context_pos;
|
a8::Vec2 old_context_pos = sender.Get()->context_pos;
|
||||||
sender.Get()->context_pos = GetPos();
|
sender.Get()->context_pos = GetPos();
|
||||||
|
if (IsCurrWeapon()) {
|
||||||
|
sender.Get()->context_ability = ability_;
|
||||||
|
} else {
|
||||||
|
sender.Get()->context_ability = nullptr;
|
||||||
|
}
|
||||||
MetaData::Buff * buff_meta = MetaMgr::Instance()->GetBuff(gun_meta->i->buffid());
|
MetaData::Buff * buff_meta = MetaMgr::Instance()->GetBuff(gun_meta->i->buffid());
|
||||||
if (buff_meta) {
|
if (buff_meta) {
|
||||||
sender.Get()->AddBuff(sender.Get(),
|
sender.Get()->AddBuff(sender.Get(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user