summons now follow their summoner

This commit is contained in:
2026-02-21 16:25:53 -06:00
parent 0ef332bfac
commit ea705bc61c
3 changed files with 20 additions and 1 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
}
],
"url": "https://git.bloy.org/foundryvtt/swade-mb-helpers",
"version": "4.2.0",
"version": "4.2.1",
"compatibility": {
"minimum": "13",
"verified": "13"
+13
View File
@@ -18,6 +18,19 @@ export class BaseSummonEffect extends ActorFolderEffect {
return 0;
}
get spawnUpdates() {
const updates = super.spawnUpdates;
const actorUpdates = {
system: {
initiative: {
follow: this.source.name,
},
},
};
foundry.utils.mergeObject(updates.actor, actorUpdates);
return updates;
}
async parseValuesPre() {}
async parseValuesMid() {}