Tie active effects to equipped flag for token actors, too

This commit is contained in:
Johannes Loher 2021-02-16 02:07:34 +01:00
parent 6cdbcc6899
commit 1b715031a8
2 changed files with 107 additions and 39 deletions

View file

@ -127,7 +127,6 @@ export class DS4ActorSheet extends ActorSheet<ActorSheet.Data<DS4Actor>> {
*/
protected _onItemChange(ev: JQuery.ChangeEvent): void {
ev.preventDefault();
console.log("Current target:", $(ev.currentTarget).get(0)["name"]);
const el: HTMLFormElement = $(ev.currentTarget).get(0);
const id = $(ev.currentTarget).parents(".item").data("itemId");
const item = duplicate<DS4Item, "lenient">(this.actor.getOwnedItem(id));