Fix WoM effects for robes and enchanted staff #102

Merged
uberwald merged 4 commits from :fixes into v10 2024-06-11 07:52:18 +02:00
8 changed files with 8 additions and 8 deletions
Showing only changes of commit 35ae4012f6 - Show all commits

File diff suppressed because one or more lines are too long

View File

@ -6,4 +6,4 @@ if (args.type == "channelling" && spellLore == lore)
args.prefillModifiers.slBonus += 2
// If channelling or casting different lore
else if (spellLore != lore && args.spell.system.lore.value != "petty")
args.prefillModifiers.slBonus -= 1
args.prefillModifiers.slBonus -= 1

View File

@ -11,4 +11,4 @@ if (mainEffect.name.includes("(Lore)"))
}
}
this.effect.delete();
this.effect.delete();

View File

@ -6,4 +6,4 @@ if (args.type == "channelling" && spellLore == lore)
args.prefillModifiers.slBonus += 1
// If channelling or casting different lore
else if (spellLore != lore && args.spell.system.lore.value != "petty")
args.prefillModifiers.slBonus -= 1
args.prefillModifiers.slBonus -= 1

View File

@ -1,3 +1,3 @@
let lore = this.effect.name.split("(")[1].split(")")[0].toLowerCase();
let spellLore = game.wfrp4e.config.magicLores[args.spell.system.lore.value].toLowerCase();
return !args.spell || (args.type == "cast" && [game.wfrp4e.config.magicLores["petty"].toLowerCase(), lore].includes(spellLore));
return !args.spell || (args.type == "cast" && [game.wfrp4e.config.magicLores["petty"].toLowerCase(), lore].includes(spellLore));

View File

@ -6,4 +6,4 @@ if (args.type == "channelling" && spellLore == lore)
args.prefillModifiers.slBonus += 3
// If channelling or casting different lore
else if (spellLore != lore && args.spell.system.lore.value != "petty")
args.prefillModifiers.slBonus -= 1
args.prefillModifiers.slBonus -= 1

View File

@ -2,4 +2,4 @@ let lore = this.effect.name.split(" ")[2].toLowerCase();
if (args.item.type == "spell" && game.wfrp4e.config.magicLores[args.item.system.lore.value].toLowerCase() == lore)
{
args.item.system.cn.value -= 1
}
}

View File

@ -11,4 +11,4 @@ if (mainEffect.name.includes("<Lore>"))
}
}
this.effect.delete();
this.effect.delete();