We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3624893 + 79b72e5 commit a688712Copy full SHA for a688712
1 file changed
src/scene_battle_rpg2k.cpp
@@ -1224,6 +1224,12 @@ Scene_Battle_Rpg2k::BattleActionReturn Scene_Battle_Rpg2k::ProcessBattleActionAn
1224
}
1225
1226
Scene_Battle_Rpg2k::BattleActionReturn Scene_Battle_Rpg2k::ProcessBattleActionExecute(Game_BattleAlgorithm::AlgorithmBase* action) {
1227
+ if (!action->IsCurrentTargetValid()) {
1228
+ // FIXME: Pick a new target instead of ending the action
1229
+ SetBattleActionState(BattleActionState_Finished);
1230
+ return BattleActionReturn::eContinue;
1231
+ }
1232
+
1233
action->Execute();
1234
if (action->GetType() == Game_BattleAlgorithm::Type::Normal
1235
|| action->GetType() == Game_BattleAlgorithm::Type::Skill
0 commit comments