SpiritGuardian CounterAttack has bug

This commit is contained in:
FrazeRIP
2025-11-12 01:20:19 -06:00
parent 52a7c2e00e
commit 92668e1b20
19 changed files with 261 additions and 40 deletions

View File

@@ -2,6 +2,7 @@
using Continentis.MainGame.Card;
using Continentis.MainGame.Character;
using Continentis.MainGame.Commands;
using SLSFramework.General;
using System.Collections.Generic;
@@ -11,7 +12,21 @@ namespace Continentis.Mods.Basic.Cards.Cleric
{
protected override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
{
return base.PlayEffect(targetList);
base.PlayEffect(targetList);
CommandGroup mainGroup = TargetListCommandGroup(targetList,
new Cmd_PlayAnimation(user.characterView, "Skill"),
new Cmd_ParamFunction<CharacterBase>(0.2f, target =>
{
user.AddBlock(GetAttribute("Block"));
}));
mainGroup.AddCommand(new Cmd_Function(() =>
{
this.SetAttribute("Block", this.GetAttribute("Block") + this.GetAttribute("BlockStack"));
}));
return new List<CommandBase> { mainGroup };
}
}
}