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
58e6b9a2
Commit
58e6b9a2
authored
Mar 19, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
card::is_can_be_xyz_material
Now xyz monster can be xyz material by default.
parent
4238ca55
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
14 additions
and
19 deletions
+14
-19
ocgcore/card.cpp
ocgcore/card.cpp
+1
-3
ocgcore/card.h
ocgcore/card.h
+1
-1
ocgcore/libcard.cpp
ocgcore/libcard.cpp
+1
-4
script/c18326736.lua
script/c18326736.lua
+1
-1
script/c33252803.lua
script/c33252803.lua
+1
-1
script/c43476205.lua
script/c43476205.lua
+1
-1
script/c45950291.lua
script/c45950291.lua
+1
-1
script/c47660516.lua
script/c47660516.lua
+1
-1
script/c48333324.lua
script/c48333324.lua
+1
-1
script/c57707471.lua
script/c57707471.lua
+1
-1
script/c57734012.lua
script/c57734012.lua
+1
-1
script/c92365601.lua
script/c92365601.lua
+1
-1
script/c94220427.lua
script/c94220427.lua
+1
-1
script/utility.lua
script/utility.lua
+1
-1
No files found.
ocgcore/card.cpp
View file @
58e6b9a2
...
@@ -2404,11 +2404,9 @@ int32 card::is_can_be_synchro_material(card* scard, card* tuner) {
...
@@ -2404,11 +2404,9 @@ int32 card::is_can_be_synchro_material(card* scard, card* tuner) {
return
FALSE
;
return
FALSE
;
return
TRUE
;
return
TRUE
;
}
}
int32
card
::
is_can_be_xyz_material
(
card
*
scard
,
uint8
ignore_xyz
)
{
int32
card
::
is_can_be_xyz_material
(
card
*
scard
)
{
if
(
data
.
type
&
TYPE_TOKEN
)
if
(
data
.
type
&
TYPE_TOKEN
)
return
FALSE
;
return
FALSE
;
if
(
!
ignore_xyz
&&
(
data
.
type
&
TYPE_XYZ
))
return
FALSE
;
if
(
!
(
get_type
()
&
TYPE_MONSTER
))
if
(
!
(
get_type
()
&
TYPE_MONSTER
))
return
FALSE
;
return
FALSE
;
if
(
is_affected_by_effect
(
EFFECT_FORBIDDEN
))
if
(
is_affected_by_effect
(
EFFECT_FORBIDDEN
))
...
...
ocgcore/card.h
View file @
58e6b9a2
...
@@ -250,7 +250,7 @@ public:
...
@@ -250,7 +250,7 @@ public:
int32
is_capable_be_effect_target
(
effect
*
peffect
,
uint8
playerid
);
int32
is_capable_be_effect_target
(
effect
*
peffect
,
uint8
playerid
);
int32
is_can_be_fusion_material
(
uint8
ignore_mon
=
FALSE
);
int32
is_can_be_fusion_material
(
uint8
ignore_mon
=
FALSE
);
int32
is_can_be_synchro_material
(
card
*
scard
,
card
*
tuner
=
0
);
int32
is_can_be_synchro_material
(
card
*
scard
,
card
*
tuner
=
0
);
int32
is_can_be_xyz_material
(
card
*
scard
,
uint8
ignore_xyz
=
FALSE
);
int32
is_can_be_xyz_material
(
card
*
scard
);
};
};
//Locations
//Locations
...
...
ocgcore/libcard.cpp
View file @
58e6b9a2
...
@@ -1799,10 +1799,7 @@ int32 scriptlib::card_is_can_be_xyz_material(lua_State *L) {
...
@@ -1799,10 +1799,7 @@ int32 scriptlib::card_is_can_be_xyz_material(lua_State *L) {
check_param
(
L
,
PARAM_TYPE_CARD
,
2
);
check_param
(
L
,
PARAM_TYPE_CARD
,
2
);
scard
=
*
(
card
**
)
lua_touserdata
(
L
,
2
);
scard
=
*
(
card
**
)
lua_touserdata
(
L
,
2
);
}
}
uint32
ign
=
FALSE
;
lua_pushboolean
(
L
,
pcard
->
is_can_be_xyz_material
(
scard
));
if
(
lua_gettop
(
L
)
>=
3
)
ign
=
lua_toboolean
(
L
,
3
);
lua_pushboolean
(
L
,
pcard
->
is_can_be_xyz_material
(
scard
,
ign
));
return
1
;
return
1
;
}
}
int32
scriptlib
::
card_check_fusion_material
(
lua_State
*
L
)
{
int32
scriptlib
::
card_check_fusion_material
(
lua_State
*
L
)
{
...
...
script/c18326736.lua
View file @
58e6b9a2
...
@@ -40,7 +40,7 @@ function c18326736.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -40,7 +40,7 @@ function c18326736.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
c
:
RegisterFlagEffect
(
18326736
,
RESET_CHAIN
,
0
,
1
)
c
:
RegisterFlagEffect
(
18326736
,
RESET_CHAIN
,
0
,
1
)
end
end
function
c18326736
.
filter
(
c
,
e
,
tp
,
rk
)
function
c18326736
.
filter
(
c
,
e
,
tp
,
rk
)
return
c
:
GetRank
()
==
rk
+
1
and
not
c
:
IsSetCard
(
0x48
)
and
e
:
GetHandler
():
IsCanBeXyzMaterial
(
c
,
true
)
return
c
:
GetRank
()
==
rk
+
1
and
not
c
:
IsSetCard
(
0x48
)
and
e
:
GetHandler
():
IsCanBeXyzMaterial
(
c
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
end
end
function
c18326736
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c18326736
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
script/c33252803.lua
View file @
58e6b9a2
...
@@ -15,7 +15,7 @@ function c33252803.filter1(c,e,tp)
...
@@ -15,7 +15,7 @@ function c33252803.filter1(c,e,tp)
and
Duel
.
IsExistingMatchingCard
(
c33252803
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
,
c
:
GetRank
()
+
1
,
c
.
xyz_number
)
and
Duel
.
IsExistingMatchingCard
(
c33252803
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
,
c
:
GetRank
()
+
1
,
c
.
xyz_number
)
end
end
function
c33252803
.
filter2
(
c
,
e
,
tp
,
mc
,
rk
,
no
)
function
c33252803
.
filter2
(
c
,
e
,
tp
,
mc
,
rk
,
no
)
return
c
:
GetRank
()
==
rk
and
c
:
IsSetCard
(
0x1048
)
and
c
.
xyz_number
==
no
and
mc
:
IsCanBeXyzMaterial
(
c
,
true
)
return
c
:
GetRank
()
==
rk
and
c
:
IsSetCard
(
0x1048
)
and
c
.
xyz_number
==
no
and
mc
:
IsCanBeXyzMaterial
(
c
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
end
end
function
c33252803
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c33252803
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
script/c43476205.lua
View file @
58e6b9a2
...
@@ -21,7 +21,7 @@ function c43476205.filter2(c,e,tp)
...
@@ -21,7 +21,7 @@ function c43476205.filter2(c,e,tp)
and
Duel
.
IsExistingMatchingCard
(
c43476205
.
filter3
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
,
rk
+
1
)
and
Duel
.
IsExistingMatchingCard
(
c43476205
.
filter3
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
,
rk
+
1
)
end
end
function
c43476205
.
filter3
(
c
,
e
,
tp
,
mc
,
rk
)
function
c43476205
.
filter3
(
c
,
e
,
tp
,
mc
,
rk
)
return
c
:
GetRank
()
==
rk
and
c
:
IsSetCard
(
0xba
)
and
mc
:
IsCanBeXyzMaterial
(
c
,
true
)
return
c
:
GetRank
()
==
rk
and
c
:
IsSetCard
(
0xba
)
and
mc
:
IsCanBeXyzMaterial
(
c
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
end
end
function
c43476205
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c43476205
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
script/c45950291.lua
View file @
58e6b9a2
...
@@ -33,7 +33,7 @@ function c45950291.filter1(c,e,tp)
...
@@ -33,7 +33,7 @@ function c45950291.filter1(c,e,tp)
end
end
function
c45950291
.
filter2
(
c
,
e
,
tp
,
mc
,
rk
,
rc
,
att
,
code
)
function
c45950291
.
filter2
(
c
,
e
,
tp
,
mc
,
rk
,
rc
,
att
,
code
)
if
c
:
GetOriginalCode
()
==
6165656
and
code
~=
48995978
then
return
false
end
if
c
:
GetOriginalCode
()
==
6165656
and
code
~=
48995978
then
return
false
end
return
c
:
GetRank
()
==
rk
and
c
:
IsRace
(
rc
)
and
c
:
IsAttribute
(
att
)
and
mc
:
IsCanBeXyzMaterial
(
c
,
true
)
return
c
:
GetRank
()
==
rk
and
c
:
IsRace
(
rc
)
and
c
:
IsAttribute
(
att
)
and
mc
:
IsCanBeXyzMaterial
(
c
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
end
end
function
c45950291
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c45950291
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
script/c47660516.lua
View file @
58e6b9a2
...
@@ -17,7 +17,7 @@ function c47660516.filter1(c,e,tp)
...
@@ -17,7 +17,7 @@ function c47660516.filter1(c,e,tp)
end
end
function
c47660516
.
filter2
(
c
,
e
,
tp
,
mc
,
rk
,
rc
,
code
)
function
c47660516
.
filter2
(
c
,
e
,
tp
,
mc
,
rk
,
rc
,
code
)
if
c
:
GetOriginalCode
()
==
6165656
and
code
~=
48995978
then
return
false
end
if
c
:
GetOriginalCode
()
==
6165656
and
code
~=
48995978
then
return
false
end
return
c
:
GetRank
()
==
rk
and
c
:
IsRace
(
rc
)
and
(
c
:
IsSetCard
(
0x1048
)
or
c
:
IsSetCard
(
0x1073
))
and
mc
:
IsCanBeXyzMaterial
(
c
,
true
)
return
c
:
GetRank
()
==
rk
and
c
:
IsRace
(
rc
)
and
(
c
:
IsSetCard
(
0x1048
)
or
c
:
IsSetCard
(
0x1073
))
and
mc
:
IsCanBeXyzMaterial
(
c
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
end
end
function
c47660516
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c47660516
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
script/c48333324.lua
View file @
58e6b9a2
...
@@ -17,7 +17,7 @@ function c48333324.filter1(c,e,tp)
...
@@ -17,7 +17,7 @@ function c48333324.filter1(c,e,tp)
end
end
function
c48333324
.
filter2
(
c
,
e
,
tp
,
mc
,
rk
,
rc
,
code
)
function
c48333324
.
filter2
(
c
,
e
,
tp
,
mc
,
rk
,
rc
,
code
)
if
c
:
GetOriginalCode
()
==
6165656
and
code
~=
48995978
then
return
false
end
if
c
:
GetOriginalCode
()
==
6165656
and
code
~=
48995978
then
return
false
end
return
c
:
GetRank
()
==
rk
and
c
:
IsRace
(
rc
)
and
c
:
IsSetCard
(
0x1048
)
and
mc
:
IsCanBeXyzMaterial
(
c
,
true
)
return
c
:
GetRank
()
==
rk
and
c
:
IsRace
(
rc
)
and
c
:
IsSetCard
(
0x1048
)
and
mc
:
IsCanBeXyzMaterial
(
c
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
end
end
function
c48333324
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c48333324
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
script/c57707471.lua
View file @
58e6b9a2
...
@@ -36,7 +36,7 @@ end
...
@@ -36,7 +36,7 @@ end
c57707471
.
xyz_number
=
21
c57707471
.
xyz_number
=
21
c57707471
.
xyz_count
=
2
c57707471
.
xyz_count
=
2
function
c57707471
.
ovfilter
(
c
,
tp
,
xyzc
)
function
c57707471
.
ovfilter
(
c
,
tp
,
xyzc
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_XYZ
)
and
c
:
GetRank
()
==
5
and
c
:
IsCanBeXyzMaterial
(
xyzc
,
true
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_XYZ
)
and
c
:
GetRank
()
==
5
and
c
:
IsCanBeXyzMaterial
(
xyzc
)
and
c
:
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
and
c
:
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
end
function
c57707471
.
xyzcon
(
e
,
c
,
og
)
function
c57707471
.
xyzcon
(
e
,
c
,
og
)
...
...
script/c57734012.lua
View file @
58e6b9a2
...
@@ -42,7 +42,7 @@ function c57734012.filter1(c,e,tp)
...
@@ -42,7 +42,7 @@ function c57734012.filter1(c,e,tp)
and
Duel
.
IsExistingMatchingCard
(
c57734012
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
,
no
)
and
Duel
.
IsExistingMatchingCard
(
c57734012
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
,
no
)
end
end
function
c57734012
.
filter2
(
c
,
e
,
tp
,
mc
,
no
)
function
c57734012
.
filter2
(
c
,
e
,
tp
,
mc
,
no
)
return
c
.
xyz_number
==
no
and
c
:
IsSetCard
(
0x1048
)
and
mc
:
IsCanBeXyzMaterial
(
c
,
true
)
return
c
.
xyz_number
==
no
and
c
:
IsSetCard
(
0x1048
)
and
mc
:
IsCanBeXyzMaterial
(
c
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
end
end
function
c57734012
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c57734012
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
script/c92365601.lua
View file @
58e6b9a2
...
@@ -17,7 +17,7 @@ function c92365601.filter1(c,e,tp)
...
@@ -17,7 +17,7 @@ function c92365601.filter1(c,e,tp)
end
end
function
c92365601
.
filter2
(
c
,
e
,
tp
,
mc
,
rk
)
function
c92365601
.
filter2
(
c
,
e
,
tp
,
mc
,
rk
)
if
c
:
GetOriginalCode
()
==
6165656
and
not
mc
:
IsCode
(
48995978
)
then
return
false
end
if
c
:
GetOriginalCode
()
==
6165656
and
not
mc
:
IsCode
(
48995978
)
then
return
false
end
return
c
:
GetRank
()
==
rk
and
c
:
IsSetCard
(
0x1048
)
and
mc
:
IsCanBeXyzMaterial
(
c
,
true
)
return
c
:
GetRank
()
==
rk
and
c
:
IsSetCard
(
0x1048
)
and
mc
:
IsCanBeXyzMaterial
(
c
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
end
end
function
c92365601
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c92365601
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
script/c94220427.lua
View file @
58e6b9a2
...
@@ -29,7 +29,7 @@ function c94220427.filter1(c,e,tp)
...
@@ -29,7 +29,7 @@ function c94220427.filter1(c,e,tp)
end
end
function
c94220427
.
filter2
(
c
,
e
,
tp
,
mc
,
rk
,
code
)
function
c94220427
.
filter2
(
c
,
e
,
tp
,
mc
,
rk
,
code
)
if
c
:
GetOriginalCode
()
==
6165656
and
code
~=
48995978
then
return
false
end
if
c
:
GetOriginalCode
()
==
6165656
and
code
~=
48995978
then
return
false
end
return
c
:
GetRank
()
==
rk
and
(
c
:
IsSetCard
(
0x1048
)
or
c
:
IsSetCard
(
0x1073
))
and
mc
:
IsCanBeXyzMaterial
(
c
,
true
)
return
c
:
GetRank
()
==
rk
and
(
c
:
IsSetCard
(
0x1048
)
or
c
:
IsSetCard
(
0x1073
))
and
mc
:
IsCanBeXyzMaterial
(
c
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
end
end
function
c94220427
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c94220427
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
script/utility.lua
View file @
58e6b9a2
...
@@ -162,7 +162,7 @@ function Auxiliary.AddSynchroProcedure2(c,f1,f2)
...
@@ -162,7 +162,7 @@ function Auxiliary.AddSynchroProcedure2(c,f1,f2)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
Auxiliary
.
XyzAlterFilter
(
c
,
alterf
,
xyzc
)
function
Auxiliary
.
XyzAlterFilter
(
c
,
alterf
,
xyzc
)
return
alterf
(
c
)
and
c
:
IsCanBeXyzMaterial
(
xyzc
,
true
)
return
alterf
(
c
)
and
c
:
IsCanBeXyzMaterial
(
xyzc
)
end
end
function
Auxiliary
.
AddXyzProcedure
(
c
,
f
,
lv
,
ct
,
alterf
,
desc
,
maxct
,
op
)
function
Auxiliary
.
AddXyzProcedure
(
c
,
f
,
lv
,
ct
,
alterf
,
desc
,
maxct
,
op
)
if
c
.
xyz_filter
==
nil
then
if
c
.
xyz_filter
==
nil
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