Merge pull request #3738 from tool4ever/lastchapter

Fix LastChapter logic
This commit is contained in:
kevlahnota
2023-09-06 14:28:08 +08:00
committed by GitHub
4 changed files with 3 additions and 4 deletions

View File

@@ -1801,7 +1801,7 @@ public class CardFactoryUtil {
for (int i = idx; i <= skipId; i++) {
SpellAbility sa = AbilityFactory.getAbility(card, ab);
sa.setChapter(i);
sa.setLastChapter(idx == abs.size());
sa.setLastChapter(i == abs.size());
StringBuilder trigStr = new StringBuilder("Mode$ CounterAdded | ValidCard$ Card.Self | TriggerZones$ Battlefield");
trigStr.append("| Chapter$ ").append(i).append(" | CounterType$ LORE | CounterAmount$ EQ").append(i);