summaryrefslogtreecommitdiff
path: root/src/net/eathena/attendancehandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/attendancehandler.cpp')
-rw-r--r--src/net/eathena/attendancehandler.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/net/eathena/attendancehandler.cpp b/src/net/eathena/attendancehandler.cpp
index ea53b71ab..538a72fc9 100644
--- a/src/net/eathena/attendancehandler.cpp
+++ b/src/net/eathena/attendancehandler.cpp
@@ -26,6 +26,8 @@
#include "debug.h"
extern int packetVersion;
+extern int packetVersionRe;
+extern int packetVersionMain;
namespace EAthena
{
@@ -48,4 +50,15 @@ void AttendanceHandler::openAttendanceWindow() const
outMsg.writeInt8(5, "window type");
}
+void AttendanceHandler::requestReward() const
+{
+ if (packetVersionRe < 20180307 &&
+ packetVersionMain < 20180404)
+ {
+ return;
+ }
+
+ createOutPacket(CMSG_ATTENDANCE_REWARD);
+}
+
} // namespace EAthena