This commit is contained in:
aozhiwei 2023-02-13 11:44:18 +08:00
parent ec2235ca91
commit 5f8db4ff04

View File

@ -8,6 +8,8 @@
#include "mt/Buff.h"
#include "mt/Hero.h"
#include "mt/Map.h"
#include "mt/Skill.h"
#include "mt/SkillNumber.h"
std::set<int> SelfChecker::used_buffs;
@ -85,6 +87,14 @@ void SelfChecker::Init()
SelfChecker::AddBuff(buff_id);
}
});
mt::SkillNumber::Traverse
(
[] (const mt::SkillNumber* meta, bool& stop)
{
if (meta->buff_id()) {
SelfChecker::AddBuff(meta->buff_id());
}
});
mt::Buff::Traverse
(
[] (const mt::Buff* meta, bool& stop)