This commit is contained in:
aozhiwei 2023-02-13 14:56:41 +08:00
parent bfd20cb2b8
commit 8c37bd0045

View File

@ -10,6 +10,7 @@
#include "mt/Map.h"
#include "mt/Skill.h"
#include "mt/SkillNumber.h"
#include "mt/MapThing.h"
std::set<int> SelfChecker::used_buffs;
@ -197,6 +198,14 @@ void SelfChecker::Init()
}
}
});
mt::MapThing::Traverse
(
[] (const mt::MapThing* meta, bool& stop)
{
for (int buff_id : meta->_buff_list) {
SelfChecker::AddBuff(buff_id);
}
});
}
void SelfChecker::UnInit()