diff --git a/server/gameserver/buff/callfunc.cc b/server/gameserver/buff/callfunc.cc index 22477231..b6df7557 100644 --- a/server/gameserver/buff/callfunc.cc +++ b/server/gameserver/buff/callfunc.cc @@ -1440,7 +1440,15 @@ void CallFuncBuff::AccumulatePower() void CallFuncBuff::Shot() { - + int id = meta->GetBuffParam2(this); + float x = meta->GetBuffParam3(this); + float y = meta->GetBuffParam4(this); + float z = meta->GetBuffParam5(this); + const mt::Equip* bullet_meta = mt::Equip::GetById(id); + if (bullet_meta) { + glm::vec3 target_pos = glm::vec3(x, y, z); + glm::vec3 attack_dir = target_pos - owner->GetPos().ToGlmVec3(); + } } void CallFuncBuff::BatchRandomPosSummonObstacle()