Skip to content

Commit

Permalink
Allow no-hands spells even if stunned
Browse files Browse the repository at this point in the history
  • Loading branch information
Salty-Panda committed May 3, 2021
1 parent 7471b45 commit 23fef74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handle_action.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,7 @@ static bool assign_spellcasting( Character &you, spell &sp, bool fake_spell )
return false;
}

if( you.has_effect( effect_stunned ) ) {
if( !sp.has_flag( spell_flag::NO_HANDS ) && you.has_effect( effect_stunned ) ) {
add_msg( game_message_params{ m_bad, gmf_bypass_cooldown },
_( "You can't focus enough to cast spell." ) );
return false;
Expand Down

0 comments on commit 23fef74

Please sign in to comment.