到IronWall
This commit is contained in:
@@ -30,7 +30,7 @@ namespace Continentis.Mods.Basic.Cards
|
||||
|
||||
private void SelectEffect(CardInstance card)
|
||||
{
|
||||
user.deckSubmodule.DiscardCard(card);
|
||||
CommandQueueManager.Instance.AddCommand(user.deckSubmodule.DiscardCard(card), new CommandContext());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,16 +1,25 @@
|
||||
using System.Collections.Generic;
|
||||
using Continentis.MainGame.Card;
|
||||
using Continentis.MainGame.Character;
|
||||
using Continentis.MainGame.Commands;
|
||||
using Continentis.Mods.Basic.Buffs;
|
||||
using SLSFramework.General;
|
||||
using UnityEngine;
|
||||
|
||||
public class IronWall : MonoBehaviour
|
||||
namespace Continentis.Mods.Basic.Cards
|
||||
{
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start()
|
||||
public class IronWall : CardLogicBase
|
||||
{
|
||||
|
||||
}
|
||||
protected override CommandBase PlayEffect(List<CharacterBase> targetList)
|
||||
{
|
||||
CommandGroup mainGroup = new CommandGroup(ExecutionMode.Sequential,
|
||||
new Cmd_PlayAnimation(user.characterView, "Skill"),
|
||||
new Cmd_Function(() =>
|
||||
{
|
||||
CreateCharacterBuff<Withstand>(GetAttribute("BuffCount_Withstand")).Apply(user, user, this);
|
||||
}));
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
return mainGroup;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
16
Assets/Mods/Basic/Cards/Scripts/Knight/UtmostStrike.cs
Normal file
16
Assets/Mods/Basic/Cards/Scripts/Knight/UtmostStrike.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class UtmostStrike : MonoBehaviour
|
||||
{
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9299438b564ba4a4aa59e98ea7d83c9d
|
||||
@@ -35,7 +35,7 @@ namespace Continentis.Mods.Basic.Cards
|
||||
|
||||
public void SelectEffect(CardInstance card)
|
||||
{
|
||||
card.deck.ExhaustCard(card);
|
||||
CommandQueueManager.Instance.AddCommand(card.deck.ExhaustCard(card));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -20,7 +20,7 @@ namespace Continentis.Mods.Basic.Cards
|
||||
{
|
||||
if (handPile.Filtered(CardFilter).TryGetRandom(out CardInstance randomCard))
|
||||
{
|
||||
user.deckSubmodule.ExhaustCard(randomCard);
|
||||
CommandQueueManager.Instance.AddCommand(user.deckSubmodule.ExhaustCard(randomCard));
|
||||
}
|
||||
}
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user