From 18d093aec884d24c88db780f34de8fe49c4bc0ea Mon Sep 17 00:00:00 2001 From: ThyWolf Date: Sat, 10 Aug 2024 20:14:14 -0700 Subject: [PATCH] change Stop power to use MyExecuteActionPowerNoCost --- .../CustomUI/StopPowerConcentrationProvider.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/SolastaUnfinishedBusiness/CustomUI/StopPowerConcentrationProvider.cs b/SolastaUnfinishedBusiness/CustomUI/StopPowerConcentrationProvider.cs index 35fe1292e1..2e353ff9ec 100644 --- a/SolastaUnfinishedBusiness/CustomUI/StopPowerConcentrationProvider.cs +++ b/SolastaUnfinishedBusiness/CustomUI/StopPowerConcentrationProvider.cs @@ -27,16 +27,13 @@ public void Stop(RulesetCharacter character) } var locationCharacter = GameLocationCharacter.GetFromActor(character); + var usablePower = PowerProvider.Get(StopPower, character); - if (locationCharacter == null) - { - return; - } - +#if false var implementationManager = ServiceRepository.GetService() as RulesetImplementationManager; - var usablePower = PowerProvider.Get(StopPower, character); + var actionParams = new CharacterActionParams(locationCharacter, ActionDefinitions.Id.PowerNoCost) { ActionModifiers = { new ActionModifier() }, @@ -48,5 +45,8 @@ public void Stop(RulesetCharacter character) ServiceRepository.GetService()? .ExecuteAction(actionParams, _ => { }, false); +#endif + + locationCharacter.MyExecuteActionPowerNoCost(usablePower, [locationCharacter]); } }