彻底修好了
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Continentis.MainGame.Character;
|
||||
using Continentis.MainGame.Combat;
|
||||
using Continentis.MainGame.UI;
|
||||
@@ -246,23 +247,22 @@ namespace Continentis.MainGame.Card
|
||||
return;
|
||||
}
|
||||
|
||||
if (!validTargets.Contains(hoveringCharacter))
|
||||
{
|
||||
// 当前鼠标悬停的目标不在有效目标列表中
|
||||
return;
|
||||
}
|
||||
|
||||
if (!cardLogic.HasKeyword("TargetSelf"))
|
||||
{
|
||||
|
||||
if (!validTargets.Contains(hoveringCharacter))
|
||||
{
|
||||
// 当前鼠标悬停的目标不在有效目标列表中
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// 根据目标类型,打出卡牌
|
||||
if (cardLogic.attributeSubmodule.targetCount == 1)
|
||||
{
|
||||
if (hoveringCharacter != null)
|
||||
if (hoveringCharacter != null && validTargets.Contains(hoveringCharacter))
|
||||
{
|
||||
if (!cardLogic.Play(new List<CharacterBase>() { CombatUIManager.Instance.hoveringCharacterView.character }))
|
||||
if (!cardLogic.Play(new List<CharacterBase>() { hoveringCharacter }))
|
||||
{
|
||||
cardLogic.eventSubmodule.onUntargeting();
|
||||
cardLogic.contentSubmodule.dirtyMark = true;
|
||||
|
||||
Reference in New Issue
Block a user