Sync effetcts + initiative

This commit is contained in:
2022-01-28 22:14:13 +01:00
parent c302163bef
commit 76b4e39e94
5 changed files with 66 additions and 50 deletions

View File

@ -729,30 +729,6 @@ export class PegasusActor extends Actor {
}
}
/* -------------------------------------------- */
async rollWeapon(weaponId, damage = false) {
let weapon = this.data.items.get(weaponId)
if (weapon) {
weapon = duplicate(weapon)
this.checkAndPrepareWeapon(weapon)
let rollData = this.getCommonRollData(weapon.data.statistic)
rollData.mode = "weapon"
rollData.weapon = weapon
rollData.title = `Weapon : ${weapon.name}`
if (damage) {
rollData.stat = this.getStat(weapon.data.damagestatistic)
rollData.isDamage = true;
rollData.otherDicesLevel = weapon.data.damage
}
this.startRoll(rollData);
} else {
ui.notifications.warn("Weapon not found !", weaponId);
}
}
/* -------------------------------------------- */
async rollPower(powerId) {
let power = this.data.items.get(powerId)