Support getting distinct level attacks from LearnableAttacks.
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
2020-08-11 17:25:04 +02:00
parent b2931c0964
commit f3d22f7ba9
3 changed files with 18 additions and 6 deletions

View File

@@ -10,5 +10,5 @@ void LearnableAttacks::AddLevelAttack(uint8_t level, const AttackData* attack) {
levelData = {attack};
_learnedByLevel.Insert(level, levelData);
}
_distinctAttacks.insert(attack);
_distinctLevelAttacks.insert(attack);
}