Skip to content

Commit

Permalink
fixes melee attack_vector to properly use the weapon (#58373)
Browse files Browse the repository at this point in the history
Co-authored-by: delari <[email protected]>
  • Loading branch information
delarifert and delari authored Jun 12, 2022
1 parent ab8c2ff commit 781a1fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/melee.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ bool Character::melee_attack_abstract( Creature &t, bool allow_special,

// Failsafe for tec_none
if( technique_id == tec_none ) {
attack_vector = "HANDS";
attack_vector = cur_weapon->is_null() ? "HANDS" : "WEAPON";
} else {
attack_vector = martial_arts_data->get_valid_attack_vector( *this,
technique_id.obj().attack_vectors );
Expand Down

0 comments on commit 781a1fc

Please sign in to comment.