1
This commit is contained in:
parent
6ad3ea78bb
commit
8a508e47b2
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user