This commit is contained in:
aozhiwei 2023-03-30 12:22:24 +08:00
parent 0819b6095f
commit a3ba1e2e71

View File

@ -633,7 +633,7 @@ void CallFuncBuff::SummonHeroSpecDistance()
int hero_id = meta->_int_buff_param2; int hero_id = meta->_int_buff_param2;
float distance = meta->GetBuffParam3(this); float distance = meta->GetBuffParam3(this);
if (!owner->dead || meta->dead_valid() != 0) { if (!owner->dead || meta->dead_valid() != 0) {
glm::vec3 born_pos; glm::vec3 born_pos = owner->GetPos().ToGlmVec3();
Hero* hero = owner->SummonHero(this, Hero* hero = owner->SummonHero(this,
born_pos, born_pos,
owner->GetAttackDir()); owner->GetAttackDir());
@ -657,4 +657,5 @@ void CallFuncBuff::ClearSummonHero()
{ {
int hero_id = meta->_int_buff_param2; int hero_id = meta->_int_buff_param2;
float hero_num = meta->GetBuffParam3(this); float hero_num = meta->GetBuffParam3(this);
owner->RemoveSurplusHero(hero_id, hero_num);
} }