remove redundant cast
This commit is contained in:
parent
52c729c3fa
commit
05bd1335ba
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ export class DS4ActorSheet extends ActorSheet<unknown, DS4Actor> {
|
|||
/** @override */
|
||||
async _onDropItem(event: DragEvent, data: Parameters<typeof DS4Item.fromDropData>[0]): Promise<unknown> {
|
||||
const item = ((await Item.fromDropData(data)) as unknown) as DS4Item;
|
||||
if (item && !this.actor.canOwnItemType(item.data.type as ItemType)) {
|
||||
if (item && !this.actor.canOwnItemType(item.data.type)) {
|
||||
ui.notifications.warn(
|
||||
game.i18n.format("DS4.WarningActorCannotOwnItem", {
|
||||
actorName: this.actor.name,
|
||||
|
|
Loading…
Reference in a new issue