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
fc29a553
Commit
fc29a553
authored
Jun 28, 2014
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
0c4c498b
Changes
61
Hide whitespace changes
Inline
Side-by-side
Showing
61 changed files
with
176 additions
and
179 deletions
+176
-179
ocgcore/effect.cpp
ocgcore/effect.cpp
+2
-7
ocgcore/field.cpp
ocgcore/field.cpp
+11
-13
ocgcore/operations.cpp
ocgcore/operations.cpp
+83
-63
script/c16825874.lua
script/c16825874.lua
+4
-3
script/c20802187.lua
script/c20802187.lua
+2
-2
script/c2095764.lua
script/c2095764.lua
+2
-0
script/c2273734.lua
script/c2273734.lua
+0
-1
script/c24610207.lua
script/c24610207.lua
+1
-1
script/c25642998.lua
script/c25642998.lua
+1
-2
script/c25716180.lua
script/c25716180.lua
+1
-1
script/c25920413.lua
script/c25920413.lua
+1
-1
script/c27068117.lua
script/c27068117.lua
+1
-1
script/c29228350.lua
script/c29228350.lua
+1
-0
script/c313513.lua
script/c313513.lua
+1
-1
script/c34116027.lua
script/c34116027.lua
+0
-1
script/c34143852.lua
script/c34143852.lua
+1
-1
script/c35089369.lua
script/c35089369.lua
+2
-0
script/c35984222.lua
script/c35984222.lua
+3
-3
script/c3606728.lua
script/c3606728.lua
+1
-1
script/c37620434.lua
script/c37620434.lua
+1
-1
script/c38331564.lua
script/c38331564.lua
+1
-1
script/c39695323.lua
script/c39695323.lua
+1
-1
script/c4239451.lua
script/c4239451.lua
+1
-0
script/c44028461.lua
script/c44028461.lua
+1
-1
script/c44883830.lua
script/c44883830.lua
+0
-1
script/c45170821.lua
script/c45170821.lua
+1
-1
script/c45305419.lua
script/c45305419.lua
+1
-1
script/c48092532.lua
script/c48092532.lua
+3
-9
script/c51717541.lua
script/c51717541.lua
+0
-1
script/c51858306.lua
script/c51858306.lua
+0
-1
script/c52105192.lua
script/c52105192.lua
+1
-1
script/c525110.lua
script/c525110.lua
+1
-2
script/c57274196.lua
script/c57274196.lua
+3
-3
script/c57774843.lua
script/c57774843.lua
+2
-2
script/c57784563.lua
script/c57784563.lua
+0
-1
script/c5973663.lua
script/c5973663.lua
+1
-1
script/c59771339.lua
script/c59771339.lua
+0
-1
script/c64605089.lua
script/c64605089.lua
+1
-1
script/c64726269.lua
script/c64726269.lua
+1
-1
script/c66500065.lua
script/c66500065.lua
+2
-0
script/c69488544.lua
script/c69488544.lua
+0
-1
script/c7080743.lua
script/c7080743.lua
+1
-1
script/c72502414.lua
script/c72502414.lua
+1
-1
script/c74825788.lua
script/c74825788.lua
+2
-2
script/c75434695.lua
script/c75434695.lua
+0
-1
script/c75732622.lua
script/c75732622.lua
+1
-1
script/c75967082.lua
script/c75967082.lua
+0
-1
script/c78700060.lua
script/c78700060.lua
+0
-1
script/c80457744.lua
script/c80457744.lua
+1
-1
script/c81913510.lua
script/c81913510.lua
+16
-21
script/c83108603.lua
script/c83108603.lua
+2
-2
script/c83272895.lua
script/c83272895.lua
+2
-2
script/c8696773.lua
script/c8696773.lua
+1
-1
script/c87319876.lua
script/c87319876.lua
+3
-2
script/c90246973.lua
script/c90246973.lua
+2
-2
script/c9260791.lua
script/c9260791.lua
+1
-1
script/c92901944.lua
script/c92901944.lua
+1
-1
script/c93085839.lua
script/c93085839.lua
+0
-1
script/c93260132.lua
script/c93260132.lua
+0
-1
script/c95291684.lua
script/c95291684.lua
+1
-1
script/c97738431.lua
script/c97738431.lua
+1
-1
No files found.
ocgcore/effect.cpp
View file @
fc29a553
...
@@ -406,13 +406,8 @@ int32 effect::is_immuned(effect_set_v* effects) {
...
@@ -406,13 +406,8 @@ int32 effect::is_immuned(effect_set_v* effects) {
effect
*
peffect
;
effect
*
peffect
;
for
(
int
i
=
0
;
i
<
effects
->
count
;
++
i
)
{
for
(
int
i
=
0
;
i
<
effects
->
count
;
++
i
)
{
peffect
=
effects
->
at
(
i
);
peffect
=
effects
->
at
(
i
);
if
(
type
&
0x7f0
)
{
if
(
peffect
->
owner
==
owner
)
if
(
peffect
->
owner
==
handler
)
return
FALSE
;
return
FALSE
;
}
else
{
if
(
peffect
->
owner
==
owner
)
return
FALSE
;
}
if
(
peffect
->
value
)
{
if
(
peffect
->
value
)
{
pduel
->
lua
->
add_param
(
this
,
PARAM_TYPE_EFFECT
);
pduel
->
lua
->
add_param
(
this
,
PARAM_TYPE_EFFECT
);
if
(
peffect
->
check_value_condition
(
1
))
if
(
peffect
->
check_value_condition
(
1
))
...
...
ocgcore/field.cpp
View file @
fc29a553
...
@@ -1641,27 +1641,25 @@ int32 field::check_tuner_material(card* pcard, card* tuner, int32 findex1, int32
...
@@ -1641,27 +1641,25 @@ int32 field::check_tuner_material(card* pcard, card* tuner, int32 findex1, int32
}
}
card_vector
nsyn
;
card_vector
nsyn
;
card
*
pm
;
card
*
pm
;
if
(
mg
)
{
if
(
mg
)
{
for
(
auto
cit
=
mg
->
container
.
begin
();
cit
!=
mg
->
container
.
end
();
++
cit
)
{
for
(
auto
cit
=
mg
->
container
.
begin
();
cit
!=
mg
->
container
.
end
();
++
cit
)
{
pm
=
*
cit
;
pm
=
*
cit
;
if
(
pm
&&
pm
!=
tuner
&&
pm
!=
smat
&&
pm
->
is_can_be_synchro_material
(
pcard
,
tuner
))
{
if
(
pm
!=
tuner
&&
pm
!=
smat
&&
pm
->
is_can_be_synchro_material
(
pcard
,
tuner
))
{
if
(
pcheck
)
if
(
pcheck
)
pcheck
->
get_value
(
pm
);
pcheck
->
get_value
(
pm
);
if
(
pm
->
current
.
location
==
LOCATION_MZONE
&&
!
pm
->
is_position
(
POS_FACEUP
))
continue
;
if
(
!
pduel
->
lua
->
check_matching
(
pm
,
findex2
,
0
))
if
(
!
pduel
->
lua
->
check_matching
(
pm
,
findex2
,
0
))
continue
;
continue
;
nsyn
.
push_back
(
pm
);
nsyn
.
push_back
(
pm
);
pm
->
operation_param
=
pm
->
get_synchro_level
(
pcard
);
pm
->
operation_param
=
pm
->
get_synchro_level
(
pcard
);
}
}
}
}
if
(
check_with_sum_limit
(
&
nsyn
,
lv
,
0
,
1
,
min
,
max
))
{
pduel
->
restore_assumes
();
return
TRUE
;
}
}
else
{
}
else
{
for
(
uint8
p
=
0
;
p
<
2
;
++
p
)
{
for
(
uint8
p
=
0
;
p
<
2
;
++
p
)
{
for
(
int32
i
=
0
;
i
<
5
;
++
i
)
{
for
(
int32
i
=
0
;
i
<
5
;
++
i
)
{
pm
=
player
[
p
].
list_mzone
[
i
];
pm
=
player
[
p
].
list_mzone
[
i
];
if
(
pm
&&
pm
!=
tuner
&&
pm
!=
smat
&&
pm
->
is_position
(
POS_FACEUP
)
&&
pm
->
is_can_be_synchro_material
(
pcard
,
tuner
))
{
if
(
pm
&&
pm
!=
tuner
&&
pm
!=
smat
&&
pm
->
is_position
(
POS_FACEUP
)
&&
pm
->
is_can_be_synchro_material
(
pcard
,
tuner
))
{
if
(
pcheck
)
if
(
pcheck
)
pcheck
->
get_value
(
pm
);
pcheck
->
get_value
(
pm
);
if
(
!
pduel
->
lua
->
check_matching
(
pm
,
findex2
,
0
))
if
(
!
pduel
->
lua
->
check_matching
(
pm
,
findex2
,
0
))
...
@@ -1671,10 +1669,10 @@ int32 field::check_tuner_material(card* pcard, card* tuner, int32 findex1, int32
...
@@ -1671,10 +1669,10 @@ int32 field::check_tuner_material(card* pcard, card* tuner, int32 findex1, int32
}
}
}
}
}
}
if
(
check_with_sum_limit
(
&
nsyn
,
lv
,
0
,
1
,
min
,
max
))
{
}
pduel
->
restore_assumes
();
if
(
check_with_sum_limit
(
&
nsyn
,
lv
,
0
,
1
,
min
,
max
))
{
return
TRUE
;
pduel
->
restore_assumes
()
;
}
return
TRUE
;
}
}
}
}
}
}
...
...
ocgcore/operations.cpp
View file @
fc29a553
...
@@ -3785,74 +3785,80 @@ int32 field::select_synchro_material(int16 step, uint8 playerid, card* pcard, in
...
@@ -3785,74 +3785,80 @@ int32 field::select_synchro_material(int16 step, uint8 playerid, card* pcard, in
return
FALSE
;
return
FALSE
;
}
}
}
}
card_set
cset
;
card_set
*
mset
;
if
(
mg
)
mset
=
&
mg
->
container
;
else
{
for
(
uint8
p
=
0
;
p
<
2
;
++
p
)
{
for
(
int32
i
=
0
;
i
<
5
;
++
i
)
{
card
*
pm
=
player
[
p
].
list_mzone
[
i
];
if
(
pm
&&
(
pm
->
current
.
location
!=
LOCATION_MZONE
||
pm
->
is_position
(
POS_FACEUP
)))
cset
.
insert
(
pm
);
}
}
mset
=
&
cset
;
}
card
*
tuner
;
card
*
tuner
;
effect
*
peffect
;
effect
*
peffect
;
for
(
uint8
p
=
0
;
p
<
2
;
++
p
)
{
for
(
auto
cit
=
mset
->
begin
();
cit
!=
mset
->
end
();
++
cit
)
{
for
(
int32
i
=
0
;
i
<
5
;
++
i
)
{
pduel
->
restore_assumes
();
pduel
->
restore_assumes
();
tuner
=
*
cit
;
tuner
=
player
[
p
].
list_mzone
[
i
];
if
((
tuner
->
get_type
()
&
TYPE_TUNER
)
&&
tuner
->
is_can_be_synchro_material
(
pcard
))
{
if
(
tuner
&&
tuner
->
is_position
(
POS_FACEUP
)
&&
(
tuner
->
get_type
()
&
TYPE_TUNER
)
&&
tuner
->
is_can_be_synchro_material
(
pcard
))
{
effect
*
pcheck
=
tuner
->
is_affected_by_effect
(
EFFECT_SYNCHRO_CHECK
);
effect
*
pcheck
=
tuner
->
is_affected_by_effect
(
EFFECT_SYNCHRO_CHECK
);
if
(
pcheck
)
if
(
pcheck
)
pcheck
->
get_value
(
tuner
);
pcheck
->
get_value
(
tuner
);
if
(
!
pduel
->
lua
->
check_matching
(
tuner
,
-
2
,
0
))
if
(
mg
&&
!
mg
->
has_card
(
tuner
))
continue
;
if
((
peffect
=
tuner
->
is_affected_by_effect
(
EFFECT_SYNCHRO_MATERIAL_CUSTOM
,
pcard
)))
{
if
(
!
peffect
->
target
)
continue
;
continue
;
if
(
!
pduel
->
lua
->
check_matching
(
tuner
,
-
2
,
0
))
pduel
->
lua
->
add_param
(
peffect
,
PARAM_TYPE_EFFECT
);
pduel
->
lua
->
add_param
(
pcard
,
PARAM_TYPE_CARD
);
pduel
->
lua
->
add_param
(
-
1
,
PARAM_TYPE_INDEX
);
pduel
->
lua
->
add_param
(
min
,
PARAM_TYPE_INT
);
pduel
->
lua
->
add_param
(
max
,
PARAM_TYPE_INT
);
if
(
pduel
->
lua
->
check_condition
(
peffect
->
target
,
5
))
core
.
select_cards
.
push_back
(
tuner
);
}
else
{
int32
l
=
tuner
->
get_synchro_level
(
pcard
);
int32
l1
=
l
&
0xffff
;
//int32 l2 = l >> 16;
int32
lv
=
pcard
->
get_level
();
lv
-=
l1
;
if
(
lv
<=
0
)
continue
;
continue
;
if
((
peffect
=
tuner
->
is_affected_by_effect
(
EFFECT_SYNCHRO_MATERIAL_CUSTOM
,
pcard
)))
{
if
(
smat
)
{
if
(
!
peffect
->
target
)
if
(
pcheck
)
continue
;
pcheck
->
get_value
(
smat
);
pduel
->
lua
->
add_param
(
peffect
,
PARAM_TYPE_EFFECT
);
l
=
smat
->
get_synchro_level
(
pcard
);
pduel
->
lua
->
add_param
(
pcard
,
PARAM_TYPE_CARD
);
l1
=
l
&
0xffff
;
pduel
->
lua
->
add_param
(
-
1
,
PARAM_TYPE_INDEX
);
pduel
->
lua
->
add_param
(
min
,
PARAM_TYPE_INT
);
pduel
->
lua
->
add_param
(
max
,
PARAM_TYPE_INT
);
if
(
pduel
->
lua
->
check_condition
(
peffect
->
target
,
5
))
core
.
select_cards
.
push_back
(
tuner
);
}
else
{
int32
l
=
tuner
->
get_synchro_level
(
pcard
);
int32
l1
=
l
&
0xffff
;
//int32 l2 = l >> 16;
int32
lv
=
pcard
->
get_level
();
lv
-=
l1
;
lv
-=
l1
;
if
(
lv
<=
0
)
min
--
;
max
--
;
if
(
lv
<=
0
)
{
if
(
lv
==
0
&&
min
==
0
)
core
.
select_cards
.
push_back
(
tuner
);
continue
;
continue
;
if
(
smat
)
{
}
if
(
max
==
0
)
continue
;
}
card_vector
nsyn
;
card
*
pm
;
for
(
auto
mit
=
mset
->
begin
();
mit
!=
mset
->
end
();
++
mit
)
{
pm
=
*
mit
;
if
(
pm
!=
tuner
&&
pm
->
is_can_be_synchro_material
(
pcard
,
tuner
))
{
if
(
pcheck
)
if
(
pcheck
)
pcheck
->
get_value
(
smat
);
pcheck
->
get_value
(
pm
);
l
=
smat
->
get_synchro_level
(
pcard
);
if
(
!
pduel
->
lua
->
check_matching
(
pm
,
-
1
,
0
))
l1
=
l
&
0xffff
;
lv
-=
l1
;
min
--
;
max
--
;
if
(
lv
<=
0
)
{
if
(
lv
==
0
&&
min
==
0
)
core
.
select_cards
.
push_back
(
tuner
);
continue
;
continue
;
}
nsyn
.
push_back
(
pm
);
if
(
max
==
0
)
pm
->
operation_param
=
pm
->
get_synchro_level
(
pcard
);
continue
;
}
card_vector
nsyn
;
card
*
pm
;
for
(
uint8
np
=
0
;
np
<
2
;
++
np
)
{
for
(
int32
j
=
0
;
j
<
5
;
++
j
)
{
pm
=
player
[
np
].
list_mzone
[
j
];
if
(
pm
&&
pm
!=
tuner
&&
pm
->
is_position
(
POS_FACEUP
)
&&
pm
->
is_can_be_synchro_material
(
pcard
,
tuner
))
{
if
(
pcheck
)
pcheck
->
get_value
(
pm
);
if
(
mg
&&
!
mg
->
has_card
(
pm
))
continue
;
if
(
!
pduel
->
lua
->
check_matching
(
pm
,
-
1
,
0
))
continue
;
nsyn
.
push_back
(
pm
);
pm
->
operation_param
=
pm
->
get_synchro_level
(
pcard
);
}
}
}
}
if
(
check_with_sum_limit
(
&
nsyn
,
lv
,
0
,
1
,
min
,
max
))
core
.
select_cards
.
push_back
(
tuner
);
}
}
if
(
check_with_sum_limit
(
&
nsyn
,
lv
,
0
,
1
,
min
,
max
))
core
.
select_cards
.
push_back
(
tuner
);
}
}
}
}
}
}
...
@@ -3930,13 +3936,13 @@ int32 field::select_synchro_material(int16 step, uint8 playerid, card* pcard, in
...
@@ -3930,13 +3936,13 @@ int32 field::select_synchro_material(int16 step, uint8 playerid, card* pcard, in
max
--
;
max
--
;
}
}
core
.
select_cards
.
clear
();
core
.
select_cards
.
clear
();
for
(
uint8
np
=
0
;
np
<
2
;
++
np
)
{
if
(
mg
)
{
for
(
int32
i
=
0
;
i
<
5
;
++
i
)
{
for
(
auto
cit
=
mg
->
container
.
begin
();
cit
!=
mg
->
container
.
end
();
++
cit
)
{
card
*
pm
=
player
[
np
].
list_mzone
[
i
]
;
card
*
pm
=
*
cit
;
if
(
pm
&&
pm
!=
tuner
&&
pm
!=
smat
&&
pm
->
is_position
(
POS_FACEUP
)
&&
pm
->
is_can_be_synchro_material
(
pcard
,
tuner
))
{
if
(
pm
!=
tuner
&&
pm
!=
smat
&&
pm
->
is_can_be_synchro_material
(
pcard
,
tuner
))
{
if
(
pcheck
)
if
(
pcheck
)
pcheck
->
get_value
(
pm
);
pcheck
->
get_value
(
pm
);
if
(
mg
&&
!
mg
->
has_card
(
pm
))
if
(
pm
->
current
.
location
==
LOCATION_MZONE
&&
!
pm
->
is_position
(
POS_FACEUP
))
continue
;
continue
;
if
(
!
pduel
->
lua
->
check_matching
(
pm
,
-
1
,
0
))
if
(
!
pduel
->
lua
->
check_matching
(
pm
,
-
1
,
0
))
continue
;
continue
;
...
@@ -3944,6 +3950,20 @@ int32 field::select_synchro_material(int16 step, uint8 playerid, card* pcard, in
...
@@ -3944,6 +3950,20 @@ int32 field::select_synchro_material(int16 step, uint8 playerid, card* pcard, in
pm
->
operation_param
=
pm
->
get_synchro_level
(
pcard
);
pm
->
operation_param
=
pm
->
get_synchro_level
(
pcard
);
}
}
}
}
}
else
{
for
(
uint8
np
=
0
;
np
<
2
;
++
np
)
{
for
(
int32
i
=
0
;
i
<
5
;
++
i
)
{
card
*
pm
=
player
[
np
].
list_mzone
[
i
];
if
(
pm
&&
pm
!=
tuner
&&
pm
!=
smat
&&
pm
->
is_position
(
POS_FACEUP
)
&&
pm
->
is_can_be_synchro_material
(
pcard
,
tuner
))
{
if
(
pcheck
)
pcheck
->
get_value
(
pm
);
if
(
!
pduel
->
lua
->
check_matching
(
pm
,
-
1
,
0
))
continue
;
core
.
select_cards
.
push_back
(
pm
);
pm
->
operation_param
=
pm
->
get_synchro_level
(
pcard
);
}
}
}
}
}
pduel
->
write_buffer8
(
MSG_HINT
);
pduel
->
write_buffer8
(
MSG_HINT
);
pduel
->
write_buffer8
(
HINT_SELECTMSG
);
pduel
->
write_buffer8
(
HINT_SELECTMSG
);
...
...
script/c16825874.lua
View file @
fc29a553
...
@@ -39,23 +39,24 @@ function c16825874.ccon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -39,23 +39,24 @@ function c16825874.ccon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c16825874
.
cop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c16825874
.
cop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
rc
=
c
:
GetReasonCard
()
--leave redirect
--leave redirect
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_LEAVE_FIELD_REDIRECT
)
e1
:
SetCode
(
EFFECT_LEAVE_FIELD_REDIRECT
)
e1
:
SetValue
(
LOCATION_REMOVED
)
e1
:
SetValue
(
LOCATION_REMOVED
)
e1
:
SetReset
(
RESET_EVENT
+
0x7e0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x7e0000
)
c
:
GetReasonCard
()
:
RegisterEffect
(
e1
)
rc
:
RegisterEffect
(
e1
)
--cannot trigger
--cannot trigger
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e2
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
GetReasonCard
()
:
RegisterEffect
(
e2
)
rc
:
RegisterEffect
(
e2
)
--disable
--disable
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_DISABLE
)
e3
:
SetCode
(
EFFECT_DISABLE
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
GetReasonCard
()
:
RegisterEffect
(
e3
)
rc
:
RegisterEffect
(
e3
)
end
end
script/c20802187.lua
View file @
fc29a553
...
@@ -31,7 +31,7 @@ function c20802187.xyzfilter(c)
...
@@ -31,7 +31,7 @@ function c20802187.xyzfilter(c)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_XYZ
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_XYZ
)
end
end
function
c20802187
.
matfilter
(
c
)
function
c20802187
.
matfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
GetLevel
()
==
4
return
c
:
IsFaceup
()
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
GetLevel
()
==
4
and
not
c
:
IsType
(
TYPE_TOKEN
)
end
end
function
c20802187
.
mattg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c20802187
.
mattg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c20802187
.
xyzfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c20802187
.
xyzfilter
(
chkc
)
end
...
@@ -43,7 +43,7 @@ end
...
@@ -43,7 +43,7 @@ end
function
c20802187
.
matop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c20802187
.
matop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c20802187
.
matfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c20802187
.
matfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
...
script/c2095764.lua
View file @
fc29a553
...
@@ -82,6 +82,8 @@ function c2095764.immop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -82,6 +82,8 @@ function c2095764.immop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
rc
=
c
:
GetReasonCard
()
local
rc
=
c
:
GetReasonCard
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
2095764
,
1
))
e1
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e1
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e1
:
SetValue
(
c2095764
.
efilter
)
e1
:
SetValue
(
c2095764
.
efilter
)
...
...
script/c2273734.lua
View file @
fc29a553
...
@@ -38,7 +38,6 @@ function c2273734.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -38,7 +38,6 @@ function c2273734.spop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetTarget
(
c2273734
.
atktg
)
e1
:
SetTarget
(
c2273734
.
atktg
)
e1
:
SetReset
(
RESET_PHASE
+
RESET_END
)
e1
:
SetReset
(
RESET_PHASE
+
RESET_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
...
...
script/c24610207.lua
View file @
fc29a553
...
@@ -25,7 +25,7 @@ end
...
@@ -25,7 +25,7 @@ end
function
c24610207
.
efop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c24610207
.
efop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
rc
=
c
:
GetReasonCard
()
local
rc
=
c
:
GetReasonCard
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
r
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
24610207
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
24610207
,
0
))
e1
:
SetCategory
(
CATEGORY_DRAW
)
e1
:
SetCategory
(
CATEGORY_DRAW
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
...
...
script/c25642998.lua
View file @
fc29a553
...
@@ -28,8 +28,7 @@ function c25642998.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -28,8 +28,7 @@ function c25642998.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
end
end
function
c25642998
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c25642998
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tg
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
,
CHAININFO_TARGET_PARAM
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
tg
:
GetFirst
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsAttackable
()
and
Duel
.
NegateAttack
()
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsAttackable
()
and
Duel
.
NegateAttack
()
then
local
dam
=
Duel
.
GetMatchingGroupCount
(
c25642998
.
dfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
*
800
local
dam
=
Duel
.
GetMatchingGroupCount
(
c25642998
.
dfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
*
800
if
dam
>
0
then
if
dam
>
0
then
...
...
script/c25716180.lua
View file @
fc29a553
...
@@ -13,7 +13,7 @@ function c25716180.initial_effect(c)
...
@@ -13,7 +13,7 @@ function c25716180.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c25716180
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c25716180
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
Card
.
IsAbleToHand
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsAbleToHand
(
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
...
...
script/c25920413.lua
View file @
fc29a553
...
@@ -47,7 +47,7 @@ function c25920413.spop(e,tp,eg,ep,ev,re,r,rp,c)
...
@@ -47,7 +47,7 @@ function c25920413.spop(e,tp,eg,ep,ev,re,r,rp,c)
e1
:
SetReset
(
RESET_PHASE
+
RESET_END
)
e1
:
SetReset
(
RESET_PHASE
+
RESET_END
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTargetRange
(
1
,
0
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
e1
:
Clone
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_CANNOT_MSET
)
e2
:
SetCode
(
EFFECT_CANNOT_MSET
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
...
...
script/c27068117.lua
View file @
fc29a553
...
@@ -22,7 +22,7 @@ end
...
@@ -22,7 +22,7 @@ end
function
c27068117
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c27068117
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
not
tc
:
IsImmuneToEffect
(
e
)
and
c
:
IsRelateToEffect
(
e
)
then
c
:
CancelToGrave
()
c
:
CancelToGrave
()
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
end
end
...
...
script/c29228350.lua
View file @
fc29a553
...
@@ -21,6 +21,7 @@ function c29228350.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -21,6 +21,7 @@ function c29228350.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c29228350
.
filter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c29228350
.
filter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g
,
1
,
0
,
0
)
local
sg
=
Duel
.
GetMatchingGroup
(
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
sg
=
Duel
.
GetMatchingGroup
(
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
sg
,
sg
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
sg
,
sg
:
GetCount
(),
0
,
0
)
end
end
...
...
script/c313513.lua
View file @
fc29a553
...
@@ -25,7 +25,7 @@ function c313513.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -25,7 +25,7 @@ function c313513.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e1
:
SetReset
(
RESET_SELF_TURN
+
RESET_PHASE
+
RESET_END
,
2
)
e1
:
SetReset
(
RESET_SELF_TURN
+
RESET_PHASE
+
RESET_END
,
2
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTargetRange
(
1
,
0
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
e1
:
Clone
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_CANNOT_MSET
)
e2
:
SetCode
(
EFFECT_CANNOT_MSET
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
...
...
script/c34116027.lua
View file @
fc29a553
...
@@ -18,7 +18,6 @@ function c34116027.filter(c)
...
@@ -18,7 +18,6 @@ function c34116027.filter(c)
return
c
:
IsLevelBelow
(
4
)
and
c
:
IsRace
(
RACE_DRAGON
+
RACE_WINDBEAST
)
and
c
:
IsAbleToHand
()
return
c
:
IsLevelBelow
(
4
)
and
c
:
IsRace
(
RACE_DRAGON
+
RACE_WINDBEAST
)
and
c
:
IsAbleToHand
()
end
end
function
c34116027
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c34116027
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c34116027
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c34116027
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
nil
,
1
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
nil
,
1
,
tp
,
1
)
...
...
script/c34143852.lua
View file @
fc29a553
...
@@ -14,7 +14,7 @@ end
...
@@ -14,7 +14,7 @@ end
function
c34143852
.
efop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c34143852
.
efop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
rc
=
c
:
GetReasonCard
()
local
rc
=
c
:
GetReasonCard
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
r
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
34143852
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
34143852
,
0
))
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
...
...
script/c35089369.lua
View file @
fc29a553
...
@@ -82,6 +82,8 @@ function c35089369.immop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -82,6 +82,8 @@ function c35089369.immop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
rc
=
c
:
GetReasonCard
()
local
rc
=
c
:
GetReasonCard
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
35089369
,
1
))
e1
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e1
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e1
:
SetValue
(
c35089369
.
efilter
)
e1
:
SetValue
(
c35089369
.
efilter
)
...
...
script/c35984222.lua
View file @
fc29a553
...
@@ -32,9 +32,9 @@ function c35984222.initial_effect(c)
...
@@ -32,9 +32,9 @@ function c35984222.initial_effect(c)
local
e5
=
e3
:
Clone
()
local
e5
=
e3
:
Clone
()
e5
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
e5
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
local
e
5
=
e3
:
Clone
()
local
e
6
=
e3
:
Clone
()
e
5
:
SetCode
(
EFFECT_CANNOT_MSET
)
e
6
:
SetCode
(
EFFECT_CANNOT_MSET
)
c
:
RegisterEffect
(
e
5
)
c
:
RegisterEffect
(
e
6
)
end
end
function
c35984222
.
spr
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c35984222
.
spr
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
script/c3606728.lua
View file @
fc29a553
...
@@ -50,7 +50,7 @@ function c3606728.efop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -50,7 +50,7 @@ function c3606728.efop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_CARD
,
0
,
3606728
)
Duel
.
Hint
(
HINT_CARD
,
0
,
3606728
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
rc
=
c
:
GetReasonCard
()
local
rc
=
c
:
GetReasonCard
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
r
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
3606728
,
1
))
e1
:
SetDescription
(
aux
.
Stringid
(
3606728
,
1
))
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
...
...
script/c37620434.lua
View file @
fc29a553
...
@@ -14,7 +14,7 @@ function c37620434.filter(c)
...
@@ -14,7 +14,7 @@ function c37620434.filter(c)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_FIEND
)
and
c
:
IsControlerCanBeChanged
()
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_FIEND
)
and
c
:
IsControlerCanBeChanged
()
end
end
function
c37620434
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c37620434
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
GetLocation
()
==
LOCATION_MZONE
and
chkc
:
GetControler
()
~=
tp
and
c37620434
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c37620434
.
filter
(
chkc
)
end
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONTROL
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONTROL
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c37620434
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c37620434
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
...
...
script/c38331564.lua
View file @
fc29a553
...
@@ -43,7 +43,7 @@ function c38331564.effop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -43,7 +43,7 @@ function c38331564.effop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_CARD
,
0
,
38331564
)
Duel
.
Hint
(
HINT_CARD
,
0
,
38331564
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
rc
=
c
:
GetReasonCard
()
local
rc
=
c
:
GetReasonCard
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
r
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
38331564
,
1
))
e1
:
SetDescription
(
aux
.
Stringid
(
38331564
,
1
))
e1
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_DRAW
)
e1
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_DRAW
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
...
...
script/c39695323.lua
View file @
fc29a553
...
@@ -37,7 +37,7 @@ function c39695323.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -37,7 +37,7 @@ function c39695323.spop(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENCE
)
~=
0
then
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENCE
)
~=
0
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
Duel
.
ChangePosition
(
e
:
GetHandler
()
,
POS_FACEUP_DEFENCE
)
Duel
.
ChangePosition
(
c
,
POS_FACEUP_DEFENCE
)
end
end
end
end
end
end
...
...
script/c4239451.lua
View file @
fc29a553
...
@@ -44,6 +44,7 @@ function c4239451.adtg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -44,6 +44,7 @@ function c4239451.adtg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SelectTarget
(
tp
,
c4239451
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c4239451
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
end
end
function
c4239451
.
adop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c4239451
.
adop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
local
atk
=
tc
:
GetAttack
()
local
atk
=
tc
:
GetAttack
()
...
...
script/c44028461.lua
View file @
fc29a553
...
@@ -25,7 +25,7 @@ function c44028461.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -25,7 +25,7 @@ function c44028461.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTargetRange
(
1
,
0
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
e1
:
Clone
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_CANNOT_MSET
)
e2
:
SetCode
(
EFFECT_CANNOT_MSET
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
...
...
script/c44883830.lua
View file @
fc29a553
...
@@ -17,7 +17,6 @@ function c44883830.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -17,7 +17,6 @@ function c44883830.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
IsExistingMatchingCard
(
c44883830
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
3
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c44883830
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
3
,
nil
)
end
end
function
c44883830
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c44883830
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
...
...
script/c45170821.lua
View file @
fc29a553
...
@@ -29,7 +29,7 @@ function c45170821.valtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -29,7 +29,7 @@ function c45170821.valtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c45170821
.
valop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c45170821
.
valop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
o
=
e
:
GetLabelObject
(
e
)
local
o
=
e
:
GetLabelObject
()
local
s
=
g
:
GetFirst
()
local
s
=
g
:
GetFirst
()
if
s
==
o
then
s
=
g
:
GetNext
()
end
if
s
==
o
then
s
=
g
:
GetNext
()
end
if
s
:
IsFaceup
()
and
o
:
IsFaceup
()
and
s
:
IsRelateToEffect
(
e
)
and
o
:
IsRelateToEffect
(
e
)
then
if
s
:
IsFaceup
()
and
o
:
IsFaceup
()
and
s
:
IsRelateToEffect
(
e
)
and
o
:
IsRelateToEffect
(
e
)
then
...
...
script/c45305419.lua
View file @
fc29a553
...
@@ -21,7 +21,7 @@ function c45305419.filter(c,e,tp)
...
@@ -21,7 +21,7 @@ function c45305419.filter(c,e,tp)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsCode
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
c
,
c
:
GetCode
())
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsCode
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
c
,
c
:
GetCode
())
end
end
function
c45305419
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c45305419
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
GetLocation
()
==
LOCATION_GRAVE
and
chkc
:
GetControler
()
==
tp
and
c45305419
.
filter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c45305419
.
filter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c45305419
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingTarget
(
c45305419
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
...
...
script/c48092532.lua
View file @
fc29a553
...
@@ -20,15 +20,9 @@ function c48092532.initial_effect(c)
...
@@ -20,15 +20,9 @@ function c48092532.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c48092532
.
rmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c48092532
.
rmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsFacedown
()
then
return
false
end
local
c
=
e
:
GetHandler
()
if
bit
.
band
(
r
,
REASON_BATTLE
)
~=
0
then
return
c
:
IsFaceup
()
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
return
bit
.
band
(
e
:
GetHandler
():
GetBattlePosition
(),
POS_FACEUP
)
~=
0
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
c
:
GetPreviousControler
()
==
tp
and
e
:
GetHandler
():
GetPreviousControler
()
==
tp
else
return
bit
.
band
(
e
:
GetHandler
():
GetPreviousLocation
(),
LOCATION_ONFIELD
)
~=
0
and
bit
.
band
(
e
:
GetHandler
():
GetPreviousPosition
(),
POS_FACEUP
)
~=
0
and
e
:
GetHandler
():
GetPreviousControler
()
==
tp
end
end
end
function
c48092532
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c48092532
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
RegisterFlagEffect
(
48092532
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
e
:
GetHandler
():
RegisterFlagEffect
(
48092532
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
...
...
script/c51717541.lua
View file @
fc29a553
...
@@ -32,7 +32,6 @@ function c51717541.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -32,7 +32,6 @@ function c51717541.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
ds
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
ds
,
1
,
0
,
0
)
end
end
function
c51717541
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c51717541
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
ex1
,
g1
=
Duel
.
GetOperationInfo
(
0
,
CATEGORY_REMOVE
)
local
ex1
,
g1
=
Duel
.
GetOperationInfo
(
0
,
CATEGORY_REMOVE
)
local
rm
=
g1
:
GetFirst
()
local
rm
=
g1
:
GetFirst
()
if
not
rm
:
IsRelateToEffect
(
e
)
then
return
end
if
not
rm
:
IsRelateToEffect
(
e
)
then
return
end
...
...
script/c51858306.lua
View file @
fc29a553
...
@@ -51,7 +51,6 @@ function c51858306.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,7 +51,6 @@ function c51858306.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c51858306
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c51858306
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
():
GetLabelObject
()
return
e
:
GetHandler
():
IsFaceup
()
and
e
:
GetHandler
():
GetFlagEffect
(
51858306
)
~=
0
return
e
:
GetHandler
():
IsFaceup
()
and
e
:
GetHandler
():
GetFlagEffect
(
51858306
)
~=
0
end
end
function
c51858306
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c51858306
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
script/c52105192.lua
View file @
fc29a553
...
@@ -21,7 +21,7 @@ function c52105192.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -21,7 +21,7 @@ function c52105192.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTargetRange
(
1
,
0
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
e1
:
Clone
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_CANNOT_MSET
)
e2
:
SetCode
(
EFFECT_CANNOT_MSET
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
...
...
script/c525110.lua
View file @
fc29a553
--
ץȥޥܩ`
--
プチトマボー
function
c525110
.
initial_effect
(
c
)
function
c525110
.
initial_effect
(
c
)
--special summon
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
@@ -6,7 +6,6 @@ function c525110.initial_effect(c)
...
@@ -6,7 +6,6 @@ function c525110.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_BATTLE_DESTROYED
)
e1
:
SetCode
(
EVENT_BATTLE_DESTROYED
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
c525110
.
condition
)
e1
:
SetCondition
(
c525110
.
condition
)
e1
:
SetTarget
(
c525110
.
target
)
e1
:
SetTarget
(
c525110
.
target
)
e1
:
SetOperation
(
c525110
.
operation
)
e1
:
SetOperation
(
c525110
.
operation
)
...
...
script/c57274196.lua
View file @
fc29a553
...
@@ -24,9 +24,9 @@ function c57274196.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -24,9 +24,9 @@ function c57274196.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetLabelObject
(
e
)
e1
:
SetLabelObject
(
e
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e
3
=
e1
:
Clone
()
local
e
2
=
e1
:
Clone
()
e
3
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
e
2
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
Duel
.
RegisterEffect
(
e
3
,
tp
)
Duel
.
RegisterEffect
(
e
2
,
tp
)
local
e3
=
e1
:
Clone
()
local
e3
=
e1
:
Clone
()
e3
:
SetCode
(
EFFECT_CANNOT_FLIP_SUMMON
)
e3
:
SetCode
(
EFFECT_CANNOT_FLIP_SUMMON
)
Duel
.
RegisterEffect
(
e3
,
tp
)
Duel
.
RegisterEffect
(
e3
,
tp
)
...
...
script/c57774843.lua
View file @
fc29a553
...
@@ -51,8 +51,8 @@ function c57774843.spcon(e,c)
...
@@ -51,8 +51,8 @@ function c57774843.spcon(e,c)
return
ct
>
3
return
ct
>
3
end
end
function
c57774843
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c57774843
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
1000
)
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
1000
)
end
else
Duel
.
PayLPCost
(
tp
,
1000
)
end
Duel
.
PayLPCost
(
tp
,
1000
)
end
end
function
c57774843
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c57774843
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
script/c57784563.lua
View file @
fc29a553
...
@@ -15,7 +15,6 @@ function c57784563.initial_effect(c)
...
@@ -15,7 +15,6 @@ function c57784563.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c57784563
.
eqcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c57784563
.
eqcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
ec
=
e
:
GetLabelObject
()
local
ec
=
e
:
GetLabelObject
()
return
ec
==
nil
or
ec
:
GetFlagEffect
(
57784563
)
==
0
return
ec
==
nil
or
ec
:
GetFlagEffect
(
57784563
)
==
0
end
end
...
...
script/c5973663.lua
View file @
fc29a553
--
--
世界樹
function
c5973663
.
initial_effect
(
c
)
function
c5973663
.
initial_effect
(
c
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
script/c59771339.lua
View file @
fc29a553
...
@@ -69,4 +69,3 @@ function c59771339.desop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -69,4 +69,3 @@ function c59771339.desop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Destroy
(
d
,
REASON_EFFECT
)
Duel
.
Destroy
(
d
,
REASON_EFFECT
)
end
end
end
end
script/c64605089.lua
View file @
fc29a553
...
@@ -45,7 +45,7 @@ end
...
@@ -45,7 +45,7 @@ end
function
c64605089
.
efop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c64605089
.
efop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
rc
=
c
:
GetReasonCard
()
local
rc
=
c
:
GetReasonCard
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
r
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
...
...
script/c64726269.lua
View file @
fc29a553
...
@@ -51,7 +51,7 @@ end
...
@@ -51,7 +51,7 @@ end
function
c64726269
.
effop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c64726269
.
effop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
rc
=
c
:
GetReasonCard
()
local
rc
=
c
:
GetReasonCard
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
r
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
...
...
script/c66500065.lua
View file @
fc29a553
...
@@ -82,6 +82,8 @@ function c66500065.indop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -82,6 +82,8 @@ function c66500065.indop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
rc
=
c
:
GetReasonCard
()
local
rc
=
c
:
GetReasonCard
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
66500065
,
1
))
e1
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
1
)
...
...
script/c69488544.lua
View file @
fc29a553
...
@@ -49,7 +49,6 @@ function c69488544.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -49,7 +49,6 @@ function c69488544.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c69488544
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c69488544
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
aux
.
IsDualState
(
e
)
or
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
if
not
aux
.
IsDualState
(
e
)
or
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
if
not
g
or
not
g
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_MZONE
)
then
return
false
end
if
not
g
or
not
g
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_MZONE
)
then
return
false
end
...
...
script/c7080743.lua
View file @
fc29a553
...
@@ -14,7 +14,7 @@ end
...
@@ -14,7 +14,7 @@ end
function
c7080743
.
efop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c7080743
.
efop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
rc
=
c
:
GetReasonCard
()
local
rc
=
c
:
GetReasonCard
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
r
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
7080743
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
7080743
,
0
))
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
...
...
script/c72502414.lua
View file @
fc29a553
...
@@ -24,7 +24,7 @@ end
...
@@ -24,7 +24,7 @@ end
function
c72502414
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c72502414
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
end
end
end
end
script/c74825788.lua
View file @
fc29a553
...
@@ -11,10 +11,10 @@ function c74825788.initial_effect(c)
...
@@ -11,10 +11,10 @@ function c74825788.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c74825788
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c74825788
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
GetLocation
()
==
LOCATION_MZONE
and
chkc
:
GetControler
()
==
tp
and
chkc
:
IsFaceup
()
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
chkc
:
IsFaceup
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
end
function
c74825788
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c74825788
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
...
...
script/c75434695.lua
View file @
fc29a553
...
@@ -20,7 +20,6 @@ function c75434695.filter(c)
...
@@ -20,7 +20,6 @@ function c75434695.filter(c)
return
c
:
IsCode
(
24094653
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
return
c
:
IsCode
(
24094653
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
end
end
function
c75434695
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c75434695
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c75434695
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c75434695
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
0
,
1
,
0
,
LOCATION_DECK
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
0
,
1
,
0
,
LOCATION_DECK
+
LOCATION_GRAVE
)
end
end
...
...
script/c75732622.lua
View file @
fc29a553
...
@@ -45,7 +45,7 @@ function c75732622.spcop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -45,7 +45,7 @@ function c75732622.spcop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_PHASE
+
RESET_END
)
e1
:
SetReset
(
RESET_PHASE
+
RESET_END
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTargetRange
(
1
,
0
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
e1
:
Clone
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_CANNOT_MSET
)
e2
:
SetCode
(
EFFECT_CANNOT_MSET
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
script/c75967082.lua
View file @
fc29a553
...
@@ -17,7 +17,6 @@ function c75967082.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -17,7 +17,6 @@ function c75967082.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
IsExistingMatchingCard
(
c75967082
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
3
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c75967082
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
3
,
nil
)
end
end
function
c75967082
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c75967082
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
...
...
script/c78700060.lua
View file @
fc29a553
...
@@ -35,7 +35,6 @@ function c78700060.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -35,7 +35,6 @@ function c78700060.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
end
end
function
c78700060
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c78700060
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
Duel
.
GetCurrentChain
()
~=
ev
+
1
then
return
end
if
Duel
.
GetCurrentChain
()
~=
ev
+
1
then
return
end
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
...
...
script/c80457744.lua
View file @
fc29a553
--
֩`ȡꥢ`
--
ブースト・ウォリアー
function
c80457744
.
initial_effect
(
c
)
function
c80457744
.
initial_effect
(
c
)
--special summon
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
script/c81913510.lua
View file @
fc29a553
...
@@ -5,41 +5,36 @@ function c81913510.initial_effect(c)
...
@@ -5,41 +5,36 @@ function c81913510.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
Set
Cost
(
c81913510
.
cost
)
e1
:
Set
Property
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetTarget
(
c81913510
.
target
)
e1
:
SetTarget
(
c81913510
.
target
)
e1
:
SetOperation
(
c81913510
.
activate
)
e1
:
SetOperation
(
c81913510
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c81913510
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
1
)
return
true
end
function
c81913510
.
filter1
(
c
,
e
,
tp
)
function
c81913510
.
filter1
(
c
,
e
,
tp
)
local
code
=
c
:
GetCode
()
local
code
=
c
:
GetCode
()
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x1f
)
and
c
:
IsAbleToGraveAsCost
()
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x1f
)
and
Duel
.
IsExistingMatchingCard
(
c81913510
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
code
,
e
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
c81913510
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
code
,
e
,
tp
)
end
end
function
c81913510
.
filter2
(
c
,
code
,
e
,
tp
)
function
c81913510
.
filter2
(
c
,
code
,
e
,
tp
)
return
c
:
IsCode
(
code
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
return
c
:
IsCode
(
code
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
end
end
function
c81913510
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c81913510
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c81913510
.
filter1
(
chkc
,
e
,
tp
)
end
if
e
:
GetLabel
()
~=
1
then
return
false
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
e
:
SetLabel
(
0
)
and
Duel
.
IsExistingTarget
(
c81913510
.
filter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
e
,
tp
)
end
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingMatchingCard
(
c81913510
.
filter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
rg
=
Duel
.
SelectMatchingCard
(
tp
,
c81913510
.
filter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c81913510
.
filter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SendtoGrave
(
rg
,
REASON_COST
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g
,
1
,
0
,
0
)
e
:
SetLabel
(
rg
:
GetFirst
():
GetCode
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
end
function
c81913510
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c81913510
.
activate
(
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
local
code
=
e
:
GetLabel
()
local
tc1
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstMatchingCard
(
c81913510
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
code
,
e
,
tp
)
if
tc1
:
IsRelateToEffect
(
e
)
and
Duel
.
SendtoGrave
(
tc1
,
REASON_EFFECT
)
~=
0
then
if
tc
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
~=
0
then
local
code
=
tc1
:
GetCode
()
tc
:
CompleteProcedure
()
local
tc2
=
Duel
.
GetFirstMatchingCard
(
c81913510
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
code
,
e
,
tp
)
if
tc2
and
Duel
.
SpecialSummon
(
tc2
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
~=
0
then
tc2
:
CompleteProcedure
()
end
end
end
end
end
script/c83108603.lua
View file @
fc29a553
...
@@ -30,7 +30,7 @@ function c83108603.xyzfilter(c,tp)
...
@@ -30,7 +30,7 @@ function c83108603.xyzfilter(c,tp)
and
Duel
.
IsExistingMatchingCard
(
c83108603
.
matfilter
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
0
,
1
,
c
)
and
Duel
.
IsExistingMatchingCard
(
c83108603
.
matfilter
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
0
,
1
,
c
)
end
end
function
c83108603
.
matfilter
(
c
)
function
c83108603
.
matfilter
(
c
)
return
(
c
:
IsLocation
(
LOCATION_HAND
)
or
c
:
IsFaceup
())
and
c
:
IsSetCard
(
0x107d
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
(
c
:
IsLocation
(
LOCATION_HAND
)
or
c
:
IsFaceup
())
and
c
:
IsSetCard
(
0x107d
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsType
(
TYPE_TOKEN
)
end
end
function
c83108603
.
mattg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c83108603
.
mattg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c83108603
.
xyzfilter
(
chkc
,
tp
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c83108603
.
xyzfilter
(
chkc
,
tp
)
end
...
@@ -41,7 +41,7 @@ end
...
@@ -41,7 +41,7 @@ end
function
c83108603
.
matop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c83108603
.
matop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c83108603
.
matfilter
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
0
,
1
,
1
,
tc
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c83108603
.
matfilter
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
0
,
1
,
1
,
tc
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
...
script/c83272895.lua
View file @
fc29a553
...
@@ -14,7 +14,7 @@ end
...
@@ -14,7 +14,7 @@ end
function
c83272895
.
efop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c83272895
.
efop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
rc
=
c
:
GetReasonCard
()
local
rc
=
c
:
GetReasonCard
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
r
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_PIERCE
)
e1
:
SetCode
(
EFFECT_PIERCE
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
...
@@ -24,7 +24,7 @@ function c83272895.efop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -24,7 +24,7 @@ function c83272895.efop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e2
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e2
:
SetValue
(
TYPE_MONSTER
+
TYPE_EFFECT
+
TYPE_XYZ
)
e2
:
SetValue
(
TYPE_MONSTER
+
TYPE_EFFECT
+
TYPE_XYZ
)
e2
:
SetReset
(
RESET_EVENT
+
0x1f
f
0000
)
e2
:
SetReset
(
RESET_EVENT
+
0x1f
e
0000
)
rc
:
RegisterEffect
(
e2
)
rc
:
RegisterEffect
(
e2
)
end
end
end
end
script/c8696773.lua
View file @
fc29a553
...
@@ -37,7 +37,7 @@ end
...
@@ -37,7 +37,7 @@ end
function
c8696773
.
effop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c8696773
.
effop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
rc
=
c
:
GetReasonCard
()
local
rc
=
c
:
GetReasonCard
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
r
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
8696773
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
8696773
,
0
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
...
...
script/c87319876.lua
View file @
fc29a553
...
@@ -25,6 +25,7 @@ function c87319876.ccon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -25,6 +25,7 @@ function c87319876.ccon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c87319876
.
cop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c87319876
.
cop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
rc
=
c
:
GetReasonCard
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
...
@@ -33,14 +34,14 @@ function c87319876.cop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -33,14 +34,14 @@ function c87319876.cop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
)
e1
:
SetValue
(
c87319876
.
valcon
)
e1
:
SetValue
(
c87319876
.
valcon
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
GetReasonCard
()
:
RegisterEffect
(
e1
)
rc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EVENT_DAMAGE_STEP_END
)
e2
:
SetCode
(
EVENT_DAMAGE_STEP_END
)
e2
:
SetCondition
(
c87319876
.
adcon
)
e2
:
SetCondition
(
c87319876
.
adcon
)
e2
:
SetOperation
(
c87319876
.
adop
)
e2
:
SetOperation
(
c87319876
.
adop
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
GetReasonCard
()
:
RegisterEffect
(
e2
)
rc
:
RegisterEffect
(
e2
)
end
end
function
c87319876
.
valcon
(
e
,
re
,
r
,
rp
)
function
c87319876
.
valcon
(
e
,
re
,
r
,
rp
)
if
bit
.
band
(
r
,
REASON_BATTLE
)
~=
0
then
if
bit
.
band
(
r
,
REASON_BATTLE
)
~=
0
then
...
...
script/c90246973.lua
View file @
fc29a553
--
ѥ`ԥ
--
パワー・ピカクス
function
c90246973
.
initial_effect
(
c
)
function
c90246973
.
initial_effect
(
c
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
@@ -50,7 +50,7 @@ function c90246973.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -50,7 +50,7 @@ function c90246973.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c90246973
.
rmfilter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
,
ec
:
GetLevel
())
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c90246973
.
rmfilter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
,
ec
:
GetLevel
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c90246973
.
rmfilter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
ec
:
GetLevel
())
local
g
=
Duel
.
SelectTarget
(
tp
,
c90246973
.
rmfilter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
ec
:
GetLevel
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
g
:
GetCount
()
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
end
end
function
c90246973
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c90246973
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
script/c9260791.lua
View file @
fc29a553
...
@@ -55,7 +55,7 @@ end
...
@@ -55,7 +55,7 @@ end
function
c9260791
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c9260791
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
end
end
end
end
script/c92901944.lua
View file @
fc29a553
...
@@ -29,7 +29,7 @@ function c92901944.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -29,7 +29,7 @@ function c92901944.spcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c92901944
.
cfilter
,
1
,
e
:
GetHandler
(),
tp
)
and
not
eg
:
IsContains
(
e
:
GetHandler
())
return
eg
:
IsExists
(
c92901944
.
cfilter
,
1
,
e
:
GetHandler
(),
tp
)
and
not
eg
:
IsContains
(
e
:
GetHandler
())
end
end
function
c92901944
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c92901944
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
...
...
script/c93085839.lua
View file @
fc29a553
--Noble Knight Eachtar
--Noble Knight Eachtar
function
c93085839
.
initial_effect
(
c
)
function
c93085839
.
initial_effect
(
c
)
c
:
SetUniqueOnField
(
1
,
0
,
93085839
)
--special summon
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
93085839
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
93085839
,
0
))
...
...
script/c93260132.lua
View file @
fc29a553
...
@@ -13,7 +13,6 @@ function c93260132.filter(c)
...
@@ -13,7 +13,6 @@ function c93260132.filter(c)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_SPELL
)
and
c
:
IsDestructable
()
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_SPELL
)
and
c
:
IsDestructable
()
end
end
function
c93260132
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c93260132
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c93260132
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c93260132
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
local
sg
=
Duel
.
GetMatchingGroup
(
c93260132
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
local
sg
=
Duel
.
GetMatchingGroup
(
c93260132
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
sg
,
sg
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
sg
,
sg
:
GetCount
(),
0
,
0
)
...
...
script/c95291684.lua
View file @
fc29a553
...
@@ -76,7 +76,7 @@ function c95291684.lmop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -76,7 +76,7 @@ function c95291684.lmop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_PHASE
+
RESET_END
)
e1
:
SetReset
(
RESET_PHASE
+
RESET_END
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTargetRange
(
1
,
0
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
e1
:
Clone
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_CANNOT_MSET
)
e2
:
SetCode
(
EFFECT_CANNOT_MSET
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
script/c97738431.lua
View file @
fc29a553
...
@@ -21,7 +21,7 @@ function c97738431.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -21,7 +21,7 @@ function c97738431.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c97738431
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c97738431
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
not
tc
:
IsImmuneToEffect
(
e
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsType
,
tp
,
LOCATION_HAND
,
0
,
nil
,
TYPE_MONSTER
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsType
,
tp
,
LOCATION_HAND
,
0
,
nil
,
TYPE_MONSTER
)
if
g
:
GetCount
()
>=
2
then
if
g
:
GetCount
()
>=
2
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