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
5eb9b56e
Commit
5eb9b56e
authored
May 16, 2015
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify
parent
39cd4000
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
15 deletions
+10
-15
ocgcore/libeffect.cpp
ocgcore/libeffect.cpp
+6
-3
script/c28265983.lua
script/c28265983.lua
+1
-3
script/c39387565.lua
script/c39387565.lua
+1
-3
script/c65872270.lua
script/c65872270.lua
+1
-3
script/c92266279.lua
script/c92266279.lua
+1
-3
No files found.
ocgcore/libeffect.cpp
View file @
5eb9b56e
...
@@ -283,13 +283,16 @@ int32 scriptlib::effect_set_value(lua_State *L) {
...
@@ -283,13 +283,16 @@ int32 scriptlib::effect_set_value(lua_State *L) {
return
0
;
return
0
;
}
}
int32
scriptlib
::
effect_set_operation
(
lua_State
*
L
)
{
int32
scriptlib
::
effect_set_operation
(
lua_State
*
L
)
{
check_param_count
(
L
,
1
);
check_param_count
(
L
,
2
);
check_param
(
L
,
PARAM_TYPE_EFFECT
,
1
);
check_param
(
L
,
PARAM_TYPE_EFFECT
,
1
);
check_param
(
L
,
PARAM_TYPE_FUNCTION
,
2
);
effect
*
peffect
=
*
(
effect
**
)
lua_touserdata
(
L
,
1
);
effect
*
peffect
=
*
(
effect
**
)
lua_touserdata
(
L
,
1
);
if
(
peffect
->
operation
)
if
(
peffect
->
operation
)
luaL_unref
(
L
,
LUA_REGISTRYINDEX
,
peffect
->
operation
);
luaL_unref
(
L
,
LUA_REGISTRYINDEX
,
peffect
->
operation
);
peffect
->
operation
=
interpreter
::
get_function_handle
(
L
,
2
);
if
(
!
lua_isnil
(
L
,
2
))
{
check_param
(
L
,
PARAM_TYPE_FUNCTION
,
2
);
peffect
->
operation
=
interpreter
::
get_function_handle
(
L
,
2
);
}
else
peffect
->
operation
=
0
;
return
0
;
return
0
;
}
}
int32
scriptlib
::
effect_set_owner_player
(
lua_State
*
L
)
{
int32
scriptlib
::
effect_set_owner_player
(
lua_State
*
L
)
{
...
...
script/c28265983.lua
View file @
5eb9b56e
...
@@ -64,11 +64,9 @@ function c28265983.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -64,11 +64,9 @@ function c28265983.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
else
else
e
:
SetCategory
(
0
)
e
:
SetCategory
(
0
)
e
:
SetProperty
(
0
)
e
:
SetProperty
(
0
)
e
:
SetOperation
(
c28265983
.
nop
)
e
:
SetOperation
(
nil
)
end
end
end
end
function
c28265983
.
nop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
function
c28265983
.
descon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c28265983
.
descon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
==
tp
return
ep
==
tp
end
end
...
...
script/c39387565.lua
View file @
5eb9b56e
...
@@ -42,11 +42,9 @@ function c39387565.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -42,11 +42,9 @@ function c39387565.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
else
else
e
:
SetCategory
(
0
)
e
:
SetCategory
(
0
)
e
:
SetProperty
(
0
)
e
:
SetProperty
(
0
)
e
:
SetOperation
(
c39387565
.
nop
)
e
:
SetOperation
(
nil
)
end
end
end
end
function
c39387565
.
nop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
function
c39387565
.
cfilter
(
c
)
function
c39387565
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3b
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3b
)
end
end
...
...
script/c65872270.lua
View file @
5eb9b56e
...
@@ -36,11 +36,9 @@ function c65872270.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -36,11 +36,9 @@ function c65872270.target(e,tp,eg,ep,ev,re,r,rp,chk)
c65872270
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
c65872270
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
else
else
e
:
SetCategory
(
0
)
e
:
SetCategory
(
0
)
e
:
SetOperation
(
c65872270
.
nop
)
e
:
SetOperation
(
nil
)
end
end
end
end
function
c65872270
.
nop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
function
c65872270
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c65872270
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
return
Duel
.
GetTurnPlayer
()
==
tp
and
(
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
)
and
(
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
)
...
...
script/c92266279.lua
View file @
5eb9b56e
...
@@ -60,11 +60,9 @@ function c92266279.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -60,11 +60,9 @@ function c92266279.target(e,tp,eg,ep,ev,re,r,rp,chk)
else
else
e
:
SetCategory
(
0
)
e
:
SetCategory
(
0
)
e
:
SetProperty
(
0
)
e
:
SetProperty
(
0
)
e
:
SetOperation
(
c92266279
.
nop
)
e
:
SetOperation
(
nil
)
end
end
end
end
function
c92266279
.
nop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
function
c92266279
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c92266279
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
1000
)
and
Duel
.
GetFlagEffect
(
tp
,
92266279
)
==
0
end
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
1000
)
and
Duel
.
GetFlagEffect
(
tp
,
92266279
)
==
0
end
Duel
.
PayLPCost
(
tp
,
1000
)
Duel
.
PayLPCost
(
tp
,
1000
)
...
...
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