We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f457ade commit a19f226Copy full SHA for a19f226
SerialPrograms/Source/PokemonLZA/Programs/PokemonLZA_TrainerBattle.cpp
@@ -96,14 +96,17 @@ bool TrainerBattleState::attempt_one_attack(
96
97
int best_index = 4;
98
for (int index = 0; index < 4; index++){
99
+// cout << "index: " << index << endl;
100
if (move_watcher[index] == MoveEffectivenessSymbol::None){
101
+// cout << "skip due to none" << endl;
102
continue;
103
}
104
if (m_settings.MODE == BattleAIMode::BlindMash){
105
best_index = index;
106
break;
107
- if (move_watcher[best_index] < move_watcher[index]){
108
+ if (best_index == 4 || move_watcher[best_index] < move_watcher[index]){
109
+// cout << "better move found: " << index << endl;
110
111
112
0 commit comments