Fix bug where non-200 capped classes can't rebirth
This commit is contained in:
@@ -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");
|
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) {
|
} else if (status === 2) {
|
||||||
if (selection === 0) {
|
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");
|
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 {
|
} 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();
|
cm.dispose();
|
||||||
}
|
}
|
||||||
} else if (selection === 1) {
|
} else if (selection === 1) {
|
||||||
|
|||||||
@@ -11151,7 +11151,7 @@ public class Character extends AbstractCharacterObject {
|
|||||||
yellowMessage("Rebirth system is not enabled!");
|
yellowMessage("Rebirth system is not enabled!");
|
||||||
throw new NotEnabledException();
|
throw new NotEnabledException();
|
||||||
}
|
}
|
||||||
if (getLevel() != 200) {
|
if (getLevel() != getMaxClassLevel()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
addReborns();
|
addReborns();
|
||||||
|
|||||||
Reference in New Issue
Block a user