forked from GitHub-Mirrors/foundry-sw5e
Merge pull request #51 from unrealkakeman89/Develop-VJ
Fix deprecated use of isPC
This commit is contained in:
commit
7bf8d10df6
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue