From bc687091520c8a1bf1f3d19dcddb4d80e1ea42c5 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sun, 8 Sep 2024 21:14:34 -0700 Subject: save primed for losing streak bonus state if plugin is unloaded --- Malmstone/Addons/PvPMatchAddon.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Malmstone/Addons/PvPMatchAddon.cs') diff --git a/Malmstone/Addons/PvPMatchAddon.cs b/Malmstone/Addons/PvPMatchAddon.cs index 41501e3..6086754 100644 --- a/Malmstone/Addons/PvPMatchAddon.cs +++ b/Malmstone/Addons/PvPMatchAddon.cs @@ -153,6 +153,17 @@ namespace Malmstone.Addons { Plugin.Chat.PrintError("[Malmstone Calculator] Unable to get current Frontline match results"); } + if(Plugin.PvPService.ConsecutiveThirdPlaceFrontline >= 1 && Plugin.Configuration.SavedFrontlineRewardBonus == 0) + { + Plugin.Logger.Debug("Primed For Buff! Next 3rd place will trigger losing streak bonus"); + Plugin.Configuration.IsPrimedForBuff = true; + Plugin.Configuration.Save(); + } + else + { + Plugin.Configuration.IsPrimedForBuff = false; + Plugin.Configuration.Save(); + } Plugin.PvPService.UpdateFrontlineResultCache(); } -- cgit v1.2.3