|
@@ -47,8 +47,8 @@ namespace DCGO.CardEffects.BT22
|
|
|
bool IsShoemon(CardSource cardSource)
|
|
bool IsShoemon(CardSource cardSource)
|
|
|
{
|
|
{
|
|
|
return CardEffectCommons.IsExistOnTrash(cardSource)
|
|
return CardEffectCommons.IsExistOnTrash(cardSource)
|
|
|
- && cardSource.EqualsCardName("IsShoemon")
|
|
|
|
|
- && CardEffectCommons.CanPlayAsNewPermanent(cardSource, false, activateClass);
|
|
|
|
|
|
|
+ && cardSource.EqualsCardName("Shoemon")
|
|
|
|
|
+ && CardEffectCommons.CanPlayAsNewPermanent(cardSource, false, activateClass, SelectCardEffect.Root.Trash);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
IEnumerator ActivateCoroutine(Hashtable hashtable)
|
|
IEnumerator ActivateCoroutine(Hashtable hashtable)
|
|
@@ -106,13 +106,13 @@ namespace DCGO.CardEffects.BT22
|
|
|
activateETB: true));
|
|
activateETB: true));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ UnityEngine.Debug.Log($"THEN: {card.Owner.GetBattleAreaDigimons().Any()}, {CardEffectCommons.HasMatchConditionOwnersCardInTrash(card, IsShoemon)}");
|
|
|
if (!card.Owner.GetBattleAreaDigimons().Any() && CardEffectCommons.HasMatchConditionOwnersCardInTrash(card, IsShoemon))
|
|
if (!card.Owner.GetBattleAreaDigimons().Any() && CardEffectCommons.HasMatchConditionOwnersCardInTrash(card, IsShoemon))
|
|
|
{
|
|
{
|
|
|
CardSource selectedTrashCard = null;
|
|
CardSource selectedTrashCard = null;
|
|
|
|
|
|
|
|
#region Select Trash card
|
|
#region Select Trash card
|
|
|
|
|
|
|
|
- int maxCount = Math.Min(1, CardEffectCommons.MatchConditionOwnersCardCountInTrash(card, IsShoemon));
|
|
|
|
|
SelectCardEffect selectCardEffect = GManager.instance.GetComponent<SelectCardEffect>();
|
|
SelectCardEffect selectCardEffect = GManager.instance.GetComponent<SelectCardEffect>();
|
|
|
|
|
|
|
|
selectCardEffect.SetUp(
|
|
selectCardEffect.SetUp(
|
|
@@ -123,7 +123,7 @@ namespace DCGO.CardEffects.BT22
|
|
|
selectCardCoroutine: SelectCardCoroutine,
|
|
selectCardCoroutine: SelectCardCoroutine,
|
|
|
afterSelectCardCoroutine: null,
|
|
afterSelectCardCoroutine: null,
|
|
|
message: "Select 1 [Shoemon] to play",
|
|
message: "Select 1 [Shoemon] to play",
|
|
|
- maxCount: maxCount,
|
|
|
|
|
|
|
+ maxCount: 1,
|
|
|
canEndNotMax: false,
|
|
canEndNotMax: false,
|
|
|
isShowOpponent: true,
|
|
isShowOpponent: true,
|
|
|
mode: SelectCardEffect.Mode.Custom,
|
|
mode: SelectCardEffect.Mode.Custom,
|