forked from GitHub-Mirrors/foundry-sw5e
Fix deprecated use of isPC
This is a patch to the DND5E system pulled from the DND5E gitlab site
This commit is contained in:
parent
719709d516
commit
3fae34cc43
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue