到IronWall
This commit is contained in:
@@ -232,15 +232,21 @@ namespace Continentis.MainGame.Card
|
||||
|
||||
protected virtual void AfterPlayEffect(List<CharacterBase> targetList)
|
||||
{
|
||||
if (contentSubmodule.cardType == CardType.Power)
|
||||
{
|
||||
CommandQueueManager.Instance.AddCommand(user.deckSubmodule.UsePowerCard(cardInstance));
|
||||
return;
|
||||
}
|
||||
|
||||
if (user is PlayerHero playerHero)
|
||||
{
|
||||
if (HasKeyword("Exhaust"))
|
||||
{
|
||||
playerHero.deckSubmodule.ExhaustCard(cardInstance);
|
||||
CommandQueueManager.Instance.AddCommand(playerHero.deckSubmodule.ExhaustCard(cardInstance));
|
||||
}
|
||||
else if(!HasKeyword("Reuse"))
|
||||
{
|
||||
playerHero.deckSubmodule.DiscardCard(cardInstance);
|
||||
CommandQueueManager.Instance.AddCommand(playerHero.deckSubmodule.DiscardCard(cardInstance));
|
||||
CommandQueueManager.Instance.AddCommand(new Cmd_Function(() =>
|
||||
{
|
||||
if (handCardView != null)
|
||||
@@ -254,7 +260,7 @@ namespace Continentis.MainGame.Card
|
||||
{
|
||||
if (HasKeyword("Exhaust"))
|
||||
{
|
||||
npc.deckSubmodule.ExhaustCard(cardInstance);
|
||||
CommandQueueManager.Instance.AddCommand(npc.deckSubmodule.ExhaustCard(cardInstance));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user