Skip to content

Commit

Permalink
fix vehicle morale effect issue
Browse files Browse the repository at this point in the history
fix career selector not working in V1 sheet
  • Loading branch information
moo-man committed Oct 4, 2024
1 parent 9e53cfe commit abd699d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/model/actor/vehicle.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export class VehicleModel extends BaseActorModel {

getOtherEffects()
{
return super.getOtherEffects().concat(this.status.morale.getMoraleEffects(this))
return super.getOtherEffects().concat(this.status.morale.getMoraleEffects(this.parent))
}

static migrateData(data)
Expand Down
2 changes: 1 addition & 1 deletion static/templates/actors/character/character-main.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@
{{else}}
<div style = "visibility : hidden" class="item-controls">
{{/if}}
<a data-action="changeCareer" class="item-control">
<a id="add-button" class="item-control add-career" title="{{localize 'SHEET.CreateItem'}}">
<i class="fas fa-plus"></i>
</a>
</div>
Expand Down

0 comments on commit abd699d

Please sign in to comment.