mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-24 08:23:38 +02:00
Removed retroactive companion levelup
This commit is contained in:
parent
c406974cb5
commit
9905a38b7e
1 changed files with 1 additions and 2 deletions
|
|
@ -51,8 +51,8 @@ export default class DhCompanionSheet extends DaggerheartSheet(ActorSheetV2) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async onPartnerChange(event) {
|
async onPartnerChange(event) {
|
||||||
const partner = game.actors.find(a => a.uuid === event.target.value);
|
|
||||||
if (event.target.value) {
|
if (event.target.value) {
|
||||||
|
const partner = game.actors.find(a => a.uuid === event.target.value);
|
||||||
await partner.update({ 'system.companion': this.document.uuid });
|
await partner.update({ 'system.companion': this.document.uuid });
|
||||||
} else {
|
} else {
|
||||||
const update = { 'system.companion': null };
|
const update = { 'system.companion': null };
|
||||||
|
|
@ -74,7 +74,6 @@ export default class DhCompanionSheet extends DaggerheartSheet(ActorSheetV2) {
|
||||||
}
|
}
|
||||||
|
|
||||||
await this.document.update({ 'system.partner': event.target.value });
|
await this.document.update({ 'system.partner': event.target.value });
|
||||||
await this.document.updateLevel(partner ? partner.system.levelData.level.current : 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static async attackRoll(event) {
|
static async attackRoll(event) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue