expanded on operatives

This commit is contained in:
IM23a-spirgif
2024-09-19 20:40:17 +02:00
parent 7eca20e262
commit 1371dfbc89
2 changed files with 261 additions and 48 deletions
-9
View File
@@ -210,11 +210,6 @@ function applyModifiers() {
return; // Skip this modifier
}
// If modifier is operative-specific, ensure the selected operative matches the modifier category
if (mod.operatives && selectedOperative && mod.operatives !== selectedOperative.category) {
return; // Skip this modifier if it doesn't apply to the current operative's category
}
// Handle modifiers with multiple buffs
if (mod.dataset.buffs) {
const buffs = JSON.parse(mod.dataset.buffs);
@@ -251,10 +246,6 @@ function applyModifiers() {
return; // Skip if the modifier does not apply to this weapon type
}
if (mod.operatives && selectedOperative && mod.operatives !== selectedOperative.category) {
return; // Skip this modifier if it doesn't apply to the current operative's category
}
// Handle operative modifiers with multiple buffs
if (mod.buffs) {
mod.buffs.forEach(buff => {