Préparation ajout empoignade, ActiveEffect #502
@ -2155,10 +2155,7 @@ export class RdDActor extends Actor {
|
||||
async appliquerAjoutExperience(rollData, display) {
|
||||
if (!this.isPersonnage()) return;
|
||||
let xpData = await this._appliquerExperience(rollData.rolled, rollData.selectedCarac.label, rollData.competence);
|
||||
if (!xpData) {
|
||||
return;
|
||||
}
|
||||
if (display) {
|
||||
if (xpData && display) {
|
||||
let message = {
|
||||
whisher: ChatUtility.getWhisperRecipientsAndGMs(this.name),
|
||||
content: await renderTemplate(`systems/foundryvtt-reve-de-dragon/templates/chat-actor-gain-xp.html`, xpData)
|
||||
@ -2168,7 +2165,7 @@ export class RdDActor extends Actor {
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
async _appliquerAppelMoral(rollData, display = true) {
|
||||
async _appliquerAppelMoral(rollData) {
|
||||
if (!this.isPersonnage()) return;
|
||||
if (!rollData.useMoral) return;
|
||||
if (rollData.rolled.isEchec ||
|
||||
|
Loading…
Reference in New Issue
Block a user