2026-03-20 11:56:50 -04:00
|
|
|
|
using System.Collections.Generic;
|
2025-10-23 00:49:44 -04:00
|
|
|
|
using Continentis.MainGame.Card;
|
|
|
|
|
|
using Continentis.MainGame.Character;
|
|
|
|
|
|
using Continentis.MainGame.Commands;
|
2026-04-08 04:48:35 -04:00
|
|
|
|
using Continentis.Mods.Basic.Buffs;
|
2025-10-23 00:49:44 -04:00
|
|
|
|
using SLSFramework.General;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Continentis.Mods.Basic.Cards
|
|
|
|
|
|
{
|
2026-04-08 04:48:35 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 石肤术:对使用者施加坚韧 Buff(行动结束后获得格挡)。
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class Stoneskin : CardLogicBase
|
2025-10-23 00:49:44 -04:00
|
|
|
|
{
|
2026-04-08 04:48:35 -04:00
|
|
|
|
private const string BUFF_WITHSTAND_STACK = "Buff_Withstand_Stack";
|
|
|
|
|
|
|
2026-03-20 11:56:50 -04:00
|
|
|
|
public override CommandGroup PlayEffect(List<CharacterBase> targetList)
|
2025-10-23 00:49:44 -04:00
|
|
|
|
{
|
2026-03-20 11:56:50 -04:00
|
|
|
|
return Cmd.Sequential(
|
2025-10-30 04:21:28 -04:00
|
|
|
|
new Cmd_PlayAnimation(user.characterView, "Skill"),
|
2026-04-08 04:48:35 -04:00
|
|
|
|
Cmd.Do(() => CreateCharacterBuff<Withstand>(GetAttribute(BUFF_WITHSTAND_STACK)).Apply(user, user, this))
|
2026-03-20 11:56:50 -04:00
|
|
|
|
);
|
2025-10-23 00:49:44 -04:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-10-24 09:11:22 -04:00
|
|
|
|
}
|