forked from GitHub-Mirrors/foundry-sw5e
Added changes from DND5e 1.3.3
This commit is contained in:
parent
3cfee9dd81
commit
f839166082
7 changed files with 29 additions and 26 deletions
|
@ -1458,8 +1458,8 @@ export default class Actor5e extends Actor {
|
|||
}
|
||||
|
||||
// Sort classes which can recover HD, assuming players prefer recovering larger HD first.
|
||||
const sortedClasses = this.items.filter(item => item.data.type === "class").sort((a, b) => {
|
||||
return (parseInt(a.data.data.hitDice.slice(1)) || 0) - (parseInt(a.data.data.hitDice.slice(1)) || 0);
|
||||
const sortedClasses = Object.values(this.classes).sort((a, b) => {
|
||||
return (parseInt(b.data.data.hitDice.slice(1)) || 0) - (parseInt(a.data.data.hitDice.slice(1)) || 0);
|
||||
});
|
||||
|
||||
let updates = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue