mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 07:59:03 +01:00
Weaponhandling while in beastform
This commit is contained in:
parent
721eb347db
commit
87f29c3bb3
4 changed files with 23 additions and 1 deletions
|
|
@ -26,6 +26,13 @@ export default class BeastformEffect extends foundry.abstract.TypeDataModel {
|
|||
};
|
||||
}
|
||||
|
||||
async _onCreate() {
|
||||
if (this.parent.parent?.type === 'character') {
|
||||
this.parent.parent.system.primaryWeapon?.update?.({ 'system.equipped': false });
|
||||
this.parent.parent.system.secondayWeapon?.update?.({ 'system.equipped': false });
|
||||
}
|
||||
}
|
||||
|
||||
async _preDelete() {
|
||||
if (this.parent.parent.type === 'character') {
|
||||
const update = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue