diff options
| author | Pinapelz <yukais@pinapelz.com> | 2024-09-08 21:14:34 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2024-09-08 21:14:34 -0700 |
| commit | bc687091520c8a1bf1f3d19dcddb4d80e1ea42c5 (patch) | |
| tree | 58f60a9db3f1b32b9dab606fbba59d23ca60dd26 /Malmstone/Addons/PvPMatchAddon.cs | |
| parent | 20598fbb7be6a73364661a4fd8e92ad6d242234f (diff) | |
save primed for losing streak bonus state if plugin is unloaded
Diffstat (limited to 'Malmstone/Addons/PvPMatchAddon.cs')
| -rw-r--r-- | Malmstone/Addons/PvPMatchAddon.cs | 11 |
1 files changed, 11 insertions, 0 deletions
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(); } |
