clone bonded and augmented features with actor parent to enable correct action execution
This commit is contained in:
parent
5d8877ff29
commit
f2873c5c81
1 changed files with 6 additions and 2 deletions
|
|
@ -159,7 +159,9 @@ export function patchDhCharacter(DhCharacter) {
|
||||||
if (bondedUuid) {
|
if (bondedUuid) {
|
||||||
const feature = _featureCache.get(bondedUuid) || fromUuidSync(bondedUuid);
|
const feature = _featureCache.get(bondedUuid) || fromUuidSync(bondedUuid);
|
||||||
if (feature) {
|
if (feature) {
|
||||||
ikonisFeatures.push(feature);
|
// Clone with actor as parent so actions work
|
||||||
|
const featureClone = feature.clone({ parent: this.parent }, { keepId: true });
|
||||||
|
ikonisFeatures.push(featureClone);
|
||||||
console.log(`DH-Ikonis | Resolved bonded feature: ${feature.name}`);
|
console.log(`DH-Ikonis | Resolved bonded feature: ${feature.name}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -175,7 +177,9 @@ export function patchDhCharacter(DhCharacter) {
|
||||||
|
|
||||||
const feature = _featureCache.get(aug.featureUuid) || fromUuidSync(aug.featureUuid);
|
const feature = _featureCache.get(aug.featureUuid) || fromUuidSync(aug.featureUuid);
|
||||||
if (feature) {
|
if (feature) {
|
||||||
ikonisFeatures.push(feature);
|
// Clone with actor as parent so actions work
|
||||||
|
const featureClone = feature.clone({ parent: this.parent }, { keepId: true });
|
||||||
|
ikonisFeatures.push(featureClone);
|
||||||
console.log(`DH-Ikonis | Resolved augment feature: ${feature.name}`);
|
console.log(`DH-Ikonis | Resolved augment feature: ${feature.name}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue