1
This commit is contained in:
parent
2b908fcba9
commit
ef57d64325
@ -64,14 +64,14 @@ void MolotorCocktailMiTask::Check()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
a8::Vec2 old_buff_vec2_param1 = sender.Get()->buff_vec2_param1;
|
|
||||||
sender.Get()->buff_vec2_param1 = sender.Get()->GetPos();
|
|
||||||
for (Creature* target : objects) {
|
for (Creature* target : objects) {
|
||||||
if (!target->GetBuffById(meta->i->buffid())) {
|
if (!target->GetBuffById(meta->i->buffid())) {
|
||||||
|
a8::Vec2 old_buff_vec2_param1 = target->buff_vec2_param1;
|
||||||
|
target->buff_vec2_param1 = target->GetPos();
|
||||||
target->MustBeAddBuff(sender.Get(), meta->i->buffid());
|
target->MustBeAddBuff(sender.Get(), meta->i->buffid());
|
||||||
|
target->buff_vec2_param1 = old_buff_vec2_param1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sender.Get()->buff_vec2_param1 = old_buff_vec2_param1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,14 +64,14 @@ void PosionGasMiTask::Check()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
a8::Vec2 old_buff_vec2_param1 = sender.Get()->buff_vec2_param1;
|
|
||||||
sender.Get()->buff_vec2_param1 = sender.Get()->GetPos();
|
|
||||||
for (Creature* target : objects) {
|
for (Creature* target : objects) {
|
||||||
if (!target->GetBuffById(meta->i->buffid())) {
|
if (!target->GetBuffById(meta->i->buffid())) {
|
||||||
|
a8::Vec2 old_buff_vec2_param1 = target->buff_vec2_param1;
|
||||||
|
target->buff_vec2_param1 = target->GetPos();
|
||||||
target->MustBeAddBuff(sender.Get(), meta->i->buffid());
|
target->MustBeAddBuff(sender.Get(), meta->i->buffid());
|
||||||
|
target->buff_vec2_param1 = old_buff_vec2_param1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sender.Get()->buff_vec2_param1 = old_buff_vec2_param1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user