diff --git a/src/proto_instance.cc b/src/proto_instance.cc index cc07be05..ad603452 100644 --- a/src/proto_instance.cc +++ b/src/proto_instance.cc @@ -802,8 +802,17 @@ static UseItemResultCode _obj_use_book(Object* book) increase = 150 * increase / 100; } + bool increased = false; for (int i = 0; i < increase; i++) { - skillAddForce(gDude, skill); + if (skillAddForce(gDude, skill) != 0) { + break; + } + + increased = true; + } + + if (!increased) { + messageId = 801; } }