This commit is contained in:
aozhiwei 2021-04-15 15:42:27 +08:00
parent f15c76e30f
commit 6a7334b756

View File

@ -857,9 +857,11 @@ void Creature::ProcBuffEffect(Creature* caster, Buff* buff)
break; break;
case kBET_SummonObstacle: case kBET_SummonObstacle:
{ {
a8::Vec2 target_pos = caster->GetPos() + caster->skill_dir_ * caster->skill_distance_; if (!dead) {
target_pos = buff_vec2_param1; a8::Vec2 target_pos = caster->GetPos() + caster->skill_dir_ * caster->skill_distance_;
SummonObstacle(buff->meta->param1, target_pos); target_pos = buff_vec2_param1;
SummonObstacle(buff->meta->param1, target_pos);
}
} }
break; break;
case kBET_Sprint: case kBET_Sprint: