Mass rename getSourceObjectZoneChangeCounter to getStackMomentSourceZCC, un-deprecate and change comment

This commit is contained in:
Steven Knipe 2025-08-26 01:15:04 -07:00
parent f674034cdf
commit 60be7070d6
138 changed files with 188 additions and 203 deletions

View file

@ -615,7 +615,7 @@ public final class CardUtil {
}
public static UUID getExileZoneId(Game game, Ability source, int offset) {
return getExileZoneId(game, source.getSourceId(), source.getSourceObjectZoneChangeCounter() + offset);
return getExileZoneId(game, source.getSourceId(), source.getStackMomentSourceZCC() + offset);
}
public static UUID getExileZoneId(Game game, UUID objectId, int zoneChangeCounter) {
@ -758,7 +758,7 @@ public final class CardUtil {
MageObject sourceObject = game.getObject(source);
if (sourceObject != null) {
title = sourceObject.getIdName()
+ " [" + source.getSourceObjectZoneChangeCounter() + "]"
+ " [" + source.getStackMomentSourceZCC() + "]"
+ (textSuffix == null ? "" : " " + textSuffix);
} else {
title = textSuffix == null ? "" : textSuffix;
@ -1812,7 +1812,7 @@ public final class CardUtil {
*/
public static int getActualSourceObjectZoneChangeCounter(Game game, Ability source) {
// current object zcc, find from source object (it can be permanent or spell on stack)
int zcc = source.getSourceObjectZoneChangeCounter();
int zcc = source.getStackMomentSourceZCC();
if (zcc == 0) {
// if ability is not activated yet then use current object's zcc (example: triggered etb ability checking the kicker conditional)
zcc = game.getState().getZoneChangeCounter(source.getSourceId());