Skip to content

[Bug] 可选的次要资源消耗规则未正确应用(重放/免费/自动打出) #67

Description

@iouter

模块范围

Public API(公开 API)

严重程度

Broken feature(功能不可用)

发生了什么?

卡牌均带有可选的次要资源消耗。
A. 卡牌带有重放,成功扣费后,只有第一次打出能执行额外效果,后续重放的都不会再执行额外效果。
B. 卡牌被设为免费,即不会扣费,也不会执行额外效果。
C. 卡牌被自动打出,如果不是类似于瓦库的自动打出(即在AutoPlay之前先SpendResources()),既不会扣费,也不会执行额外效果。

复现步骤

A. 打出一张带有可选的次要资源消耗,并且带有重放的卡牌。
B. 打出一张带有可选的次要资源消耗,并且被设为免费(card.SetToFree)的卡牌。
C. 自动打出一张带有可选的次要资源消耗的卡牌。

期望行为

A. 打出重放卡牌后,成功扣费(或不需要扣费),就每次重放都触发额外效果。
B. 打出免费卡牌后,不扣费,并触发额外效果。
C. 一般的自动打出,免费触发额外效果。瓦库的自动打出,则根据是否扣费触发额外效果。

日志 / 堆栈

RitsuLib 版本

0.4.36

运行环境

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/apiPublic API, contracts, or compatibility surface.priority/p1High priority regression or high-impact work.severity/brokenA feature path is effectively unusable.status/confirmedConfirmed and actionable.type/bugDefect or incorrect behavior in RitsuLib.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions