1
This commit is contained in:
parent
568317b1b8
commit
0819b6095f
@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user