feat: add abnormal effects

This commit is contained in:
k0t9i
2023-01-25 01:56:21 +04:00
parent d6c15ee0c2
commit e0c7445ef7
12 changed files with 296 additions and 6 deletions

View File

@@ -190,9 +190,9 @@ namespace Interlude
ids[skillInfo[i]] = skillInfo[i + 2];
}
for (auto it = m_Skills.begin(); it != m_Skills.end();)
for (const auto& kvp : m_Skills)
{
const auto& skill = it->second;
const auto& skill = kvp.second;
const auto needToToggle = ids.find(skill->GetId()) != ids.end();
// buff time less than zero means this is a aura
@@ -206,10 +206,6 @@ namespace Interlude
{
skill->UpdateToggle(true);
}
else
{
++it;
}
}
}
}