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
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
Commits
ca7a6cf6
Commit
ca7a6cf6
authored
Apr 22, 2014
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
16aa6a7d
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
13 additions
and
7 deletions
+13
-7
ocgcore/libcard.cpp
ocgcore/libcard.cpp
+1
-1
ocgcore/operations.cpp
ocgcore/operations.cpp
+1
-1
script/c2095764.lua
script/c2095764.lua
+1
-1
script/c3171055.lua
script/c3171055.lua
+6
-0
script/c35089369.lua
script/c35089369.lua
+1
-1
script/c61488417.lua
script/c61488417.lua
+1
-1
script/c79844764.lua
script/c79844764.lua
+2
-2
No files found.
ocgcore/libcard.cpp
View file @
ca7a6cf6
...
@@ -1145,7 +1145,7 @@ int32 scriptlib::card_is_synchro_summonable(lua_State *L) {
...
@@ -1145,7 +1145,7 @@ int32 scriptlib::card_is_synchro_summonable(lua_State *L) {
}
}
uint32
p
=
pcard
->
pduel
->
game_field
->
core
.
reason_player
;
uint32
p
=
pcard
->
pduel
->
game_field
->
core
.
reason_player
;
pcard
->
pduel
->
game_field
->
core
.
limit_tuner
=
tuner
;
pcard
->
pduel
->
game_field
->
core
.
limit_tuner
=
tuner
;
pcard
->
pduel
->
game_field
->
core
.
limit_
xyz
=
mg
;
pcard
->
pduel
->
game_field
->
core
.
limit_
syn
=
mg
;
lua_pushboolean
(
L
,
pcard
->
is_special_summonable
(
p
));
lua_pushboolean
(
L
,
pcard
->
is_special_summonable
(
p
));
return
1
;
return
1
;
}
}
...
...
ocgcore/operations.cpp
View file @
ca7a6cf6
...
@@ -3902,7 +3902,7 @@ int32 field::select_xyz_material(int16 step, uint8 playerid, card* scard, int32
...
@@ -3902,7 +3902,7 @@ int32 field::select_xyz_material(int16 step, uint8 playerid, card* scard, int32
}
else
}
else
core
.
units
.
begin
()
->
step
=
1
;
core
.
units
.
begin
()
->
step
=
1
;
return
FALSE
;
return
FALSE
;
}
}
case
1
:
{
case
1
:
{
group
*
pgroup
=
pduel
->
new_group
();
group
*
pgroup
=
pduel
->
new_group
();
for
(
int32
i
=
0
;
i
<
returns
.
bvalue
[
0
];
++
i
)
{
for
(
int32
i
=
0
;
i
<
returns
.
bvalue
[
0
];
++
i
)
{
...
...
script/c2095764.lua
View file @
ca7a6cf6
...
@@ -47,7 +47,7 @@ function c2095764.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -47,7 +47,7 @@ function c2095764.operation(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c2095764
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c2095764
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_
DEFENCE
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_
ATTACK
)
end
end
function
c2095764
.
sccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c2095764
.
sccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ph
=
Duel
.
GetCurrentPhase
()
local
ph
=
Duel
.
GetCurrentPhase
()
...
...
script/c3171055.lua
View file @
ca7a6cf6
...
@@ -6,12 +6,18 @@ function c3171055.initial_effect(c)
...
@@ -6,12 +6,18 @@ function c3171055.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetCondition
(
c3171055
.
condition
)
e1
:
SetCondition
(
c3171055
.
condition
)
e1
:
SetTarget
(
c3171055
.
target
)
e1
:
SetOperation
(
c3171055
.
activate
)
e1
:
SetOperation
(
c3171055
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c3171055
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c3171055
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
end
function
c3171055
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
ep
,
LOCATION_DECK
,
0
,
nil
,
re
:
GetHandler
():
GetCode
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
c3171055
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c3171055
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
ep
,
LOCATION_DECK
,
0
,
nil
,
re
:
GetHandler
():
GetCode
())
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
ep
,
LOCATION_DECK
,
0
,
nil
,
re
:
GetHandler
():
GetCode
())
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
...
...
script/c35089369.lua
View file @
ca7a6cf6
...
@@ -47,7 +47,7 @@ function c35089369.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -47,7 +47,7 @@ function c35089369.operation(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c35089369
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c35089369
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_
DEFENCE
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_
ATTACK
)
end
end
function
c35089369
.
sccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c35089369
.
sccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ph
=
Duel
.
GetCurrentPhase
()
local
ph
=
Duel
.
GetCurrentPhase
()
...
...
script/c61488417.lua
View file @
ca7a6cf6
...
@@ -43,7 +43,7 @@ function c61488417.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -43,7 +43,7 @@ function c61488417.operation(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c61488417
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c61488417
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
_DEFENCE
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c61488417
.
cfilter
(
c
,
tp
)
function
c61488417
.
cfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0x9e
)
and
c
:
IsReason
(
REASON_DESTROY
)
return
c
:
IsSetCard
(
0x9e
)
and
c
:
IsReason
(
REASON_DESTROY
)
...
...
script/c79844764.lua
View file @
ca7a6cf6
...
@@ -22,7 +22,7 @@ function c79844764.checkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -22,7 +22,7 @@ function c79844764.checkop(e,tp,eg,ep,ev,re,r,rp)
local
p1
=
false
local
p1
=
false
local
p2
=
false
local
p2
=
false
while
tc
do
while
tc
do
if
not
tc
:
IsPreviousLocation
(
LOCATION_EXTRA
)
then
if
tc
:
IsPreviousLocation
(
LOCATION_EXTRA
)
then
if
tc
:
GetSummonPlayer
()
==
0
then
p1
=
true
else
p2
=
true
end
if
tc
:
GetSummonPlayer
()
==
0
then
p1
=
true
else
p2
=
true
end
end
end
tc
=
eg
:
GetNext
()
tc
=
eg
:
GetNext
()
...
@@ -42,7 +42,7 @@ function c79844764.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -42,7 +42,7 @@ function c79844764.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c79844764
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
function
c79844764
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
not
c
:
IsLocation
(
LOCATION_EXTRA
)
return
c
:
IsLocation
(
LOCATION_EXTRA
)
end
end
function
c79844764
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c79844764
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
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