From 5f60ff9ca1fe488e2a945910df94a41b692508cf Mon Sep 17 00:00:00 2001 From: 2200151533 <2200151533@qq.com> Date: Tue, 30 Jan 2024 13:35:17 +0800 Subject: [PATCH] fixed boss button --- src/Menu.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/Menu.cpp b/src/Menu.cpp index 702ff1c..60147da 100644 --- a/src/Menu.cpp +++ b/src/Menu.cpp @@ -716,7 +716,19 @@ namespace DX11_Base if (ImGui::Button(GetAsyncKeyState(VK_LSHIFT) ? "-99%" : "Kill")) Damage(Character, GetAsyncKeyState(VK_LSHIFT) ? (Character->CharacterParameterComponent->GetHP().Value - 1) / 1000 : 99999999999); } - + if (Actor->IsA(SDK::APalPlayerCharacter::StaticClass())) + { + ImGui::SameLine(); + if (ImGui::Button("Boss")) + { + if (Config.GetPalPlayerController) + { + + Config.GetPalPlayerController()->Transmitter->BossBattle->RequestBossBattleEntry_ToServer(SDK::EPalBossType::ElectricBoss,(SDK::APalPlayerCharacter*)Character); + Config.GetPalPlayerController()->Transmitter->BossBattle->RequestBossBattleStart_ToServer(SDK::EPalBossType::ElectricBoss, (SDK::APalPlayerCharacter*)Character); + } + } + } if (Actor->IsA(SDK::APalPlayerCharacter::StaticClass())) { ImGui::SameLine(); if (ImGui::Button("Join Guild")) {