Update for newer base libraries, improves error messages.
This commit is contained in:
@@ -25,7 +25,7 @@ class MiscMockFunctions {
|
||||
|
||||
auto move = Globals::Library.GetValue()->GetMoveLibrary()->TryGet(moveName);
|
||||
if (!move.has_value()) {
|
||||
return {};
|
||||
THROW("Unknown move: " << moveName);
|
||||
}
|
||||
auto learnedMove =
|
||||
new PkmnLib::Battling::LearnedMove(move.value(), CreatureLib::Battling::AttackLearnMethod::Unknown);
|
||||
|
||||
Reference in New Issue
Block a user