Skip to content

Commit

Permalink
[Bugfix] Fixed an issue that caused false murders (#388)
Browse files Browse the repository at this point in the history
properly reset protectedByGuardian after ShowFailedMurder
  • Loading branch information
cddjr committed Jun 30, 2022
1 parent eafa68f commit aedf784
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hooks/PlayerControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ void dPlayerControl_MurderPlayer(PlayerControl* __this, PlayerControl* target, M
|| localData->fields.Role->fields.Role == RoleTypes__Enum::GuardianAngel)
break; // AmAngel
PlayerControl_ShowFailedMurder(target, nullptr);
target->fields.protectedByGuardian = true;
} while (false);
PlayerControl_MurderPlayer(__this, target, method);
}
Expand Down

0 comments on commit aedf784

Please sign in to comment.