@@ -190,7 +190,8 @@ API_Meta.AttackMaster={offset:Number.MAX_SAFE_INTEGER,lineCount:-1};
190
190
* Allow filterWeapons() to filter items other than weapons from tables.
191
191
* Improve finding of ammo rows when inserting ammo. Allow recovery of
192
192
* cursed ammo. Fix the "Death" button on the Other-Actions menu. Fixed
193
- * charged powers for hidden in-hand magic items on attack menu.
193
+ * charged powers for hidden in-hand magic items on attack menu. Fixed
194
+ * taking '-' in-hand in Change Weapon dialog.
194
195
*/
195
196
196
197
var attackMaster = ( function ( ) {
@@ -3054,7 +3055,7 @@ var attackMaster = (function() {
3054
3055
* Build melee weapon attack macro
3055
3056
*/
3056
3057
3057
- var buildMWattkMacros = function ( args , senderId , charCS , tableInfo , mwIndex , backstab = false ) {
3058
+ var buildMWattkMacros = function ( args , senderId , charCS , tableInfo , mwIndex , backstab = false ) { // toLowerCase()
3058
3059
3059
3060
return new Promise ( resolve => {
3060
3061
@@ -5249,7 +5250,7 @@ var attackMaster = (function() {
5249
5250
values [ fields . InHand_column [ 0 ] ] [ fields . InHand_column [ 1 ] ] = c ;
5250
5251
values [ fields . InHand_handedness [ 0 ] ] [ fields . InHand_handedness [ 1 ] ] = handedness ;
5251
5252
values [ fields . InHand_db [ 0 ] ] [ fields . InHand_db [ 1 ] ] = weaponDB ;
5252
- values [ fields . InHand_type [ 0 ] ] [ fields . InHand_type [ 1 ] ] = ( ! item . obj ? weaponSpecs [ 0 ] [ 2 ] : item . obj [ 1 ] . type ) ;
5253
+ values [ fields . InHand_type [ 0 ] ] [ fields . InHand_type [ 1 ] ] = ( ! item || ! item . obj ? weaponSpecs [ 0 ] [ 2 ] : item . obj [ 1 ] . type ) ;
5253
5254
values [ fields . InHand_dancer [ 0 ] ] [ fields . InHand_dancer [ 1 ] ] = weapData . dancer ;
5254
5255
5255
5256
switch ( args [ 0 ] . toUpperCase ( ) ) {
0 commit comments