From f7928a91e25deec5314b55e2b269c191fc140aec Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 23 Nov 2015 21:58:36 +0300 Subject: Add skill error about missing spirits. --- src/net/ea/skillrecv.h | 1 + src/net/eathena/skillrecv.cpp | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/net/ea/skillrecv.h b/src/net/ea/skillrecv.h index 2ff5d1974..3c5323a36 100644 --- a/src/net/ea/skillrecv.h +++ b/src/net/ea/skillrecv.h @@ -59,6 +59,7 @@ static const unsigned int RFAIL_OVERWEIGHT = 0x09; static const unsigned int RFAIL_SUMMON = 19; static const unsigned int RFAIL_NEED_ITEM = 71; static const unsigned int RFAIL_NEED_EQUIPMENT = 72; +static const unsigned int RFAIL_SPIRITS = 74; /** should always be zero if failed */ static const unsigned int SKILL_FAILED = 0x00; diff --git a/src/net/eathena/skillrecv.cpp b/src/net/eathena/skillrecv.cpp index cfba6fc9f..f0ce13cdd 100644 --- a/src/net/eathena/skillrecv.cpp +++ b/src/net/eathena/skillrecv.cpp @@ -276,6 +276,10 @@ void SkillRecv::processSkillFailed(Net::MessageIn &msg) // TRANSLATORS: error message txt.append(_("Fail summon.")); break; + case RFAIL_SPIRITS: + // TRANSLATORS: error message + txt.append(_("Need spirits.")); + break; case RFAIL_NEED_EQUIPMENT: { const int itemId = bskill >> 16; -- cgit v1.2.3-70-g09d2