testen Medic

This commit is contained in:
VegaZ
2021-04-05 17:34:21 +02:00
parent 7b739ac09a
commit 43f2b912f4
2 changed files with 4 additions and 2 deletions

View File

@@ -765,9 +765,9 @@ namespace ReallifeGamemode.Server.Events
if (!player.IsLoggedIn()) return; if (!player.IsLoggedIn()) return;
if (player.GetData<bool>("healDecision") == true) if (player.GetData<bool>("healDecision") == true)
{ {
player.SetData<bool>("healDecision", false);
Medic.MakeHealDecision(player, false); Medic.MakeHealDecision(player, false);
player.SetData<bool>("healDecision", false);
} }
if (!player.IsInVehicle) return; if (!player.IsInVehicle) return;

View File

@@ -87,11 +87,13 @@ namespace ReallifeGamemode.Server.Factions.Medic
if(decision == false) if(decision == false)
{ {
activeDecision.dMedic.SendNotification(activeDecision.dTarget.Name + " hat den Heal ~r~abgelehnt",false); activeDecision.dMedic.SendNotification(activeDecision.dTarget.Name + " hat den Heal ~r~abgelehnt",false);
activeDecision.dTarget.SendNotification("Du hast den Heal ~r~abgelehnt", false);
return; return;
} }
else else
{ {
activeDecision.dMedic.SendNotification(activeDecision.dTarget.Name + " hat den Heal ~g~akzeptiert", false); activeDecision.dMedic.SendNotification(activeDecision.dTarget.Name + " hat den Heal ~g~akzeptiert", false);
activeDecision.dTarget.SendNotification("Du hast den Heal ~g~akzeptiert", false);
using var dbContext = new DatabaseContext(); using var dbContext = new DatabaseContext();
{ {
User targetUser = target.GetUser(dbContext); User targetUser = target.GetUser(dbContext);