Skip to content

Commit

Permalink
Merge pull request CleverRaven#41705 from Fris0uman/somehealing
Browse files Browse the repository at this point in the history
Fix Unexpected msg
  • Loading branch information
ZhilkinSerg authored Jun 30, 2020
2 parents ccc0313 + 8602ef8 commit 3ed088f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/character.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7687,8 +7687,10 @@ bool Character::invoke_item( item *used, const std::string &method )

bool Character::invoke_item( item *used, const std::string &method, const tripoint &pt )
{
if( !has_enough_charges( *used, true ) || ( used->is_medication() &&
!can_use_heal_item( *used ) ) ) {
if( !has_enough_charges( *used, true ) ) {
return false;
}
if( used->is_medication() && !can_use_heal_item( *used ) ) {
add_msg_if_player( m_bad, _( "Your biology is not compatible with that healing item." ) );
return false;
}
Expand Down

0 comments on commit 3ed088f

Please sign in to comment.