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
0c24f48a
Commit
0c24f48a
authored
Jun 22, 2015
by
ctrlaltca
Browse files
Merge pull request #1145 from ZeldaZach/fix_182
Fix Moved From Error
parents
2415ba26
045da305
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/messagelogwidget.cpp
View file @
0c24f48a
...
...
@@ -224,31 +224,31 @@ QPair<QString, QString> MessageLogWidget::getFromStr(CardZone *zone, QString car
else
if
(
startName
==
"hand"
)
fromStr
=
isFemale
(
zone
->
getPlayer
())
?
tr
(
" from her hand"
)
:
tr
(
" from his hand"
);
else
if
(
startName
==
"deck"
)
{
if
(
position
>=
zone
->
getCards
().
size
()
-
1
)
{
if
(
position
==
0
)
{
if
(
cardName
.
isEmpty
())
{
if
(
ownerChange
)
cardName
=
tr
(
"the
bot
to
m
card of %1's library"
).
arg
(
zone
->
getPlayer
()
->
getName
());
cardName
=
tr
(
"the to
p
card of %1's library"
).
arg
(
zone
->
getPlayer
()
->
getName
());
else
cardName
=
isFemale
(
zone
->
getPlayer
())
?
tr
(
"the
bot
to
m
card of her library"
)
:
tr
(
"the
bot
to
m
card of his library"
);
cardName
=
isFemale
(
zone
->
getPlayer
())
?
tr
(
"the to
p
card of her library"
)
:
tr
(
"the to
p
card of his library"
);
cardNameContainsStartZone
=
true
;
}
else
{
if
(
ownerChange
)
fromStr
=
tr
(
" from the
bot
to
m
of %1's library"
).
arg
(
zone
->
getPlayer
()
->
getName
());
fromStr
=
tr
(
" from the to
p
of %1's library"
).
arg
(
zone
->
getPlayer
()
->
getName
());
else
fromStr
=
isFemale
(
zone
->
getPlayer
())
?
tr
(
" from the
bot
to
m
of her library"
)
:
tr
(
" from the
bot
to
m
of his library"
);
fromStr
=
isFemale
(
zone
->
getPlayer
())
?
tr
(
" from the to
p
of her library"
)
:
tr
(
" from the to
p
of his library"
);
}
}
else
if
(
position
=
=
0
)
{
}
else
if
(
position
>
=
zone
->
getCards
().
size
()
-
1
)
{
if
(
cardName
.
isEmpty
())
{
if
(
ownerChange
)
cardName
=
tr
(
"the to
p
card of %1's library"
).
arg
(
zone
->
getPlayer
()
->
getName
());
cardName
=
tr
(
"the
bot
to
m
card of %1's library"
).
arg
(
zone
->
getPlayer
()
->
getName
());
else
cardName
=
isFemale
(
zone
->
getPlayer
())
?
tr
(
"the to
p
card of her library"
)
:
tr
(
"the to
p
card of his library"
);
cardName
=
isFemale
(
zone
->
getPlayer
())
?
tr
(
"the
bot
to
m
card of her library"
)
:
tr
(
"the
bot
to
m
card of his library"
);
cardNameContainsStartZone
=
true
;
}
else
{
if
(
ownerChange
)
fromStr
=
tr
(
" from the to
p
of %1's library"
).
arg
(
zone
->
getPlayer
()
->
getName
());
fromStr
=
tr
(
" from the
bot
to
m
of %1's library"
).
arg
(
zone
->
getPlayer
()
->
getName
());
else
fromStr
=
isFemale
(
zone
->
getPlayer
())
?
tr
(
" from the to
p
of her library"
)
:
tr
(
" from the to
p
of his library"
);
fromStr
=
isFemale
(
zone
->
getPlayer
())
?
tr
(
" from the
bot
to
m
of her library"
)
:
tr
(
" from the
bot
to
m
of his library"
);
}
}
else
{
if
(
ownerChange
)
...
...
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