From e3c5ce86acc007f677823ccd8da0ca992b4b49bd Mon Sep 17 00:00:00 2001 From: ebbit1q Date: Wed, 19 Nov 2025 15:34:21 +0100 Subject: [PATCH] use new subphase definition --- cockatrice/src/game/board/card_item.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cockatrice/src/game/board/card_item.cpp b/cockatrice/src/game/board/card_item.cpp index 90107abe9..e786b5329 100644 --- a/cockatrice/src/game/board/card_item.cpp +++ b/cockatrice/src/game/board/card_item.cpp @@ -3,6 +3,7 @@ #include "../../client/settings/cache_settings.h" #include "../../interface/widgets/tabs/tab_game.h" #include "../game_scene.h" +#include "../phase.h" #include "../player/player.h" #include "../zones/card_zone.h" #include "../zones/logic/view_zone_logic.h" @@ -280,7 +281,7 @@ void CardItem::drawArrow(const QColor &arrowColor) int phase = 0; // 0 means to not set the phase if (SettingsCache::instance().getDoNotDeleteArrowsInSubPhases()) { int currentPhase = game->getGameState()->getCurrentPhase(); - phase = currentPhase + 4; + phase = Phases::getLastSubphase(currentPhase) + 1; } ArrowDragItem *arrow = new ArrowDragItem(arrowOwner, this, arrowColor, phase); scene()->addItem(arrow);