Fix bug where non-200 capped classes can't rebirth

This commit is contained in:
Charlie Unfricht
2022-08-16 02:17:49 -04:00
parent a456b27011
commit cd706c544b
2 changed files with 4 additions and 4 deletions

View File

@@ -50,10 +50,10 @@ function action(mode, type, selection) {
cm.sendSimple("What do you want me to do today: \r\n \r\n #L0##bI want to be reborn!#l \r\n #L1##bNothing for now...#k#l");
} else if (status === 2) {
if (selection === 0) {
if (cm.getChar().getLevel() === 200) {
if (cm.getChar().getLevel() === cm.getChar().getMaxClassLevel()) {
cm.sendSimple("I see... and which path would you like to take? \r\n\r\n #L0##bExplorer (Beginner)#l \r\n #L1##bCygnus Knight (Noblesse)#l \r\n #L2##bAran (Legend)#l");
} else {
cm.sendOk("You are not level 200, please come back when you hit level 200.");
cm.sendOk("It looks like your journey has not yet ended... come back when you're level " + cm.getChar().getMaxClassLevel());
cm.dispose();
}
} else if (selection === 1) {
@@ -64,7 +64,7 @@ function action(mode, type, selection) {
// 0 => beginner, 1000 => noblesse, 2000 => legend
// makes this very easy :-)
jobId = selection * 1000;
var job = "";
if (selection === 0) job = "Beginner";
else if (selection === 1) job = "Noblesse";

View File

@@ -11151,7 +11151,7 @@ public class Character extends AbstractCharacterObject {
yellowMessage("Rebirth system is not enabled!");
throw new NotEnabledException();
}
if (getLevel() != 200) {
if (getLevel() != getMaxClassLevel()) {
return;
}
addReborns();