Skip to content

Commit

Permalink
[MIRROR] [NO GBP] Fixes blocking tackles forcing people to be stunned…
Browse files Browse the repository at this point in the history
… when they shouldn't be (both tackler and potentially blocker) [MDB IGNORE] (#25398) (#942)

* [NO GBP] Fixes blocking tackles forcing people to be stunned when they shouldn't be (both tackler and potentially blocker) (#80075)

## About The Pull Request

Fixes tgstation/tgstation#80047

## Why It's Good For The Game

This shouldn't be happen and it's my fault, oops.

## Changelog
:cl:
fix: Blocking a tackler no longer causes things to go haywire and stun
the tackler/the tackle victim.
/:cl:

* [NO GBP] Fixes blocking tackles forcing people to be stunned when they shouldn't be (both tackler and potentially blocker)

---------

Co-authored-by: SkyratBot <[email protected]>
Co-authored-by: necromanceranne <[email protected]>
  • Loading branch information
3 people authored Dec 3, 2023
1 parent e285dcf commit 1dfaa02
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions code/datums/components/tackle.dm
Original file line number Diff line number Diff line change
Expand Up @@ -154,15 +154,17 @@
var/mob/living/carbon/target = hit
var/tackle_word = isfeline(user) ? "pounce" : "tackle" //If cat, "pounce" instead of "tackle". // SKYRAT EDIT - FELINE TRAITS - ORIGINAL : var/tackle_word = isfelinid(user) ? "pounce" : "tackle"

var/roll = rollTackle(target)
tackling = FALSE
tackle.gentle = TRUE

if(target.check_block(user, 0, user.name, attack_type = LEAP_ATTACK))
user.visible_message(span_danger("[user]'s tackle is blocked by [target], softening the effect!"), span_userdanger("Your tackle is blocked by [target], softening the effect!"), ignored_mobs = target)
to_chat(target, span_userdanger("[target] blocks [user]'s tackle attempt, softening the effect!"))
neutral_outcome(user, target, tackle_word) //Forces a neutral outcome so you're not screwed too much from being blocked while tackling
return
return COMPONENT_MOVABLE_IMPACT_FLIP_HITPUSH


var/roll = rollTackle(target)
tackling = FALSE
tackle.gentle = TRUE

switch(roll)
if(-INFINITY to -1)
Expand Down

0 comments on commit 1dfaa02

Please sign in to comment.