summons now follow their summoner

This commit is contained in:
Mike Bloy 2026-02-21 16:25:53 -06:00
parent 0ef332bfac
commit ea705bc61c
3 changed files with 20 additions and 1 deletions

View File

@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [4.2.1]
### Added
- Summoned creatures will now automatically follow their summoners in the combat tracker.
## [4.2.0] ## [4.2.0]
### Added ### Added

View File

@ -9,7 +9,7 @@
} }
], ],
"url": "https://git.bloy.org/foundryvtt/swade-mb-helpers", "url": "https://git.bloy.org/foundryvtt/swade-mb-helpers",
"version": "4.2.0", "version": "4.2.1",
"compatibility": { "compatibility": {
"minimum": "13", "minimum": "13",
"verified": "13" "verified": "13"

View File

@ -18,6 +18,19 @@ export class BaseSummonEffect extends ActorFolderEffect {
return 0; 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 parseValuesPre() {}
async parseValuesMid() {} async parseValuesMid() {}