From ae128271f063b24db31ab8253de0e4d85c0f936c Mon Sep 17 00:00:00 2001 From: ThyWolf Date: Thu, 18 Jan 2024 05:04:22 -0800 Subject: [PATCH] fix Ray of Enfeeblement to be recurrent on activation and turn start --- SolastaUnfinishedBusiness/ChangelogHistory.txt | 1 + SolastaUnfinishedBusiness/Models/FixesContext.cs | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/SolastaUnfinishedBusiness/ChangelogHistory.txt b/SolastaUnfinishedBusiness/ChangelogHistory.txt index 676b47c210..d1d047a36e 100644 --- a/SolastaUnfinishedBusiness/ChangelogHistory.txt +++ b/SolastaUnfinishedBusiness/ChangelogHistory.txt @@ -15,6 +15,7 @@ - fixed main action spells interaction with action switching allowing bonus spells to be cast - fixed Roguish Slayer elimination feature not triggering on magical attacks - fixed vanilla Cloud Kill and Incendiary Cloud spells not triggering on activation +- fixed vanilla Ray of Enfeeblement to be recurrent on activation and turn start 1.5.94.42: diff --git a/SolastaUnfinishedBusiness/Models/FixesContext.cs b/SolastaUnfinishedBusiness/Models/FixesContext.cs index 5f3df783e5..8b5bc3b4db 100644 --- a/SolastaUnfinishedBusiness/Models/FixesContext.cs +++ b/SolastaUnfinishedBusiness/Models/FixesContext.cs @@ -462,6 +462,11 @@ private static void FixMinorSpellIssues() InsectPlague.EffectDescription.EffectForms[0].hasSavingThrow = true; InsectPlague.EffectDescription.EffectForms[0].savingThrowAffinity = EffectSavingThrowType.HalfDamage; + //BUGFIX: Ray of Enfeeblement should be recurrent on activation and turn start + RayOfEnfeeblement.EffectDescription.EffectForms[0].canSaveToCancel = true; + RayOfEnfeeblement.EffectDescription.recurrentEffect = + RecurrentEffect.OnActivation | RecurrentEffect.OnTurnStart; + //BUGFIX: Sorcerers should have Insect Plague at level 5 SpellListSorcerer.SpellsByLevel.FirstOrDefault(x => x.Level == 5)!.Spells.Add(InsectPlague);