Fix SU blessing selector and menu

This commit is contained in:
Melledy
2024-06-24 03:23:42 -07:00
parent ca1542e37f
commit b4addcc7dd
10 changed files with 640 additions and 719 deletions

View File

@@ -277,7 +277,7 @@ public class RogueInstance {
var data = HandleRogueCommonPendingActionScRsp.newInstance();
data.getMutableRogueBuffSelect();
data.setTimes(this.actionUniqueId - 2);
data.setActionUniqueId(this.actionUniqueId - 2);
this.getPlayer().sendPacket(new PacketHandleRogueCommonPendingActionScRsp(data));
return buff;
}
@@ -355,7 +355,7 @@ public class RogueInstance {
var data = HandleRogueCommonPendingActionScRsp.newInstance();
data.getMutableMiracleSelect();
data.setTimes(this.actionUniqueId - 2);
data.setActionUniqueId(this.actionUniqueId - 2);
this.getPlayer().sendPacket(new PacketHandleRogueCommonPendingActionScRsp(data));
return miracle;
}
@@ -402,7 +402,7 @@ public class RogueInstance {
// TODO: add event
var data = HandleRogueCommonPendingActionScRsp.newInstance();
data.getMutableBonusSelect();
data.setTimes(this.actionUniqueId - 2);
data.setActionUniqueId(this.actionUniqueId - 2);
this.getPlayer().sendPacket(new PacketHandleRogueCommonPendingActionScRsp(data));
try {
this.onSelectDialogue(bonus.getEventId(), 0);

View File

@@ -15,12 +15,12 @@ public class PacketHandleRogueCommonPendingActionScRsp extends BasePacket {
public PacketHandleRogueCommonPendingActionScRsp(int id) {
this(HandleRogueCommonPendingActionScRsp.newInstance()
.setTimes(id));
.setActionUniqueId(id));
}
public PacketHandleRogueCommonPendingActionScRsp(RogueRerollBuff rogueRerollBuff, int id) {
this(HandleRogueCommonPendingActionScRsp.newInstance()
.setTimes(id)
.setActionUniqueId(id)
.setRogueRerollBuff(rogueRerollBuff));
}