Fix WoM effects for robes and enchanted staff #102
File diff suppressed because one or more lines are too long
@ -6,4 +6,4 @@ if (args.type == "channelling" && spellLore == lore)
|
|||||||
args.prefillModifiers.slBonus += 2
|
args.prefillModifiers.slBonus += 2
|
||||||
// If channelling or casting different lore
|
// If channelling or casting different lore
|
||||||
else if (spellLore != lore && args.spell.system.lore.value != "petty")
|
else if (spellLore != lore && args.spell.system.lore.value != "petty")
|
||||||
args.prefillModifiers.slBonus -= 1
|
args.prefillModifiers.slBonus -= 1
|
@ -11,4 +11,4 @@ if (mainEffect.name.includes("(Lore)"))
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.effect.delete();
|
this.effect.delete();
|
@ -6,4 +6,4 @@ if (args.type == "channelling" && spellLore == lore)
|
|||||||
args.prefillModifiers.slBonus += 1
|
args.prefillModifiers.slBonus += 1
|
||||||
// If channelling or casting different lore
|
// If channelling or casting different lore
|
||||||
else if (spellLore != lore && args.spell.system.lore.value != "petty")
|
else if (spellLore != lore && args.spell.system.lore.value != "petty")
|
||||||
args.prefillModifiers.slBonus -= 1
|
args.prefillModifiers.slBonus -= 1
|
@ -1,3 +1,3 @@
|
|||||||
let lore = this.effect.name.split("(")[1].split(")")[0].toLowerCase();
|
let lore = this.effect.name.split("(")[1].split(")")[0].toLowerCase();
|
||||||
let spellLore = game.wfrp4e.config.magicLores[args.spell.system.lore.value].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));
|
@ -6,4 +6,4 @@ if (args.type == "channelling" && spellLore == lore)
|
|||||||
args.prefillModifiers.slBonus += 3
|
args.prefillModifiers.slBonus += 3
|
||||||
// If channelling or casting different lore
|
// If channelling or casting different lore
|
||||||
else if (spellLore != lore && args.spell.system.lore.value != "petty")
|
else if (spellLore != lore && args.spell.system.lore.value != "petty")
|
||||||
args.prefillModifiers.slBonus -= 1
|
args.prefillModifiers.slBonus -= 1
|
@ -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)
|
if (args.item.type == "spell" && game.wfrp4e.config.magicLores[args.item.system.lore.value].toLowerCase() == lore)
|
||||||
{
|
{
|
||||||
args.item.system.cn.value -= 1
|
args.item.system.cn.value -= 1
|
||||||
}
|
}
|
@ -11,4 +11,4 @@ if (mainEffect.name.includes("<Lore>"))
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.effect.delete();
|
this.effect.delete();
|
Loading…
Reference in New Issue
Block a user