@@ -726,8 +726,13 @@ export function initConfig() {
726
726
}
727
727
728
728
get visible ( ) {
729
- if ( ! this . _isWeaponSet || this . _isPrimary ) return super . visible ;
730
- return super . visible && this . item ?. system ?. type ?. value !== "shield" ;
729
+ if ( ! this . _isWeaponSet ) return super . visible ;
730
+ const isReaction = this . parent instanceof DND5eReactionActionPanel ;
731
+ const isMelee = this . item ?. system ?. actionType === "mwak" ;
732
+ if ( isReaction && ! isMelee ) return false ;
733
+ if ( this . _isPrimary ) return super . visible ;
734
+ if ( this . item ?. system ?. type ?. value === "shield" ) return false ;
735
+ return super . visible ;
731
736
}
732
737
733
738
async getTooltipData ( ) {
@@ -998,7 +1003,7 @@ export function initConfig() {
998
1003
}
999
1004
1000
1005
get movementMax ( ) {
1001
- if ( ! this . actor ) return 0 ;
1006
+ if ( ! this . actor ) return 0 ;
1002
1007
return this . actor . system . attributes . movement [ this . movementMode ] / canvas . scene . dimensions . distance ;
1003
1008
}
1004
1009
}
@@ -1086,8 +1091,8 @@ export function initConfig() {
1086
1091
1087
1092
const enableMacroPanel = game . settings . get ( MODULE_ID , "macroPanel" ) ;
1088
1093
1089
- const mainPanels = [ DND5eActionActionPanel , DND5eBonusActionPanel , DND5eReactionActionPanel , DND5eFreeActionPanel , DND5eLegActionPanel , DND5eLairActionPanel , DND5eMythicActionPanel ]
1090
- if ( enableMacroPanel ) mainPanels . push ( ARGON . PREFAB . MacroPanel ) ;
1094
+ const mainPanels = [ DND5eActionActionPanel , DND5eBonusActionPanel , DND5eReactionActionPanel , DND5eFreeActionPanel , DND5eLegActionPanel , DND5eLairActionPanel , DND5eMythicActionPanel ] ;
1095
+ if ( enableMacroPanel ) mainPanels . push ( ARGON . PREFAB . MacroPanel ) ;
1091
1096
mainPanels . push ( ARGON . PREFAB . PassTurnPanel ) ;
1092
1097
1093
1098
CoreHUD . definePortraitPanel ( DND5ePortraitPanel ) ;
0 commit comments