Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes basic mobs targeting ventcrawling/jaunting mobs #5648

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Absolucy
Copy link
Member

@Absolucy Absolucy commented Feb 25, 2025

About The Pull Request

Fixes #4873

This makes it so basic /datum/targeting_strategy/basic won't consider any targets with TRAIT_MOVE_VENTCRAWLING or TRAIT_MAGICALLY_PHASED to be valid targets - and thus, won't attack them.

I also did some slight code cleanup.

The code is not modularized bc I will port this upstream if it works (I don't see any reason why it wouldn't either)

Also ports tgstation/tgstation#81804.

Why It's Good For The Game

bugfix good

Changelog

🆑
fix: AI-controlled basic mobs will no longer somehow attack people who are ventcrawling or jaunting.
fix: (Hatterhat) Basic mobs no longer have the (unintended) ability to shoot out of containers, like bluespace body bags.
/:cl:

Hatterhat and others added 4 commits February 24, 2025 23:29
## About The Pull Request
see title - changes an isturf check to an !ismob check for an attacking
basic mob's loc in can_attack(), as previously this allowed mobs to
shoot from inside containers

## Why It's Good For The Game

![image](https://github.com/tgstation/tgstation/assets/31829017/ffe03955-78f2-4e6e-b15c-9fdf6d85d588)
## Changelog

:cl:
fix: Basic mobs no longer have the (unintended) ability to shoot out of
containers, like bluespace body bags.
/:cl:

---------

Co-authored-by: Hatterhat <Hatterhat@users.noreply.github.com>
Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix fix da bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ai-controlled basic mobs can attack people inside of vents or jaunting
2 participants