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

@@ -43,7 +43,7 @@ MonoBehaviour:
Value: 7
index: 3
isKeyDuplicated: 0
- Key: BlockStadck
- Key: BlockStack
Value: 3
index: 4
isKeyDuplicated: 0

View File

@@ -19,7 +19,7 @@ MonoBehaviour:
cardRarity: 10
cardType: 20
keywords:
- TargetAllies
- Blessing
- TargetSelf
cardSprite: {fileID: 21300000, guid: c7e0489a5e85e65499fcacddb7c1391e, type: 3}
cardLayoutTags: []

View File

@@ -19,8 +19,8 @@ MonoBehaviour:
cardRarity: 10
cardType: 20
keywords:
- Blessing
- TargetSelf
- TargetAllies
cardSprite: {fileID: 21300000, guid: c7e0489a5e85e65499fcacddb7c1391e, type: 3}
cardLayoutTags: []
functionText: Card_Basic_ShieldOfDevotion_FunctionText

View File

@@ -19,7 +19,7 @@ MonoBehaviour:
cardRarity: 10
cardType: 20
keywords:
- TargetAllies
- Blessing
- TargetSelf
cardSprite: {fileID: 21300000, guid: c7e0489a5e85e65499fcacddb7c1391e, type: 3}
cardLayoutTags: []

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 };
}
}
}

View File

@@ -2,8 +2,10 @@
using Continentis.MainGame.Card;
using Continentis.MainGame.Character;
using Continentis.MainGame.Commands;
using SLSFramework.General;
using System.Collections.Generic;
using Unity.VisualScripting;
namespace Continentis.Mods.Basic.Cards.Cleric
{
@@ -11,7 +13,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, "Attack"),
new Cmd_ParamFunction<CharacterBase>(0.2f, target =>
{
user.Attack(target, GetFinalDamage(target));
}));
mainGroup.AddCommand(new Cmd_Function(() =>
{
this.SetAttribute("Damage", this.GetAttribute("Damage") + this.GetAttribute("DamageStack"));
}));
return new List<CommandBase> { mainGroup };
}
}
}

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,13 @@ namespace Continentis.Mods.Basic.Cards.Cleric
{
protected override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
{
return base.PlayEffect(targetList);
CommandGroup mainGroup = TargetListCommandGroup(targetList,
new Cmd_ParamFunction<CharacterBase>(0.01f, target =>
{
CreateCharacterBuff<Buffs.CounterAttack>(GetAttribute("BuffStack")).Apply(target, user, this);
}));
return new List<CommandBase> { mainGroup };
}
}
}