summons now follow their summoner
This commit is contained in:
parent
0ef332bfac
commit
7407a92938
@ -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
|
||||||
|
|||||||
@ -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"
|
||||||
|
|||||||
@ -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() {}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user