Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
[#258] disable kill when player is protected by angel guardian
Browse files Browse the repository at this point in the history
  • Loading branch information
v0idp committed Dec 17, 2021
1 parent 4668a9e commit 288596d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion gui/tabs/players_tab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ namespace PlayersTab {
}

if (IsInGame() && PlayerIsImpostor(GetPlayerData(*Game::pLocalPlayer)) && !State.selectedPlayer.get_PlayerData()->fields.IsDead
&& !GetPlayerData(*Game::pLocalPlayer)->fields.IsDead && ((*Game::pLocalPlayer)->fields.killTimer <= 0.0f))
&& !GetPlayerData(*Game::pLocalPlayer)->fields.IsDead && ((*Game::pLocalPlayer)->fields.killTimer <= 0.0f)
&& !State.selectedPlayer.get_PlayerControl()->fields.protectedByGuardian)
{
if (ImGui::Button("Kill Player"))
{
Expand Down
4 changes: 2 additions & 2 deletions user/gitparams.h
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#define GIT_CUR_COMMIT dd02efaa502cf8d64c81bf179ebcdacdbc937f2a
#define GIT_BRANCH main
#define GIT_CUR_COMMIT 4668a9eb2a178a5b4884eadbda78508c8ce3bb19
#define GIT_BRANCH feature/check_protected_player

0 comments on commit 288596d

Please sign in to comment.