forked from public/foundryvtt-wh4-lang-fr-fr
		
	
		
			
				
	
	
		
			9 lines
		
	
	
		
			447 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			447 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| let lore = this.effect.name.split("(")[1].split(")")[0].toLowerCase();
 | |
| let spellLore = game.wfrp4e.config.magicLores[args.spell.system.lore.value].toLowerCase();
 | |
| 
 | |
| // If channelling corresponding lore
 | |
| 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 |