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

Fix TNA's dying to roles they shouldnt #1471

Open
wants to merge 5 commits into
base: dev_2.3.0
Choose a base branch
from

Conversation

MargaretTheFool
Copy link
Contributor

https://discord.com/channels/1094344790910455908/1318662488962629632
in a very niche situation, if Penguin is on a ladder while dragging a TNA, the TNA will die because I don't know how the code works for that
everything else should be fixed
Hex Master, AbyssBringer, Kamikaze, and Witch all have the option to kill TNA's every other role does not (defaults to off)
Pirate will still get its win counted but the target wont die if TNA
Bodyguard will ignore the kill
Jailer's execution wont actually kill if TNA

@Tommy-XL Tommy-XL added the Fix bug Something isn't working label Feb 13, 2025
@Tommy-XL Tommy-XL marked this pull request as draft February 14, 2025 17:50
@Tommy-XL Tommy-XL changed the base branch from dev_2.2.0 to dev_2.3.0 February 21, 2025 07:16
penguin cant even drag TNA's because OnCheckMurderAsTarget always returns false
@MargaretTheFool MargaretTheFool marked this pull request as ready for review February 23, 2025 17:58
@@ -189,7 +189,7 @@ private void OnFixedUpdateShocker(PlayerControl player, bool lowLoad, long nowTi
{
foreach (Collider2D collider in shockedRooms)
{
if (collider.IsTouching(player.Collider))
if (collider.IsTouching(player.Collider) && !player.IsTransformedNeutralApocalypse())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not do the check outside of foreach

@@ -234,7 +234,7 @@ private static void OnFixUpdateOthers(PlayerControl player, bool lowLoad, long n
SetDrawPlayerRPC(player, rv_target, true);
NotifyRoles(SpecifySeer: player, SpecifyTarget: rv_target);
ResetCurrentDrawTarget(playerId);
if (IRandom.Instance.Next(1, 100) <= RevolutionistKillProbability.GetInt())
if (IRandom.Instance.Next(1, 100) <= RevolutionistKillProbability.GetInt() && rv_target.IsTransformedNeutralApocalypse())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here should be ! ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants