Skip to content

Commit

Permalink
bugfix: wrong check for martial arts usability. (#3694)
Browse files Browse the repository at this point in the history
  • Loading branch information
Daeberdir authored Oct 17, 2023
1 parent ef1b858 commit d4ced4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/martial_arts/martial.dm
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
return TRUE

/datum/martial_art/proc/attack_reaction(var/mob/living/carbon/human/defender, var/mob/living/carbon/human/attacker, var/obj/item/I, var/visible_message, var/self_message)
if(can_use(src) && defender.in_throw_mode && !defender.incapacitated(FALSE, TRUE))
if(can_use(defender) && defender.in_throw_mode && !defender.incapacitated(FALSE, TRUE))
if(prob(block_chance))
if(visible_message || self_message)
defender.visible_message(visible_message, self_message)
Expand Down

0 comments on commit d4ced4b

Please sign in to comment.