Remove revelation skills before subclass removal.
This commit is contained in:
@ -9650,7 +9650,7 @@ public final class L2PcInstance extends L2Playable
|
||||
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerProfessionCancel(this, classId), this);
|
||||
}
|
||||
|
||||
final SubClass subClass = getSubClasses().remove(classIndex);
|
||||
final SubClass subClass = getSubClasses().get(classIndex);
|
||||
if (subClass == null)
|
||||
{
|
||||
return false;
|
||||
@ -9672,6 +9672,9 @@ public final class L2PcInstance extends L2Playable
|
||||
}
|
||||
}
|
||||
|
||||
// Remove after stats are recalculated.
|
||||
getSubClasses().remove(classIndex);
|
||||
|
||||
try (Connection con = DatabaseFactory.getInstance().getConnection();
|
||||
PreparedStatement deleteHennas = con.prepareStatement(DELETE_CHAR_HENNAS);
|
||||
PreparedStatement deleteShortcuts = con.prepareStatement(DELETE_CHAR_SHORTCUTS);
|
||||
|
Reference in New Issue
Block a user