We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f380a39 commit 0038a58Copy full SHA for 0038a58
module/documents/actors/actor.mjs
@@ -214,11 +214,17 @@ export class FUActor extends Actor {
214
215
*allApplicableEffects() {
216
for (const effect of super.allApplicableEffects()) {
217
+ const applicableTypes = ['armor', 'shield', 'weapon', 'accessory'];
218
if (effect.parent instanceof FUItem) {
219
const itemId = effect.parent.id;
- const equipData = this.system.equipped;
220
- if (!equipData.transferEffects(itemId)) {
221
- continue;
+ const itemType = effect.parent.type;
+
222
+ // Check if the item is one of the applicable types
223
+ if (applicableTypes.includes(itemType)) {
224
+ const equipData = this.system.equipped;
225
+ if (!equipData.transferEffects(itemId)) {
226
+ continue;
227
+ }
228
}
229
230
yield effect;
0 commit comments