1
This commit is contained in:
parent
2e5ab9c541
commit
525e8bc865
@ -14,6 +14,7 @@
|
|||||||
#include "collision.h"
|
#include "collision.h"
|
||||||
#include "battledatacontext.h"
|
#include "battledatacontext.h"
|
||||||
#include "hero.h"
|
#include "hero.h"
|
||||||
|
#include "obstacle.h"
|
||||||
|
|
||||||
#include "mt/Buff.h"
|
#include "mt/Buff.h"
|
||||||
#include "mt/Skill.h"
|
#include "mt/Skill.h"
|
||||||
@ -756,13 +757,13 @@ void CallFuncBuff::SummonObstacleSpecDistance()
|
|||||||
std::shared_ptr<std::vector<float>> vars = std::make_shared<std::vector<float>>();
|
std::shared_ptr<std::vector<float>> vars = std::make_shared<std::vector<float>>();
|
||||||
vars->push_back(ob->GetUniId());
|
vars->push_back(ob->GetUniId());
|
||||||
for (int buff_id : meta->_buff_param6_int_list) {
|
for (int buff_id : meta->_buff_param6_int_list) {
|
||||||
ob->TryAddBuff(
|
owner->TryAddBuff(
|
||||||
GetCaster().Get(),
|
GetCaster().Get(),
|
||||||
buff_id,
|
buff_id,
|
||||||
skill_meta,
|
skill_meta,
|
||||||
init_args,
|
init_args,
|
||||||
vars
|
vars
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user