1
This commit is contained in:
parent
27b7ed100f
commit
5ea6bda761
@ -417,6 +417,18 @@ void Bullet::ProcPosionGasBomb(int delay_time)
|
|||||||
void Bullet::ProcMolotorCocktailBomb(int delay_time)
|
void Bullet::ProcMolotorCocktailBomb(int delay_time)
|
||||||
{
|
{
|
||||||
if (sender.Get()) {
|
if (sender.Get()) {
|
||||||
|
#if 1
|
||||||
|
a8::Vec2 old_buff_vec2_param1 = sender.Get()->buff_vec2_param1;
|
||||||
|
sender.Get()->buff_vec2_param1 = GetPos();
|
||||||
|
MetaData::Buff * buff_meta = MetaMgr::Instance()->GetBuff(gun_meta->i->buffid());
|
||||||
|
if (buff_meta) {
|
||||||
|
sender.Get()->AddBuff(sender.Get(),
|
||||||
|
buff_meta,
|
||||||
|
1
|
||||||
|
);
|
||||||
|
}
|
||||||
|
sender.Get()->buff_vec2_param1 = old_buff_vec2_param1;
|
||||||
|
#else
|
||||||
MolotorCocktailMiTask* task = new MolotorCocktailMiTask();
|
MolotorCocktailMiTask* task = new MolotorCocktailMiTask();
|
||||||
task->room = room;
|
task->room = room;
|
||||||
task->sender.Attach(sender.Get());
|
task->sender.Attach(sender.Get());
|
||||||
@ -442,5 +454,6 @@ void Bullet::ProcMolotorCocktailBomb(int delay_time)
|
|||||||
},
|
},
|
||||||
&room->timer_attacher.timer_list_
|
&room->timer_attacher.timer_list_
|
||||||
);
|
);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user