Fix #90 MR management with vehicles

This commit is contained in:
2022-10-05 09:58:07 +02:00
parent 5a062cc94e
commit c2831e4ccd
3 changed files with 27 additions and 8 deletions

View File

@@ -1074,8 +1074,9 @@ export class PegasusUtility {
/* -------------------------------------------- */
static checkIsVehicleCrew(actorId) {
let vehicles = game.actors.filter( actor=> actor.type =="vehicle") || []
let vehicles = game.actors.filter( actor=> actor.type == "vehicle") || []
for(let vehicle of vehicles) {
console.log("Checking", vehicle.name)
if ( vehicle.inCrew(actorId) ) {
return vehicle
}