SpiritGuardian CounterAttack has bug
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user