diff --git a/src/Battling/Pokemon/CreatePokemon.cpp b/src/Battling/Pokemon/CreatePokemon.cpp index d634c61..0b4c307 100644 --- a/src/Battling/Pokemon/CreatePokemon.cpp +++ b/src/Battling/Pokemon/CreatePokemon.cpp @@ -154,7 +154,7 @@ PkmnLib::Battling::CreatePokemon::LearnMove(const Arbutils::CaseInsensitiveConst if (!_library->GetMoveLibrary()->TryGet(moveName, move)) { throw CreatureException("Invalid Move given: " + moveName.std_str()); } - if (_currentMove >= _library->GetSettings()->GetMaximalMoves() - 1) { + if (_currentMove >= _library->GetSettings()->GetMaximalMoves()) { throw CreatureException("This pokemon already has the maximal allowed moves."); } Assert(move != nullptr);