Skip to content

Commit 443a16f

Browse files
authored
Merge pull request #10037 from Skold177/Automaton-WS-Refactor
[core] [C++] Fix Automaton mobSkill lookup
2 parents 959617c + 7913999 commit 443a16f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/map/ai/controllers/automaton_controller.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,7 +1493,7 @@ auto CAutomatonController::TryTPMove() -> bool
14931493
{
14941494
if (PAutomaton->health.tp >= 1000)
14951495
{
1496-
const auto& FamilySkills = battleutils::GetMobSkillList(PAutomaton->m_Family);
1496+
const auto& FrameSkills = battleutils::GetMobSkillList(PAutomaton->m_MobSkillList);
14971497

14981498
std::vector<CMobSkill*> validSkills;
14991499

@@ -1505,7 +1505,7 @@ auto CAutomatonController::TryTPMove() -> bool
15051505
skilltype = SKILL_AUTOMATON_RANGED;
15061506
}
15071507

1508-
for (auto skillid : FamilySkills)
1508+
for (auto skillid : FrameSkills)
15091509
{
15101510
auto* PSkill = battleutils::GetMobSkill(skillid);
15111511
if (PSkill && PAutomaton->GetSkill(skilltype) > PSkill->getParam() && PSkill->getParam() != -1 &&

0 commit comments

Comments
 (0)