diff --git a/server/gameserver/buff/callfunc.cc b/server/gameserver/buff/callfunc.cc index 6bdaa2b2..79d9d4c7 100644 --- a/server/gameserver/buff/callfunc.cc +++ b/server/gameserver/buff/callfunc.cc @@ -14,6 +14,7 @@ #include "collision.h" #include "battledatacontext.h" #include "hero.h" +#include "obstacle.h" #include "mt/Buff.h" #include "mt/Skill.h" @@ -756,13 +757,13 @@ void CallFuncBuff::SummonObstacleSpecDistance() std::shared_ptr> vars = std::make_shared>(); vars->push_back(ob->GetUniId()); for (int buff_id : meta->_buff_param6_int_list) { - ob->TryAddBuff( - GetCaster().Get(), - buff_id, - skill_meta, - init_args, - vars - ); + owner->TryAddBuff( + GetCaster().Get(), + buff_id, + skill_meta, + init_args, + vars + ); } } }