Fix starting a battle by normal attacking not breaking enemy toughness

This commit is contained in:
Melledy
2023-12-17 18:57:54 -08:00
parent f67e300495
commit be6c95004c

View File

@@ -24,7 +24,7 @@ public class SkillAbilityInfo {
// Skip if not a maze skill // Skip if not a maze skill
if (ability.getName().contains("MazeSkill")) { if (ability.getName().contains("MazeSkill")) {
skill = new MazeSkill(avatarExcel, 1); skill = new MazeSkill(avatarExcel, 2);
avatarExcel.setMazeSkill(skill); avatarExcel.setMazeSkill(skill);
actionList = skill.getCastActions(); actionList = skill.getCastActions();
@@ -36,7 +36,7 @@ public class SkillAbilityInfo {
skill.getCastActions().add(new MazeSkillSummonUnit(summonUnitExcel, 20)); skill.getCastActions().add(new MazeSkillSummonUnit(summonUnitExcel, 20));
} }
} else if (ability.getName().contains("NormalAtk")) { } else if (ability.getName().contains("NormalAtk")) {
skill = new MazeSkill(avatarExcel, 0); skill = new MazeSkill(avatarExcel, 1);
avatarExcel.setMazeAttack(skill); avatarExcel.setMazeAttack(skill);
actionList = skill.getAttackActions(); actionList = skill.getAttackActions();
@@ -79,7 +79,7 @@ public class SkillAbilityInfo {
parseTask(skill, skill.getAttackActions(), t); parseTask(skill, skill.getAttackActions(), t);
} }
} }
if (skill.getIndex() == 1) { if (skill.getIndex() == 2) {
skill.setTriggerBattle(task.isTriggerBattle()); skill.setTriggerBattle(task.isTriggerBattle());
} }
} else if (task.getType().contains("AdventureFireProjectile")) { } else if (task.getType().contains("AdventureFireProjectile")) {