2024-05-16 17:57:51 +02:00
|
|
|
let lore = this.effect.name.split("(")[1].split(")")[0].toLowerCase();
|
2024-06-08 00:27:35 +02:00
|
|
|
let spellLore = game.wfrp4e.config.magicLores[args.spell.system.lore.value].toLowerCase();
|
2024-05-16 17:57:51 +02:00
|
|
|
|
|
|
|
// If channelling corresponding lore
|
2024-06-08 00:27:35 +02:00
|
|
|
if (args.type == "channelling" && spellLore == lore)
|
2024-05-16 17:57:51 +02:00
|
|
|
args.prefillModifiers.slBonus += 2
|
|
|
|
// If channelling or casting different lore
|
2024-06-08 00:27:35 +02:00
|
|
|
else if (spellLore != lore && args.spell.system.lore.value != "petty")
|
|
|
|
args.prefillModifiers.slBonus -= 1
|