This commit is contained in:
aozhiwei 2023-04-04 16:14:40 +08:00
parent 6ad3ea78bb
commit 8a508e47b2

View File

@ -1,5 +1,7 @@
#include "precompile.h" #include "precompile.h"
#include <a8/holder.h>
#include "buff/cond_add.h" #include "buff/cond_add.h"
#include "creature.h" #include "creature.h"
@ -228,8 +230,15 @@ void CondAddBuff::ProcLimitTimeKillTarget()
std::map<int, std::tuple<a8::XTimerWp, std::weak_ptr<EventHandlerPtr>>> watch_targets; std::map<int, std::tuple<a8::XTimerWp, std::weak_ptr<EventHandlerPtr>>> watch_targets;
); );
auto holder = std::make_shared<a8::Holder>
(
[context] (const a8::Args& args)
{
});
auto cb = auto cb =
[this, context, time_limit] (const a8::Args& args) mutable [this, context, time_limit, holder] (const a8::Args& args) mutable
{ {
Creature* target = args.Get<Creature*>(0); Creature* target = args.Get<Creature*>(0);
if (!target->dead) { if (!target->dead) {