Skip to content

Commit

Permalink
merge fix №9000
Browse files Browse the repository at this point in the history
  • Loading branch information
LiquidPotroh committed Apr 10, 2024
1 parent a7bf349 commit 9612999
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
1 change: 1 addition & 0 deletions code/__DEFINES/traits/sources.dm
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,5 @@
#define IMPLANT_JUMP_BOOTS_TRAIT "implant_jump_boots_trait"
#define SPELL_LEAP_TRAIT "spell_leap_trait"
#define SPELL_LUNGE_TRAIT "spell_lunge_trait"
#define FORCE_GRAB_TRAIT "force_grab_trait"

2 changes: 1 addition & 1 deletion code/game/objects/items/weapons/twohanded.dm
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@

/obj/item/twohanded/dualsaber/equipped(mob/user, slot)
var/datum/component/two_handed/two_handed
if((slot == slot_r_hand || slot == slot_l_hand) && active)
if((slot == SLOT_HUD_RIGHT_HAND || slot == SLOT_HUD_LEFT_HAND) && active)
two_handed = GetComponent(/datum/component/two_handed)
two_handed.require_twohands = TRUE
. = ..()
Expand Down
11 changes: 7 additions & 4 deletions code/modules/martial_arts/theforce.dm
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,13 @@

if(INTENT_GRAB)
var/mob/living/carbon/human/victim = A
if(istype(victim) && get_dist(owner, victim) <= 4)
var/obj/item/grab/force/G = victim.grabbedby(owner, grab_type = /obj/item/grab/force)
G.state = GRAB_PASSIVE
victim.LoseBreath(10 SECONDS)
if(istype(victim))
if(get_dist(owner, victim) <= 4)
var/obj/item/grab/force/G = victim.grabbedby(owner, grab_type = /obj/item/grab/force)
G.state = GRAB_PASSIVE
victim.LoseBreath(10 SECONDS)
else
to_chat(owner, span_danger("You can't reach that target!"))

if(INTENT_HARM)
if(!force_lightning_spell.cooldown_handler.is_on_cooldown())
Expand Down
6 changes: 3 additions & 3 deletions code/modules/mob/mob_grab.dm
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@

/obj/item/grab/force/New(mob/user, mob/victim)
..()
affecting.flying = TRUE
ADD_TRAIT(affecting, TRAIT_MOVE_FLYING, FORCE_GRAB_TRAIT)
assailant.canmove = FALSE

/obj/item/grab/force/process()
Expand All @@ -524,7 +524,7 @@
return FALSE
if(world.time < (last_upgrade + UPGRADE_COOLDOWN))
return FALSE
if(assailant.lying)
if(assailant.lying_angle)
qdel(src)
return FALSE
return TRUE
Expand All @@ -545,7 +545,7 @@
return affecting

/obj/item/grab/Destroy()
affecting.flying = FALSE
REMOVE_TRAIT(affecting, TRAIT_MOVE_FLYING, FORCE_GRAB_TRAIT)
assailant.canmove = TRUE
return ..()

Expand Down

0 comments on commit 9612999

Please sign in to comment.