merge dev
This commit is contained in:
commit
644da82fee
@ -422,6 +422,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());
|
||||||
@ -447,5 +459,6 @@ void Bullet::ProcMolotorCocktailBomb(int delay_time)
|
|||||||
},
|
},
|
||||||
&room->timer_attacher.timer_list_
|
&room->timer_attacher.timer_list_
|
||||||
);
|
);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -146,9 +146,11 @@ void Creature::AddBuff(Creature* caster,
|
|||||||
int skill_lv,
|
int skill_lv,
|
||||||
MetaData::Skill* buff_skill_meta)
|
MetaData::Skill* buff_skill_meta)
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
if (GetBuffById(buff_meta->i->buff_id())) {
|
if (GetBuffById(buff_meta->i->buff_id())) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
if (IsImmuneBuffEffect(buff_meta->i->buff_effect())) {
|
if (IsImmuneBuffEffect(buff_meta->i->buff_effect())) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -20,6 +20,7 @@ enum CMMessageId_e
|
|||||||
_CMAdEnd = 214;
|
_CMAdEnd = 214;
|
||||||
_CMGetBoxInfo = 215;
|
_CMGetBoxInfo = 215;
|
||||||
_CMOpenBox = 216;
|
_CMOpenBox = 216;
|
||||||
|
_CMExecCommand = 217;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum SMMessageId_e
|
enum SMMessageId_e
|
||||||
|
@ -899,6 +899,12 @@ message CMMove
|
|||||||
optional int32 get_on = 36;
|
optional int32 get_on = 36;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//执行GM指令
|
||||||
|
message CMExecCommand
|
||||||
|
{
|
||||||
|
optional string cmd = 1; //指令
|
||||||
|
}
|
||||||
|
|
||||||
//丢弃道具
|
//丢弃道具
|
||||||
message CMDropItem
|
message CMDropItem
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user