Fix #21 Effect for actors

This commit is contained in:
2022-09-25 15:27:58 +02:00
parent f048408aa1
commit 262bd3b480
2 changed files with 17 additions and 0 deletions

View File

@ -1647,11 +1647,13 @@ export class PegasusActor extends Actor {
ui.notifications.warn("MR not added to Melee Damage due to Full Stop.")
} else {
rollData.statVehicle = vehicle.system.statistics.mr
rollData.vehicleKey = "mr"
}
this.addVehicleWeapons(rollData, vehicle)
}
if (subKey == "ranged-atk") {
rollData.statVehicle = vehicle.system.statistics.fc
rollData.vehicleKey = "fc"
}
if (subKey == "ranged-dmg") {
this.addVehicleWeapons(rollData, vehicle)
@ -1661,8 +1663,10 @@ export class PegasusActor extends Actor {
ui.notifications.warn("MAN not added to Defense due to Full Stop.")
} else {
rollData.statVehicle = vehicle.system.statistics.man
rollData.vehicleKey = "man"
}
}
vehicle.addEffects(rollData, false, false, false)
//this.addVehiculeHindrances(rollData.effectsList, vehicle)
//this.addVehicleBonus(rollData, vehicle)
}