Skip to content

Commit

Permalink
[MIRROR] Fixes Krav Maga allowing pacifism bypasses. (#965)
Browse files Browse the repository at this point in the history
* Fixes Krav Maga allowing pacifism bypasses. (#81447)

## About The Pull Request

Fixes Krav Maga allowing pacifism bypasses.

## Why It's Good For The Game

Bugfixes are good for my GBP count. Also, pacifism bypasses bad.

## Changelog
:cl: CandleJaxx and Iamgoofball
fix: Fixes Krav Maga allowing pacifism bypasses.
/:cl:

* Fixes Krav Maga allowing pacifism bypasses.

---------

Co-authored-by: Iamgoofball <[email protected]>
  • Loading branch information
2 people authored and StealsThePRs committed Feb 15, 2024
1 parent fcba208 commit bf40cd1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/datums/martial/krav_maga.dm
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@
/datum/martial_art/krav_maga/proc/leg_sweep(mob/living/attacker, mob/living/defender)
if(defender.stat != CONSCIOUS || defender.IsParalyzed())
return MARTIAL_ATTACK_INVALID
if(HAS_TRAIT(attacker, TRAIT_PACIFISM))
return MARTIAL_ATTACK_INVALID // Does 5 damage, so we can't let pacifists leg sweep.
defender.visible_message(
span_warning("[attacker] leg sweeps [defender]!"),
span_userdanger("Your legs are sweeped by [attacker]!"),
Expand Down Expand Up @@ -134,6 +136,8 @@
return MARTIAL_ATTACK_SUCCESS

/datum/martial_art/krav_maga/proc/neck_chop(mob/living/attacker, mob/living/defender)
if(HAS_TRAIT(attacker, TRAIT_PACIFISM))
return MARTIAL_ATTACK_INVALID // Does 10 damage, so we can't let pacifists neck chop.
attacker.do_attack_animation(defender)
defender.visible_message(
span_warning("[attacker] karate chops [defender]'s neck!"),
Expand Down

0 comments on commit bf40cd1

Please sign in to comment.