mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 17:14:52 -07:00
Merge b2306505ac into b1fe4c85d3
This commit is contained in:
commit
9260880e26
1 changed files with 6 additions and 0 deletions
|
|
@ -285,6 +285,12 @@ void CardItem::drawArrow(const QColor &arrowColor)
|
||||||
int currentPhase = game->getGameState()->getCurrentPhase();
|
int currentPhase = game->getGameState()->getCurrentPhase();
|
||||||
phase = Phases::getLastSubphase(currentPhase) + 1;
|
phase = Phases::getLastSubphase(currentPhase) + 1;
|
||||||
}
|
}
|
||||||
|
for (ArrowItem *arrowItem : getArrowsFrom()) {
|
||||||
|
if (arrowItem->getTargetItem() == nullptr) {
|
||||||
|
arrowItem->ungrabMouse();
|
||||||
|
arrowItem->delArrow();
|
||||||
|
}
|
||||||
|
}
|
||||||
ArrowDragItem *arrow = new ArrowDragItem(arrowOwner, this, arrowColor, phase);
|
ArrowDragItem *arrow = new ArrowDragItem(arrowOwner, this, arrowColor, phase);
|
||||||
scene()->addItem(arrow);
|
scene()->addItem(arrow);
|
||||||
arrow->grabMouse();
|
arrow->grabMouse();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue