mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-08-01 16:37:44 -07:00
minor bug fix
This commit is contained in:
@@ -164,6 +164,12 @@ void AbstractCardItem::setName(const QString &_name)
|
||||
update();
|
||||
}
|
||||
|
||||
void AbstractCardItem::setHovered(bool _hovered)
|
||||
{
|
||||
isHovered = _hovered;
|
||||
update();
|
||||
}
|
||||
|
||||
void AbstractCardItem::setColor(const QString &_color)
|
||||
{
|
||||
color = _color;
|
||||
|
||||
@@ -41,6 +41,7 @@ public:
|
||||
CardInfo *getInfo() const { return info; }
|
||||
QString getName() const { return name; }
|
||||
void setName(const QString &_name = QString());
|
||||
void setHovered(bool _hovered);
|
||||
QString getColor() const { return color; }
|
||||
void setColor(const QString &_color);
|
||||
bool getTapped() const { return tapped; }
|
||||
|
||||
@@ -794,8 +794,10 @@ void Player::eventMoveCard(Event_MoveCard *event)
|
||||
|
||||
card->setId(event->getNewCardId());
|
||||
card->setFaceDown(event->getFaceDown());
|
||||
if (startZone != targetZone)
|
||||
if (startZone != targetZone) {
|
||||
card->setBeingPointedAt(false);
|
||||
card->setHovered(false);
|
||||
}
|
||||
|
||||
// The log event has to be sent before the card is added to the target zone
|
||||
// because the addCard function can modify the card object.
|
||||
|
||||
Reference in New Issue
Block a user