This commit is contained in:
aozhiwei 2023-04-02 19:55:48 +08:00
parent f30d8cffb1
commit 2e5ab9c541

View File

@ -711,6 +711,19 @@ void CallFuncBuff::SummonObstacleSpecPoint()
Obstacle* ob = owner->SummonObstacle(this, Obstacle* ob = owner->SummonObstacle(this,
glm::vec3(x, y, z), glm::vec3(x, y, z),
owner->GetAttackDir()); owner->GetAttackDir());
if (ob) {
std::shared_ptr<std::vector<float>> vars = std::make_shared<std::vector<float>>();
vars->push_back(ob->GetUniId());
for (int buff_id : meta->_buff_param6_int_list) {
owner->TryAddBuff(
GetCaster().Get(),
buff_id,
skill_meta,
init_args,
vars
);
}
}
} }
} }
@ -740,19 +753,17 @@ void CallFuncBuff::SummonObstacleSpecDistance()
born_pos, born_pos,
owner->GetAttackDir()); owner->GetAttackDir());
if (ob) { if (ob) {
#if 0
std::shared_ptr<std::vector<float>> vars = std::make_shared<std::vector<float>>(); std::shared_ptr<std::vector<float>> vars = std::make_shared<std::vector<float>>();
vars->push_back(hero->GetUniId()); vars->push_back(ob->GetUniId());
for (int buff_id : meta->_buff_param6_int_list) { for (int buff_id : meta->_buff_param6_int_list) {
hero->TryAddBuff( ob->TryAddBuff(
GetCaster().Get(), GetCaster().Get(),
buff_id, buff_id,
skill_meta, skill_meta,
init_args, init_args,
vars vars
); );
} }
#endif
} }
} }
} }