mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-04 19:12:50 -04:00
Fixed a bug where respeccing wouldn't remove old abilities
This commit is contained in:
@@ -573,12 +573,13 @@ public class PlayerService implements INetworkDispatch {
|
||||
return;
|
||||
}
|
||||
|
||||
player.setProfession(profession);
|
||||
|
||||
String xpType = ((profession.contains("entertainer")) ? "entertainer" : ((profession.contains("trader")) ? "crafting" : "combat_general"));
|
||||
|
||||
int experience = player.getXp(xpType);
|
||||
|
||||
resetLevel(creature); // Clears old profession abilities
|
||||
|
||||
player.setProfession(profession);
|
||||
|
||||
try {
|
||||
experienceTable = ClientFileManager.loadFile("datatables/player/player_level.iff", DatatableVisitor.class);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user