Update from 0.98 DND

Current 10-18-20
This commit is contained in:
Kakeman89 2020-10-19 15:52:56 -04:00
parent 90fab8d89f
commit b92edb4200
8 changed files with 34 additions and 14 deletions

View file

@ -266,8 +266,7 @@ export default class ActorSheet5eCharacter extends ActorSheet5e {
/** @override */
async _onDropItemCreate(itemData) {
// Upgrade the number of class levels a character has
// and add features
// Upgrade the number of class levels a character has and add features
if ( itemData.type === "class" ) {
const cls = this.actor.itemTypes.class.find(c => c.name === itemData.name);
const classWasAlreadyPresent = !!cls;