summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/net/eathena/beinghandler.cpp10
-rw-r--r--src/resources/notifications.h4
-rw-r--r--src/resources/notifytypes.h1
3 files changed, 12 insertions, 3 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp
index 5ff11ee83..29b7a2578 100644
--- a/src/net/eathena/beinghandler.cpp
+++ b/src/net/eathena/beinghandler.cpp
@@ -25,6 +25,7 @@
#include "actormanager.h"
#include "effectmanager.h"
#include "game.h"
+#include "notifymanager.h"
#include "being/localplayer.h"
#include "being/mercenaryinfo.h"
@@ -48,6 +49,7 @@
#include "net/eathena/sprite.h"
#include "resources/iteminfo.h"
+#include "resources/notifytypes.h"
#include "resources/db/itemdb.h"
@@ -1125,9 +1127,11 @@ void BeingHandler::processMapTypeProperty(Net::MessageIn &msg)
void BeingHandler::processMapType(Net::MessageIn &msg)
{
- UNIMPLIMENTEDPACKET;
- // battle ground map or not
- msg.readInt16("type");
+ const int16_t type = msg.readInt16("type");
+ if (type == 19)
+ NotifyManager::notify(NotifyTypes::MAP_TYPE_BATTLEFIELD);
+ else
+ UNIMPLIMENTEDPACKET;
}
void BeingHandler::processSkillCasting(Net::MessageIn &msg)
diff --git a/src/resources/notifications.h b/src/resources/notifications.h
index 69cb6a205..ad0819d23 100644
--- a/src/resources/notifications.h
+++ b/src/resources/notifications.h
@@ -615,6 +615,10 @@ namespace NotifyManager
// TRANSLATORS: notification message
"%s",
NotifyFlags::STRING},
+ {"mail type battle field",
+ // TRANSLATORS: notification message
+ N_("You enter battle field."),
+ NotifyFlags::EMPTY},
};
} // namespace NotifyManager
#endif // RESOURCES_NOTIFICATIONS_H
diff --git a/src/resources/notifytypes.h b/src/resources/notifytypes.h
index 1c132e876..26cf8c153 100644
--- a/src/resources/notifytypes.h
+++ b/src/resources/notifytypes.h
@@ -172,6 +172,7 @@ namespace NotifyTypes
MAIL_GET_ATTACH_ERROR,
MAIL_GET_ATTACH_TOO_MANY_ITEMS,
NEW_MAIL,
+ MAP_TYPE_BATTLEFIELD,
TYPE_END
};