Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
7c6b6818
Commit
7c6b6818
authored
Apr 04, 2015
by
poixen
Browse files
Merge pull request #907 from poixen/right_click_cast
Right click cast
parents
e96e2e4b
20bfb4d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/arrowitem.cpp
View file @
7c6b6818
...
...
@@ -4,6 +4,7 @@
#include
"arrowitem.h"
#include
"playertarget.h"
#include
"carditem.h"
#include
"carddatabase.h"
#include
"cardzone.h"
#include
"player.h"
#include
"settingscache.h"
...
...
@@ -227,7 +228,13 @@ void ArrowDragItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
}
if
(
startZone
->
getName
().
compare
(
"hand"
)
==
0
)
{
startCard
->
playCard
(
false
);
cmd
.
set_start_zone
(
settingsCache
->
getPlayToStack
()
?
"stack"
:
"table"
);
CardInfo
*
ci
=
startCard
->
getInfo
();
if
(((
!
settingsCache
->
getPlayToStack
()
&&
ci
->
getTableRow
()
==
3
)
||
((
settingsCache
->
getPlayToStack
()
&&
ci
->
getTableRow
()
!=
0
)
&&
startCard
->
getZone
()
->
getName
().
toStdString
()
!=
"stack"
)))
cmd
.
set_start_zone
(
"stack"
);
else
cmd
.
set_start_zone
(
settingsCache
->
getPlayToStack
()
?
"stack"
:
"table"
);
}
player
->
sendGameCommand
(
cmd
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment