mirror of
https://github.com/Melledy/Nebula.git
synced 2026-11-04 21:36:51 +01:00
Fix basic trials not rewarding materials
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user