mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-08 06:56:12 +01:00
Reworked beastform to hold it's data entirely in the beastformEffect
This commit is contained in:
parent
3186468f28
commit
51bd7c18af
7 changed files with 76 additions and 60 deletions
|
|
@ -786,14 +786,12 @@ export class DhBeastformAction extends DHBaseAction {
|
|||
}
|
||||
|
||||
async handleActiveTransformations() {
|
||||
const activeBeastforms = this.actor.items.filter(x => x.type === 'beastform');
|
||||
if (activeBeastforms.length > 0) {
|
||||
for (let form of activeBeastforms) {
|
||||
await form.delete();
|
||||
const beastformEffects = this.actor.effects.filter(x => x.type === 'beastform');
|
||||
if (beastformEffects.length > 0) {
|
||||
for (let effect of beastformEffects) {
|
||||
await effect.delete();
|
||||
}
|
||||
|
||||
this.actor.effects.filter(x => x.type === 'beastform').forEach(x => x.delete());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue