Fix basic trials not rewarding materials

This commit is contained in:
Melledy committed 2025-10-29 20:49:34 -07:00
1 parent d024ab62a8
commit e002bec13a
13 files changed
+147 -57

No files matched your search

@@ -16,14 +16,14 @@ public class HandlerWeekBossApplyReq extends NetHandler {
var req = WeekBossApplyReq.parseFrom(message);
var data = GameData.getWeekBossLevelDataTable().get(req.getId());
if (data == null) {
if (data == null || !data.hasEnergy(session.getPlayer())) {
return this.encodeMsg(NetMsgId.week_boss_apply_failed_ack);
}
// Set player
// Set player instance id
session.getPlayer().getInstanceManager().setCurInstanceId(req.getId());
// Template
// Send response
return this.encodeMsg(NetMsgId.week_boss_apply_succeed_ack);
}