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

18 lines
445 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 = ["Harmonisation Aethyrique",
"Magie des Arcanes (Domaine)",
"Magie du Chaos (Tzeentch)",
"Mains agiles",
"Diction Instinctive",
"Sens de la Magie",
"Magie Mineure",
"Seconde Vue",
"Mage de guerre",
"Sorcier!"].filter(t => !currentCareer.system.talents.includes(t))
2024-05-16 17:57:51 +02:00
currentCareer.system.talents = currentCareer.system.talents.concat(talents)