Update
This commit is contained in:
@@ -170,8 +170,10 @@ namespace Continentis.MainGame.Card
|
||||
/// </summary>
|
||||
/// <param name="targetList">目标列表</param>
|
||||
/// <param name="user">使用者</param>
|
||||
/// <param name="noConsumption">是否不消耗资源</param>
|
||||
/// <param name="willCheckBeforePlay">打出之前是否进行可用性检测</param>
|
||||
public bool Play(List<CharacterBase> targetList, CharacterBase user = null, bool willCheckBeforePlay = true)
|
||||
public bool Play(List<CharacterBase> targetList, CharacterBase user = null,
|
||||
bool willCheckBeforePlay = true, bool noConsumption = false)
|
||||
{
|
||||
if (handCardView != null)
|
||||
{
|
||||
@@ -188,9 +190,12 @@ namespace Continentis.MainGame.Card
|
||||
|
||||
if (!willCheckBeforePlay || CheckBeforePlay())
|
||||
{
|
||||
this.user.ModifyStamina(-GetAttribute("StaminaCost"));
|
||||
this.user.ModifyMana(-GetAttribute("ManaCost"));
|
||||
|
||||
if (!noConsumption)
|
||||
{
|
||||
this.user.ModifyStamina(-GetAttribute("StaminaCost"));
|
||||
this.user.ModifyMana(-GetAttribute("ManaCost"));
|
||||
}
|
||||
|
||||
Debug.Log($"Starting to play card: {contentSubmodule.cardName}");
|
||||
|
||||
CommandQueueManager.Instance.AddCommand(new Cmd_Function(() =>
|
||||
|
||||
Reference in New Issue
Block a user