Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
ygopro-2pick
Commits
425c33a6
Commit
425c33a6
authored
Apr 23, 2013
by
Fluorohydride
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #502 from VanillaSalt/patch64
fix
parents
0e6fc38a
a4b355d9
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
34 additions
and
32 deletions
+34
-32
gframe/duelclient.cpp
gframe/duelclient.cpp
+1
-1
gframe/event_handler.cpp
gframe/event_handler.cpp
+5
-5
gframe/tag_duel.cpp
gframe/tag_duel.cpp
+8
-8
ocgcore/processor.cpp
ocgcore/processor.cpp
+1
-0
script/c32339440.lua
script/c32339440.lua
+2
-2
script/c4068622.lua
script/c4068622.lua
+1
-1
script/c53804307.lua
script/c53804307.lua
+1
-1
script/c68601507.lua
script/c68601507.lua
+3
-2
script/c6930746.lua
script/c6930746.lua
+5
-5
script/c71060915.lua
script/c71060915.lua
+1
-1
script/c72710085.lua
script/c72710085.lua
+2
-1
script/c8594079.lua
script/c8594079.lua
+1
-2
script/c9365703.lua
script/c9365703.lua
+2
-2
script/c94973028.lua
script/c94973028.lua
+1
-1
No files found.
gframe/duelclient.cpp
View file @
425c33a6
...
...
@@ -2316,7 +2316,7 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
unsigned
int
code
=
(
unsigned
int
)
BufferIO
::
ReadInt32
(
pbuf
);
pcard
=
mainGame
->
dField
.
GetCard
(
player
,
LOCATION_DECK
,
mainGame
->
dField
.
deck
[
player
].
size
()
-
1
-
i
);
if
(
!
mainGame
->
dField
.
deck_reversed
||
code
)
pcard
->
SetCode
(
code
);
pcard
->
SetCode
(
code
&
0x7fffffff
);
}
if
(
mainGame
->
dInfo
.
isReplay
&&
mainGame
->
dInfo
.
isReplaySkiping
)
{
for
(
int
i
=
0
;
i
<
count
;
++
i
)
{
...
...
gframe/event_handler.cpp
View file @
425c33a6
...
...
@@ -414,7 +414,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
selectable_cards
.
clear
();
switch
(
command_location
)
{
case
LOCATION_DECK
:
{
for
(
size_t
i
=
deck
[
hovered_controler
].
size
()
-
1
;
i
>=
0
;
--
i
)
for
(
int32
i
=
(
int32
)
deck
[
hovered_controler
].
size
()
-
1
;
i
>=
0
;
--
i
)
selectable_cards
.
push_back
(
deck
[
command_controler
][
i
]);
myswprintf
(
formatBuffer
,
L"%ls(%d)"
,
dataManager
.
GetSysString
(
1000
),
deck
[
command_controler
].
size
());
mainGame
->
wCardSelect
->
setText
(
formatBuffer
);
...
...
@@ -429,21 +429,21 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
break
;
}
case
LOCATION_GRAVE
:
{
for
(
size_t
i
=
grave
[
command_controler
].
size
()
-
1
;
i
>=
0
;
--
i
)
for
(
int32
i
=
(
int32
)
grave
[
command_controler
].
size
()
-
1
;
i
>=
0
;
--
i
)
selectable_cards
.
push_back
(
grave
[
command_controler
][
i
]);
myswprintf
(
formatBuffer
,
L"%ls(%d)"
,
dataManager
.
GetSysString
(
1004
),
grave
[
command_controler
].
size
());
mainGame
->
wCardSelect
->
setText
(
formatBuffer
);
break
;
}
case
LOCATION_REMOVED
:
{
for
(
size_t
i
=
remove
[
command_controler
].
size
()
-
1
;
i
>=
0
;
--
i
)
for
(
int32
i
=
(
int32
)
remove
[
command_controler
].
size
()
-
1
;
i
>=
0
;
--
i
)
selectable_cards
.
push_back
(
remove
[
command_controler
][
i
]);
myswprintf
(
formatBuffer
,
L"%ls(%d)"
,
dataManager
.
GetSysString
(
1005
),
remove
[
command_controler
].
size
());
mainGame
->
wCardSelect
->
setText
(
formatBuffer
);
break
;
}
case
LOCATION_EXTRA
:
{
for
(
size_t
i
=
extra
[
command_controler
].
size
()
-
1
;
i
>=
0
;
--
i
)
for
(
int32
i
=
(
int32
)
extra
[
command_controler
].
size
()
-
1
;
i
>=
0
;
--
i
)
selectable_cards
.
push_back
(
extra
[
command_controler
][
i
]);
myswprintf
(
formatBuffer
,
L"%ls(%d)"
,
dataManager
.
GetSysString
(
1006
),
extra
[
command_controler
].
size
());
mainGame
->
wCardSelect
->
setText
(
formatBuffer
);
...
...
@@ -981,7 +981,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
break
;
for
(
size_t
i
=
0
;
i
<
extra
[
hovered_controler
].
size
();
++
i
)
command_flag
|=
extra
[
hovered_controler
][
i
]
->
cmdFlag
;
if
(
hovered_controler
==
0
)
if
(
hovered_controler
==
0
||
mainGame
->
dInfo
.
isSingleMode
)
command_flag
|=
COMMAND_LIST
;
list_command
=
1
;
ShowMenu
(
command_flag
,
x
,
y
);
...
...
gframe/tag_duel.cpp
View file @
425c33a6
...
...
@@ -392,45 +392,45 @@ void TagDuel::TPResult(DuelPlayer* dp, unsigned char tp) {
last_replay
.
Flush
();
//
last_replay
.
WriteInt32
(
pdeck
[
0
].
main
.
size
(),
false
);
for
(
size_t
i
=
pdeck
[
0
].
main
.
size
()
-
1
;
i
>=
0
;
--
i
)
{
for
(
int32
i
=
(
int32
)
pdeck
[
0
].
main
.
size
()
-
1
;
i
>=
0
;
--
i
)
{
new_card
(
pduel
,
pdeck
[
0
].
main
[
i
]
->
first
,
0
,
0
,
LOCATION_DECK
,
0
,
0
);
last_replay
.
WriteInt32
(
pdeck
[
0
].
main
[
i
]
->
first
,
false
);
}
last_replay
.
WriteInt32
(
pdeck
[
0
].
extra
.
size
(),
false
);
for
(
size_t
i
=
pdeck
[
0
].
extra
.
size
()
-
1
;
i
>=
0
;
--
i
)
{
for
(
int32
i
=
(
int32
)
pdeck
[
0
].
extra
.
size
()
-
1
;
i
>=
0
;
--
i
)
{
new_card
(
pduel
,
pdeck
[
0
].
extra
[
i
]
->
first
,
0
,
0
,
LOCATION_EXTRA
,
0
,
0
);
last_replay
.
WriteInt32
(
pdeck
[
0
].
extra
[
i
]
->
first
,
false
);
}
//
last_replay
.
WriteInt32
(
pdeck
[
1
].
main
.
size
(),
false
);
for
(
size_t
i
=
pdeck
[
1
].
main
.
size
()
-
1
;
i
>=
0
;
--
i
)
{
for
(
int32
i
=
(
int32
)
pdeck
[
1
].
main
.
size
()
-
1
;
i
>=
0
;
--
i
)
{
new_tag_card
(
pduel
,
pdeck
[
1
].
main
[
i
]
->
first
,
0
,
LOCATION_DECK
);
last_replay
.
WriteInt32
(
pdeck
[
1
].
main
[
i
]
->
first
,
false
);
}
last_replay
.
WriteInt32
(
pdeck
[
1
].
extra
.
size
(),
false
);
for
(
size_t
i
=
pdeck
[
1
].
extra
.
size
()
-
1
;
i
>=
0
;
--
i
)
{
for
(
int32
i
=
(
int32
)
pdeck
[
1
].
extra
.
size
()
-
1
;
i
>=
0
;
--
i
)
{
new_tag_card
(
pduel
,
pdeck
[
1
].
extra
[
i
]
->
first
,
0
,
LOCATION_EXTRA
);
last_replay
.
WriteInt32
(
pdeck
[
1
].
extra
[
i
]
->
first
,
false
);
}
//
last_replay
.
WriteInt32
(
pdeck
[
3
].
main
.
size
(),
false
);
for
(
size_t
i
=
pdeck
[
3
].
main
.
size
()
-
1
;
i
>=
0
;
--
i
)
{
for
(
int32
i
=
(
int32
)
pdeck
[
3
].
main
.
size
()
-
1
;
i
>=
0
;
--
i
)
{
new_card
(
pduel
,
pdeck
[
3
].
main
[
i
]
->
first
,
1
,
1
,
LOCATION_DECK
,
0
,
0
);
last_replay
.
WriteInt32
(
pdeck
[
3
].
main
[
i
]
->
first
,
false
);
}
last_replay
.
WriteInt32
(
pdeck
[
3
].
extra
.
size
(),
false
);
for
(
size_t
i
=
pdeck
[
3
].
extra
.
size
()
-
1
;
i
>=
0
;
--
i
)
{
for
(
int32
i
=
(
int32
)
pdeck
[
3
].
extra
.
size
()
-
1
;
i
>=
0
;
--
i
)
{
new_card
(
pduel
,
pdeck
[
3
].
extra
[
i
]
->
first
,
1
,
1
,
LOCATION_EXTRA
,
0
,
0
);
last_replay
.
WriteInt32
(
pdeck
[
3
].
extra
[
i
]
->
first
,
false
);
}
//
last_replay
.
WriteInt32
(
pdeck
[
2
].
main
.
size
(),
false
);
for
(
size_t
i
=
pdeck
[
2
].
main
.
size
()
-
1
;
i
>=
0
;
--
i
)
{
for
(
int32
i
=
(
int32
)
pdeck
[
2
].
main
.
size
()
-
1
;
i
>=
0
;
--
i
)
{
new_tag_card
(
pduel
,
pdeck
[
2
].
main
[
i
]
->
first
,
1
,
LOCATION_DECK
);
last_replay
.
WriteInt32
(
pdeck
[
2
].
main
[
i
]
->
first
,
false
);
}
last_replay
.
WriteInt32
(
pdeck
[
2
].
extra
.
size
(),
false
);
for
(
size_t
i
=
pdeck
[
2
].
extra
.
size
()
-
1
;
i
>=
0
;
--
i
)
{
for
(
int32
i
=
(
int32
)
pdeck
[
2
].
extra
.
size
()
-
1
;
i
>=
0
;
--
i
)
{
new_tag_card
(
pduel
,
pdeck
[
2
].
extra
[
i
]
->
first
,
1
,
LOCATION_EXTRA
);
last_replay
.
WriteInt32
(
pdeck
[
2
].
extra
[
i
]
->
first
,
false
);
}
...
...
ocgcore/processor.cpp
View file @
425c33a6
...
...
@@ -4626,6 +4626,7 @@ int32 field::adjust_step(uint16 step) {
}
adjust_disable_check_list
();
add_process
(
PROCESSOR_REFRESH_LOC
,
0
,
0
,
0
,
0
,
0
);
return
FALSE
;
}
case
3
:
{
//trap monster
...
...
script/c32339440.lua
View file @
425c33a6
...
...
@@ -18,11 +18,11 @@ function c32339440.thcon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetTurnPlayer
()
==
tp
end
function
c32339440
.
filter
(
c
)
return
c
:
IsSetCard
(
0x88
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
s
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x88
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
function
c32339440
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c32339440
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
0
,
1
,
0
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c32339440
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
...
...
script/c4068622.lua
View file @
425c33a6
...
...
@@ -32,7 +32,7 @@ function c4068622.spfilter1(c)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x33
)
and
c
:
IsType
(
TYPE_TUNER
)
and
c
:
IsAbleToRemove
()
end
function
c4068622
.
spfilter2
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x33
)
and
not
c
:
IsType
(
TYPE_TUNER
)
and
c
:
IsAbleToRemove
()
return
c
:
IsFaceup
()
and
not
c
:
IsType
(
TYPE_TUNER
)
and
c
:
IsAbleToRemove
()
end
function
c4068622
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
...
...
script/c53804307.lua
View file @
425c33a6
...
...
@@ -103,7 +103,7 @@ function c53804307.desfilter(c)
return
c
:
IsDestructable
()
end
function
c53804307
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
Is
Controler
(
tp
)
and
chkc
:
Is
OnField
()
and
c53804307
.
desfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsOnField
()
and
c53804307
.
desfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c53804307
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c53804307
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
...
...
script/c68601507.lua
View file @
425c33a6
...
...
@@ -13,8 +13,9 @@ function c68601507.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c68601507
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
Duel
.
GetAttacker
()
if
c
:
IsControler
(
1
-
tp
)
then
c
=
Duel
.
GetAttackTarget
()
end
local
c
=
Duel
.
GetAttackTarget
()
if
not
c
then
return
false
end
if
c
:
IsControler
(
1
-
tp
)
then
c
=
Duel
.
GetAttacker
()
end
e
:
SetLabelObject
(
c
)
return
c
and
c
:
IsSetCard
(
0x88
)
and
c
:
IsRace
(
RACE_BEASTWARRIOR
)
and
c
:
IsRelateToBattle
()
end
...
...
script/c69307
64
.lua
→
script/c69307
46
.lua
View file @
425c33a6
--限界竜シュヴァルツシルト
function
c69307
64
.
initial_effect
(
c
)
function
c69307
46
.
initial_effect
(
c
)
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCondition
(
c69307
64
.
spcon
)
e1
:
SetCondition
(
c69307
46
.
spcon
)
c
:
RegisterEffect
(
e1
)
end
function
c69307
64
.
filter
(
c
)
function
c69307
46
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsAttackAbove
(
2000
)
end
function
c69307
64
.
spcon
(
e
,
c
)
function
c69307
46
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c69307
64
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c69307
46
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
script/c71060915.lua
View file @
425c33a6
...
...
@@ -14,7 +14,7 @@ function c71060915.filter(c)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
21844576
)
end
function
c71060915
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c71060915
.
filter
,
tp
,
LOCATION_
MZONE
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c71060915
.
filter
,
tp
,
LOCATION_
ONFIELD
,
0
,
1
,
nil
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
Duel
.
IsChainNegatable
(
ev
)
end
function
c71060915
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
script/c72710085.lua
View file @
425c33a6
...
...
@@ -19,7 +19,8 @@ function c72710085.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c72710085
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
GetCount
()
==
1
and
eg
:
GetFirst
():
IsPreviousLocation
(
LOCATION_GRAVE
)
and
eg
:
GetFirst
():
IsControler
(
tp
)
local
tc
=
eg
:
GetFirst
()
return
eg
:
GetCount
()
==
1
and
tc
:
IsPreviousLocation
(
LOCATION_GRAVE
)
and
tc
:
IsControler
(
tp
)
and
tc
:
IsType
(
TYPE_MONSTER
)
end
function
c72710085
.
tgcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
72710085
)
==
0
end
...
...
script/c8594079.lua
View file @
425c33a6
...
...
@@ -12,6 +12,5 @@ function c8594079.filter(c)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x22
)
end
function
c8594079
.
indcon
(
e
)
local
c
=
e
:
GetHandler
()
return
Duel
.
IsExistingMatchingCard
(
c8594079
.
filter
,
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
1
,
c
)
return
Duel
.
IsExistingMatchingCard
(
c8594079
.
filter
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
e
:
GetHandler
())
end
script/c9365703.lua
View file @
425c33a6
...
...
@@ -31,8 +31,8 @@ function c9365703.daop(e,tp,eg,ep,ev,re,r,rp)
if
c
:
IsFacedown
()
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
)
e1
:
SetCode
(
EFFECT_SET_
BASE_
ATTACK
)
e1
:
SetValue
(
c
:
GetBaseAttack
()
*
2
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
+
RESET_PHASE
+
PHASE_
END
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
+
RESET_PHASE
+
PHASE_
BATTLE
)
c
:
RegisterEffect
(
e1
)
end
script/c94973028.lua
View file @
425c33a6
...
...
@@ -25,7 +25,7 @@ function c94973028.initial_effect(c)
e4
:
SetDescription
(
aux
.
Stringid
(
94973028
,
0
))
e4
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOKEN
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e4
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e4
:
SetCode
(
EVENT_S
PS
UMMON_SUCCESS
)
e4
:
SetCondition
(
c94973028
.
spcon
)
e4
:
SetTarget
(
c94973028
.
sptg
)
e4
:
SetOperation
(
c94973028
.
spop
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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