summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-15 02:57:01 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-15 02:57:01 +0300
commite45a51342495eccdb8280f1f1a7963c7b78f4772 (patch)
treeafeeefe150f92e548c92e7bcf91f9ad15b29e0ba
parent0d8acc720803c17d4d2316c07203b65ddbb9ab25 (diff)
downloadmv-e45a51342495eccdb8280f1f1a7963c7b78f4772.tar.gz
mv-e45a51342495eccdb8280f1f1a7963c7b78f4772.tar.bz2
mv-e45a51342495eccdb8280f1f1a7963c7b78f4772.tar.xz
mv-e45a51342495eccdb8280f1f1a7963c7b78f4772.zip
Add support for unknown skill error (hercules).release2016-03-15
-rw-r--r--src/net/eathena/skillrecv.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/net/eathena/skillrecv.cpp b/src/net/eathena/skillrecv.cpp
index 8053dce54..8ec41c42f 100644
--- a/src/net/eathena/skillrecv.cpp
+++ b/src/net/eathena/skillrecv.cpp
@@ -52,6 +52,7 @@
#include "debug.h"
+static const unsigned int RFAIL = 10;
static const unsigned int RFAIL_SUMMON = 19;
static const unsigned int RFAIL_NEED_ITEM = 71;
static const unsigned int RFAIL_NEED_EQUIPMENT = 72;
@@ -337,6 +338,12 @@ void SkillRecv::processSkillFailed(Net::MessageIn &msg)
}
break;
}
+ case RFAIL:
+ {
+ // TRANSLATORS: error message
+ txt.append(_("Skill failed!"));
+ break;
+ }
default:
UNIMPLIMENTEDPACKETFIELD(reason);