1
This commit is contained in:
parent
c24120cfaf
commit
860a900d19
@ -328,6 +328,7 @@ void CallFuncBuff::ProcLightCircle()
|
||||
a8::XTimerWp active_skill_timer;
|
||||
std::map<int, InnerObject> in_human_infos;
|
||||
const mt::Skill* active_skill_meta = nullptr;
|
||||
int keep_buff_uniid = 0;
|
||||
);
|
||||
|
||||
{
|
||||
@ -483,5 +484,20 @@ void CallFuncBuff::ProcLightCircle()
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
owner->GetTrigger()->AddListener
|
||||
(
|
||||
kDieEvent,
|
||||
[this, context] (const a8::Args& args) mutable
|
||||
{
|
||||
if (context->keep_buff_uniid) {
|
||||
owner->RemoveBuffByUniId(context->keep_buff_uniid);
|
||||
context->keep_buff_uniid = 0;
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
{
|
||||
context->keep_buff_uniid = owner->TryAddBuff(GetCaster().Get(), meta->_int_buff_param4, skill_meta);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user