New source found from dndbeyond.com
This commit is contained in:
@@ -385,7 +385,7 @@ class VehiclePane extends React.PureComponent<Props, State> {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!vehicle.isSpelljammer()) {
|
||||
if (!vehicle.isSpelljammer() && !vehicle.isElementalAirship()) {
|
||||
const primaryComponent = vehicle.getPrimaryComponent();
|
||||
if (primaryComponent === null) {
|
||||
return null;
|
||||
@@ -442,6 +442,7 @@ class VehiclePane extends React.PureComponent<Props, State> {
|
||||
}
|
||||
return (
|
||||
<VehicleHealthAdjuster
|
||||
key={`${componentName}${componentNumber}`}
|
||||
hitPointInfo={componentHitPointInfo}
|
||||
onSave={(diff) => this.handleHealthAdjusterSave(diff, component)}
|
||||
heading={`Hit Points (${componentName}${componentNumber})`}
|
||||
@@ -507,7 +508,8 @@ class VehiclePane extends React.PureComponent<Props, State> {
|
||||
const primaryComponentManageType = vehicle.getPrimaryComponentManageType();
|
||||
const enableConditionTracking = vehicle.getEnableConditionTracking();
|
||||
const enableFuelTracking = vehicle.getEnableFuelTracking();
|
||||
const shouldCoalesce = vehicle.isSpelljammer();
|
||||
const shouldCoalesce =
|
||||
vehicle.isSpelljammer() || vehicle.isElementalAirship();
|
||||
|
||||
return (
|
||||
<React.Fragment>
|
||||
@@ -550,7 +552,6 @@ class VehiclePane extends React.PureComponent<Props, State> {
|
||||
|
||||
renderVehicleName = (): React.ReactNode => {
|
||||
const { vehicle } = this.state;
|
||||
const { theme } = this.props;
|
||||
|
||||
if (!vehicle) {
|
||||
return null; //TODO could render a default empty state
|
||||
|
||||
Reference in New Issue
Block a user