1
This commit is contained in:
parent
f38f703210
commit
1d411bfebe
@ -337,7 +337,9 @@ void CallFuncBuff::ProcLightCircle()
|
|||||||
if (context->in_human_infos.find(hum->GetUniId()) != context->in_human_infos.end()) {
|
if (context->in_human_infos.find(hum->GetUniId()) != context->in_human_infos.end()) {
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
context->in_human_infos[hum->GetUniId()] = InnerObject();
|
InnerObject o;
|
||||||
|
o.c = hum->GetWeakPtrRef();
|
||||||
|
context->in_human_infos[hum->GetUniId()] = o;
|
||||||
context->in_human_infos[hum->GetUniId()].OnEnter();
|
context->in_human_infos[hum->GetUniId()].OnEnter();
|
||||||
};
|
};
|
||||||
auto on_stay =
|
auto on_stay =
|
||||||
@ -358,7 +360,8 @@ void CallFuncBuff::ProcLightCircle()
|
|||||||
[this, context, on_enter, on_stay, on_leave]
|
[this, context, on_enter, on_stay, on_leave]
|
||||||
()
|
()
|
||||||
{
|
{
|
||||||
const mt::Skill* curr_skill_meta = context->active_skill_meta ? context->active_skill_meta : skill_meta;
|
const mt::Skill* curr_skill_meta = context->active_skill_meta ?
|
||||||
|
context->active_skill_meta : skill_meta;
|
||||||
if (!owner->dead) {
|
if (!owner->dead) {
|
||||||
float range = curr_skill_meta->_number_meta->_float_range2;
|
float range = curr_skill_meta->_number_meta->_float_range2;
|
||||||
int size = 0;
|
int size = 0;
|
||||||
@ -398,9 +401,6 @@ void CallFuncBuff::ProcLightCircle()
|
|||||||
context->in_human_infos.end()) {
|
context->in_human_infos.end()) {
|
||||||
on_enter(hit_humans[i]);
|
on_enter(hit_humans[i]);
|
||||||
on_stay(hit_humans[i]);
|
on_stay(hit_humans[i]);
|
||||||
#if 0
|
|
||||||
context->in_human_infos.insert(hit_humans[i]-);
|
|
||||||
#endif
|
|
||||||
} else {
|
} else {
|
||||||
on_stay(hit_humans[i]);
|
on_stay(hit_humans[i]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user