1
This commit is contained in:
parent
ec2235ca91
commit
5f8db4ff04
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user