clone bonded and augmented features with actor parent to enable correct action execution

This commit is contained in:
CPTN Cosmo 2026-04-26 18:03:36 +02:00
parent 5d8877ff29
commit f2873c5c81

View file

@ -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}`);
} }
} }