Skip to content

Commit

Permalink
"2.31: RM2000: Items that miss shouldn't print any message at all."
Browse files Browse the repository at this point in the history
Solution: In GetResultMessages, only summon AlgorithmBase if the attack is a success.
  • Loading branch information
Albeleon authored and mateofio committed Nov 6, 2018
1 parent 5b84c36 commit aa17110
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/game_battlealgorithm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1312,7 +1312,8 @@ int Game_BattleAlgorithm::Item::GetSourceAnimationState() const {
}

void Game_BattleAlgorithm::Item::GetResultMessages(std::vector<std::string>& out) const {
AlgorithmBase::GetResultMessages(out);
if (success)
AlgorithmBase::GetResultMessages(out);
}

const RPG::Sound* Game_BattleAlgorithm::Item::GetStartSe() const {
Expand Down

0 comments on commit aa17110

Please sign in to comment.