Merge pull request #51 from unrealkakeman89/Develop-VJ

Fix deprecated use of isPC
This commit is contained in:
CK 2020-11-25 13:59:35 -05:00 committed by GitHub
commit 7bf8d10df6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -549,7 +549,7 @@ export default class Actor5e extends Actor {
async createOwnedItem(itemData, options) {
// Assume NPCs are always proficient with weapons and always have powers prepared
if ( !this.isPC ) {
if ( !this.hasPlayerOwner ) {
let t = itemData.type;
let initial = {};
if ( t === "weapon" ) initial["data.proficient"] = true;

View file

@ -1,6 +1,6 @@
/**
* A specialized form used to select from a checklist of attributes, traits, or properties
* @extends {FormApplication}
* @implements {FormApplication}
*/
export default class TraitSelector extends FormApplication {
@ -36,7 +36,7 @@ export default class TraitSelector extends FormApplication {
getData() {
// Get current values
let attr = getProperty(this.object.data, this.attribute) || {};
let attr = getProperty(this.object._data, this.attribute) || {};
attr.value = attr.value || [];
// Populate choices