This commit is contained in:
aozhiwei 2023-03-06 21:40:40 +08:00
parent c44fc4dd88
commit 8daf51666b
2 changed files with 10 additions and 2 deletions

View File

@ -67,7 +67,7 @@ void SelectTargetWithSelfPosBuff::Activate()
); );
for (auto& target : targets) { for (auto& target : targets) {
for (int buff_id : meta->_buff_param2_int_list) { for (int buff_id : meta->_buff_param2_int_list) {
target->TryAddBuff(caster_.Get(), buff_id); target->TryAddBuff(caster_.Get(), buff_id, skill_meta);
} }
} }
} }

View File

@ -2907,5 +2907,13 @@ void Creature::UnSetBuffTag(int tag)
void Creature::ShotFindPath() void Creature::ShotFindPath()
{ {
if (std::abs(GetMoveDir().x) > FLT_EPSILON ||
std::abs(GetMoveDir().z) > FLT_EPSILON
) {
#if 0
glm::vec3 new_move_dir = GetMoveDir();
GlmHelper::RotateY(new_move_dir, 90 / 180.0f);
room->map_instance->Raycast();
#endif
}
} }