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

Commit aedf784

Browse files
authored
[Bugfix] Fixed an issue that caused false murders (#388)
properly reset protectedByGuardian after ShowFailedMurder
1 parent eafa68f commit aedf784

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hooks/PlayerControl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ void dPlayerControl_MurderPlayer(PlayerControl* __this, PlayerControl* target, M
273273
|| localData->fields.Role->fields.Role == RoleTypes__Enum::GuardianAngel)
274274
break; // AmAngel
275275
PlayerControl_ShowFailedMurder(target, nullptr);
276+
target->fields.protectedByGuardian = true;
276277
} while (false);
277278
PlayerControl_MurderPlayer(__this, target, method);
278279
}

0 commit comments

Comments
 (0)