foundryvtt-wh4-lang-fr-fr/scripts/2vTVR0quRZQtjNfQ.js

18 lines
416 B
JavaScript
Raw Normal View History

2024-05-16 17:57:51 +02:00
let currentCareer = this.actor.system.currentCareer;
if (!currentCareer)
{
return;
}
let talents = ["Aethyric Attunement",
"Arcane Magic (Any)",
"Chaos Magic (Tzeentch)",
"Fast Hands",
"Instinctive Diction",
"Magical Sense",
"Petty Magic",
"Second Sight",
"War Wizard",
"Witch!"].filter(t => !currentCareer.system.talents.includes(t))
currentCareer.system.talents = currentCareer.system.talents.concat(talents)