This commit is contained in:
aozhiwei 2023-03-30 12:20:39 +08:00
parent 568317b1b8
commit 0819b6095f

View File

@ -624,7 +624,6 @@ void CallFuncBuff::SummonHeroSpecPoint()
vars
);
}
} else {
}
}
}
@ -634,6 +633,23 @@ void CallFuncBuff::SummonHeroSpecDistance()
int hero_id = meta->_int_buff_param2;
float distance = meta->GetBuffParam3(this);
if (!owner->dead || meta->dead_valid() != 0) {
glm::vec3 born_pos;
Hero* hero = owner->SummonHero(this,
born_pos,
owner->GetAttackDir());
if (hero) {
std::shared_ptr<std::vector<float>> vars = std::make_shared<std::vector<float>>();
vars->push_back(hero->GetUniId());
for (int buff_id : meta->_buff_param6_int_list) {
hero->TryAddBuff(
GetCaster().Get(),
buff_id,
skill_meta,
init_args,
vars
);
}
}
}
}