Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
List
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
YGOPRO-520DIY
ygopro
Commits
82de06fd
Commit
82de06fd
authored
Jan 31, 2015
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
51ba0182
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
+13
-3
ocgcore/field.cpp
ocgcore/field.cpp
+3
-0
script/c50720316.lua
script/c50720316.lua
+4
-0
script/c75500286.lua
script/c75500286.lua
+6
-3
No files found.
ocgcore/field.cpp
View file @
82de06fd
...
@@ -594,6 +594,7 @@ void field::swap_deck_and_grave(uint8 playerid) {
...
@@ -594,6 +594,7 @@ void field::swap_deck_and_grave(uint8 playerid) {
(
*
clit
)
->
current
.
reason_player
=
core
.
reason_player
;
(
*
clit
)
->
current
.
reason_player
=
core
.
reason_player
;
(
*
clit
)
->
apply_field_effect
();
(
*
clit
)
->
apply_field_effect
();
(
*
clit
)
->
enable_field_effect
(
true
);
(
*
clit
)
->
enable_field_effect
(
true
);
(
*
clit
)
->
reset
(
RESET_TOGRAVE
,
RESET_EVENT
);
}
}
for
(
clit
=
player
[
playerid
].
list_main
.
begin
();
clit
!=
player
[
playerid
].
list_main
.
end
();
++
clit
)
{
for
(
clit
=
player
[
playerid
].
list_main
.
begin
();
clit
!=
player
[
playerid
].
list_main
.
end
();
++
clit
)
{
(
*
clit
)
->
current
.
location
=
LOCATION_DECK
;
(
*
clit
)
->
current
.
location
=
LOCATION_DECK
;
...
@@ -602,6 +603,7 @@ void field::swap_deck_and_grave(uint8 playerid) {
...
@@ -602,6 +603,7 @@ void field::swap_deck_and_grave(uint8 playerid) {
(
*
clit
)
->
current
.
reason_player
=
core
.
reason_player
;
(
*
clit
)
->
current
.
reason_player
=
core
.
reason_player
;
(
*
clit
)
->
apply_field_effect
();
(
*
clit
)
->
apply_field_effect
();
(
*
clit
)
->
enable_field_effect
(
true
);
(
*
clit
)
->
enable_field_effect
(
true
);
(
*
clit
)
->
reset
(
RESET_TODECK
,
RESET_EVENT
);
}
}
for
(
clit
=
ex
.
begin
();
clit
!=
ex
.
end
();
++
clit
)
{
for
(
clit
=
ex
.
begin
();
clit
!=
ex
.
end
();
++
clit
)
{
(
*
clit
)
->
current
.
location
=
LOCATION_EXTRA
;
(
*
clit
)
->
current
.
location
=
LOCATION_EXTRA
;
...
@@ -610,6 +612,7 @@ void field::swap_deck_and_grave(uint8 playerid) {
...
@@ -610,6 +612,7 @@ void field::swap_deck_and_grave(uint8 playerid) {
(
*
clit
)
->
current
.
reason_player
=
core
.
reason_player
;
(
*
clit
)
->
current
.
reason_player
=
core
.
reason_player
;
(
*
clit
)
->
apply_field_effect
();
(
*
clit
)
->
apply_field_effect
();
(
*
clit
)
->
enable_field_effect
(
true
);
(
*
clit
)
->
enable_field_effect
(
true
);
(
*
clit
)
->
reset
(
RESET_TODECK
,
RESET_EVENT
);
}
}
player
[
playerid
].
list_extra
.
insert
(
player
[
playerid
].
list_extra
.
end
(),
ex
.
begin
(),
ex
.
end
());
player
[
playerid
].
list_extra
.
insert
(
player
[
playerid
].
list_extra
.
end
(),
ex
.
begin
(),
ex
.
end
());
reset_sequence
(
playerid
,
LOCATION_GRAVE
);
reset_sequence
(
playerid
,
LOCATION_GRAVE
);
...
...
script/c50720316.lua
View file @
82de06fd
...
@@ -15,6 +15,7 @@ function c50720316.initial_effect(c)
...
@@ -15,6 +15,7 @@ function c50720316.initial_effect(c)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetDescription
(
aux
.
Stringid
(
50720316
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
50720316
,
1
))
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetCondition
(
c50720316
.
thcon2
)
e2
:
SetTarget
(
c50720316
.
thtg2
)
e2
:
SetTarget
(
c50720316
.
thtg2
)
e2
:
SetOperation
(
c50720316
.
tgop2
)
e2
:
SetOperation
(
c50720316
.
tgop2
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
...
@@ -38,6 +39,9 @@ function c50720316.tgop1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -38,6 +39,9 @@ function c50720316.tgop1(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
end
end
function
c50720316
.
thcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
IsReason
(
REASON_RETURN
)
end
function
c50720316
.
thfilter2
(
c
)
function
c50720316
.
thfilter2
(
c
)
return
c
:
IsSetCard
(
0x8
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
50720316
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x8
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
50720316
)
and
c
:
IsAbleToHand
()
end
end
...
...
script/c75500286.lua
View file @
82de06fd
...
@@ -25,12 +25,15 @@ function c75500286.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -25,12 +25,15 @@ function c75500286.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_STANDBY
+
RESET_SELF_TURN
,
2
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_STANDBY
+
RESET_SELF_TURN
,
2
)
e1
:
SetOperation
(
c75500286
.
tohand
)
e1
:
SetCondition
(
c75500286
.
thcon
)
e1
:
SetOperation
(
c75500286
.
thop
)
e1
:
SetLabel
(
0
)
e1
:
SetLabel
(
0
)
tg
:
RegisterEffect
(
e1
)
tg
:
RegisterEffect
(
e1
)
end
end
function
c75500286
.
tohand
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c75500286
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetTurnPlayer
()
~=
tp
then
return
end
return
Duel
.
GetTurnPlayer
()
==
tp
end
function
c75500286
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
e
:
GetLabel
()
local
ct
=
e
:
GetLabel
()
e
:
GetHandler
():
SetTurnCounter
(
ct
+
1
)
e
:
GetHandler
():
SetTurnCounter
(
ct
+
1
)
if
ct
==
1
then
if
ct
==
1
then
...
...
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