Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-THC-cards
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
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
HiiragiGuardians
ygopro-THC-cards
Commits
96a8c07e
Commit
96a8c07e
authored
Jul 25, 2022
by
伊蕾娜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:金子更新包:修复金卡bug
parent
80a6154b
Pipeline
#14781
passed with stage
in 52 seconds
Changes
10
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
53 additions
and
25 deletions
+53
-25
script/c22234.lua
script/c22234.lua
+2
-2
script/c22236.lua
script/c22236.lua
+2
-2
script/c22238.lua
script/c22238.lua
+3
-3
script/c22240.lua
script/c22240.lua
+3
-3
script/c22249.lua
script/c22249.lua
+9
-2
script/c22250.lua
script/c22250.lua
+9
-2
script/c22251.lua
script/c22251.lua
+9
-2
script/c22252.lua
script/c22252.lua
+9
-2
script/c86379106.lua
script/c86379106.lua
+6
-6
script/c86379382.lua
script/c86379382.lua
+1
-1
No files found.
script/c22234.lua
View file @
96a8c07e
...
...
@@ -46,10 +46,10 @@ function c22234.mfilter1(c)
return
c
:
IsRace
(
RACE_SPELLCASTER
)
end
function
c22234
.
mfilter2
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
or
((
c
:
Is
SetCard
(
0x183
)
or
c
:
IsCode
(
22200
))
and
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22249
))
return
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
or
((
c
:
Is
FusionSetCard
(
0x183
)
or
(
c
:
IsFusionCode
(
22200
)
and
not
c
:
IsLocation
(
LOCATION_DECK
)))
and
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22248
))
or
(
c
:
IsFusionCode
(
22200
)
and
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22251
))
end
function
c22234
.
mfilter3
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_EARTH
)
or
((
c
:
Is
SetCard
(
0x182
)
or
c
:
IsCode
(
22200
))
and
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22249
))
return
c
:
IsAttribute
(
ATTRIBUTE_EARTH
)
or
((
c
:
Is
FusionSetCard
(
0x182
)
or
(
c
:
IsFusionCode
(
22200
)
and
not
c
:
IsLocation
(
LOCATION_DECK
)))
and
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22248
))
or
(
c
:
IsFusionCode
(
22200
)
and
(
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22250
)
or
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22252
)
))
end
function
c22234
.
filter
(
c
)
return
c
:
IsSetCard
(
0xb046
)
and
c
:
IsAbleToHand
()
...
...
script/c22236.lua
View file @
96a8c07e
...
...
@@ -44,10 +44,10 @@ function c22236.mfilter1(c)
return
c
:
IsRace
(
RACE_SPELLCASTER
)
end
function
c22236
.
mfilter2
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
or
((
c
:
Is
SetCard
(
0x184
)
or
c
:
IsCode
(
22200
))
and
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22249
))
return
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
or
((
c
:
Is
FusionSetCard
(
0x184
)
or
(
c
:
IsFusionCode
(
22200
)
and
not
c
:
IsLocation
(
LOCATION_DECK
)))
and
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22248
))
or
(
c
:
IsFusionCode
(
22200
)
and
(
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22249
)
or
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22251
)
))
end
function
c22236
.
mfilter3
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_EARTH
)
or
((
c
:
Is
SetCard
(
0x182
)
or
c
:
IsCode
(
22200
))
and
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22249
))
return
c
:
IsAttribute
(
ATTRIBUTE_EARTH
)
or
((
c
:
Is
FusionSetCard
(
0x182
)
or
(
c
:
IsFusionCode
(
22200
)
and
not
c
:
IsLocation
(
LOCATION_DECK
)))
and
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22248
))
or
(
c
:
IsFusionCode
(
22200
)
and
(
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22250
)
or
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22252
)
))
end
function
c22236
.
thfilter1
(
c
)
return
c
:
IsSetCard
(
0xb046
)
and
c
:
IsAbleToHand
()
...
...
script/c22238.lua
View file @
96a8c07e
...
...
@@ -39,13 +39,13 @@ function c22238.initial_effect(c)
end
--
function
c22238
.
mfilter1
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
or
((
c
:
Is
SetCard
(
0x180
)
or
c
:
IsCode
(
22200
))
and
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22249
))
return
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
or
((
c
:
Is
FusionSetCard
(
0x180
)
or
(
c
:
IsFusionCode
(
22200
)
and
not
c
:
IsLocation
(
LOCATION_DECK
)))
and
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22248
))
or
(
c
:
IsFusionCode
(
22200
)
and
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22252
))
end
function
c22238
.
mfilter2
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
or
((
c
:
Is
SetCard
(
0x179
)
or
c
:
IsCode
(
22200
))
and
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22249
))
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
or
((
c
:
Is
FusionSetCard
(
0x179
)
or
(
c
:
IsFusionCode
(
22200
)
and
not
c
:
IsLocation
(
LOCATION_DECK
)))
and
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22248
))
or
(
c
:
IsFusionCode
(
22200
)
and
(
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22249
)
or
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22252
)
))
end
function
c22238
.
mfilter3
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
or
((
c
:
Is
SetCard
(
0x178
)
or
c
:
IsCode
(
22200
))
and
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22249
))
return
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
or
((
c
:
Is
FusionSetCard
(
0x178
)
or
(
c
:
IsFusionCode
(
22200
)
and
not
c
:
IsLocation
(
LOCATION_DECK
)))
and
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22248
))
or
(
c
:
IsFusionCode
(
22200
)
and
(
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22249
)
or
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22250
)
))
end
--
function
c22238
.
filters
(
c
)
...
...
script/c22240.lua
View file @
96a8c07e
...
...
@@ -39,13 +39,13 @@ function c22240.initial_effect(c)
end
--
function
c22240
.
mfilter1
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
or
((
c
:
Is
SetCard
(
0x184
)
or
c
:
IsCode
(
22200
))
and
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22249
))
return
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
or
((
c
:
Is
FusionSetCard
(
0x184
)
or
(
c
:
IsFusionCode
(
22200
)
and
not
c
:
IsLocation
(
LOCATION_DECK
)))
and
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22248
))
or
(
c
:
IsFusionCode
(
22200
)
and
(
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22249
)
or
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22251
)
))
end
function
c22240
.
mfilter2
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
or
((
c
:
Is
SetCard
(
0x183
)
or
c
:
IsCode
(
22200
))
and
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22249
))
return
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
or
((
c
:
Is
FusionSetCard
(
0x183
)
or
(
c
:
IsFusionCode
(
22200
)
and
not
c
:
IsLocation
(
LOCATION_DECK
)))
and
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22248
))
or
(
c
:
IsFusionCode
(
22200
)
and
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22251
))
end
function
c22240
.
mfilter3
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
or
((
c
:
Is
SetCard
(
0x180
)
or
c
:
IsCode
(
22200
))
and
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22249
))
return
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
or
((
c
:
Is
FusionSetCard
(
0x180
)
or
(
c
:
IsFusionCode
(
22200
)
and
not
c
:
IsLocation
(
LOCATION_DECK
)))
and
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22248
))
or
(
c
:
IsFusionCode
(
22200
)
and
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
22252
))
end
--
function
c22240
.
filter
(
c
)
...
...
script/c22249.lua
View file @
96a8c07e
...
...
@@ -83,7 +83,7 @@ function c22249.tsfilter30(c,e,tp,m,f,chkf,exg)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
end
function
c22249
.
tsfilter31
(
c
)
return
((
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
and
c
:
IsType
(
TYPE_MONSTER
))
or
c
:
IsSetCard
(
0x180
)
or
c
:
IsCode
(
22200
))
and
not
c
:
IsLocation
(
LOCATION_DECK
)
and
Duel
.
GetLocationCountFromEx
(
c
:
GetControler
(),
c
:
GetControler
(),
c
,
TYPE_FUSION
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c22249
.
tsfilter32
,
c
:
GetControler
(),
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_ONFIELD
,
0
,
1
,
c
)
and
Duel
.
IsExistingMatchingCard
(
c22249
.
tsfilter33
,
c
:
GetControler
(),
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
c
)
return
((
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
and
c
:
IsType
(
TYPE_MONSTER
))
or
c
:
IsSetCard
(
0x180
)
or
c
:
IsCode
(
22200
))
and
not
c
:
IsLocation
(
LOCATION_DECK
)
and
Duel
.
GetLocationCountFromEx
(
c
:
GetControler
(),
c
:
GetControler
(),
c
,
TYPE_FUSION
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c22249
.
tsfilter32
,
c
:
GetControler
(),
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_ONFIELD
,
0
,
1
,
c
)
and
Duel
.
IsExistingMatchingCard
(
c22249
.
tsfilter33
,
c
:
GetControler
(),
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
c
)
end
function
c22249
.
tsfilter32
(
c
)
return
((
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
c
:
IsType
(
TYPE_MONSTER
))
or
c
:
IsSetCard
(
0x184
)
or
c
:
IsCode
(
22200
))
and
Duel
.
GetLocationCountFromEx
(
c
:
GetControler
(),
c
:
GetControler
(),
c
,
TYPE_FUSION
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c22249
.
tsfilter33
,
c
:
GetControler
(),
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
c
)
...
...
@@ -137,9 +137,15 @@ function c22249.activate(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
2224
9
)
e1
:
SetCode
(
2224
8
)
e1
:
SetTargetRange
(
1
,
0
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetCode
(
22249
)
e2
:
SetTargetRange
(
1
,
0
)
Duel
.
RegisterEffect
(
e2
,
tp
)
--
local
chkf
=
tp
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
):
Filter
(
c22249
.
filter1
,
nil
,
e
)
...
...
@@ -178,6 +184,7 @@ function c22249.activate(e,tp,eg,ep,ev,re,r,rp)
end
--flag reset
e1
:
Reset
()
e2
:
Reset
()
end
function
c22249
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
end
...
...
script/c22250.lua
View file @
96a8c07e
...
...
@@ -82,7 +82,7 @@ function c22250.tsfilter30(c,e,tp,m,f,chkf,exg)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
end
function
c22250
.
tsfilter31
(
c
)
return
((
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
and
c
:
IsType
(
TYPE_MONSTER
))
or
c
:
IsSetCard
(
0x180
)
or
c
:
IsCode
(
22200
))
and
not
c
:
IsLocation
(
LOCATION_DECK
)
and
Duel
.
GetLocationCountFromEx
(
c
:
GetControler
(),
c
:
GetControler
(),
c
,
TYPE_FUSION
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c22250
.
tsfilter32
,
c
:
GetControler
(),
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
c
)
and
Duel
.
IsExistingMatchingCard
(
c22250
.
tsfilter33
,
c
:
GetControler
(),
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
c
)
return
((
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
and
c
:
IsType
(
TYPE_MONSTER
))
or
c
:
IsSetCard
(
0x180
)
or
c
:
IsCode
(
22200
))
and
not
c
:
IsLocation
(
LOCATION_DECK
)
and
Duel
.
GetLocationCountFromEx
(
c
:
GetControler
(),
c
:
GetControler
(),
c
,
TYPE_FUSION
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c22250
.
tsfilter32
,
c
:
GetControler
(),
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
c
)
and
Duel
.
IsExistingMatchingCard
(
c22250
.
tsfilter33
,
c
:
GetControler
(),
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
c
)
end
function
c22250
.
tsfilter32
(
c
)
return
((
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
c
:
IsType
(
TYPE_MONSTER
))
or
c
:
IsSetCard
(
0x184
)
or
c
:
IsCode
(
22200
))
and
Duel
.
GetLocationCountFromEx
(
c
:
GetControler
(),
c
:
GetControler
(),
c
,
TYPE_FUSION
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c22250
.
tsfilter33
,
c
:
GetControler
(),
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
c
)
...
...
@@ -136,9 +136,15 @@ function c22250.activate(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
222
50
)
e1
:
SetCode
(
222
48
)
e1
:
SetTargetRange
(
1
,
0
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetCode
(
22250
)
e2
:
SetTargetRange
(
1
,
0
)
Duel
.
RegisterEffect
(
e2
,
tp
)
--
local
chkf
=
tp
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
):
Filter
(
c22250
.
filter1
,
nil
,
e
)
...
...
@@ -177,6 +183,7 @@ function c22250.activate(e,tp,eg,ep,ev,re,r,rp)
end
--flag reset
e1
:
Reset
()
e2
:
Reset
()
end
function
c22250
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
end
...
...
script/c22251.lua
View file @
96a8c07e
...
...
@@ -82,7 +82,7 @@ function c22251.tsfilter30(c,e,tp,m,f,chkf,exg)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
end
function
c22251
.
tsfilter31
(
c
)
return
((
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
and
c
:
IsType
(
TYPE_MONSTER
))
or
c
:
IsSetCard
(
0x180
)
or
c
:
IsCode
(
22200
))
and
not
c
:
IsLocation
(
LOCATION_DECK
)
and
Duel
.
GetLocationCountFromEx
(
c
:
GetControler
(),
c
:
GetControler
(),
c
,
TYPE_FUSION
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c22251
.
tsfilter32
,
c
:
GetControler
(),
LOCATION_HAND
+
LOCATION_ONFIELD
+
LOCATION_DECK
,
0
,
1
,
c
)
and
Duel
.
IsExistingMatchingCard
(
c22251
.
tsfilter33
,
c
:
GetControler
(),
LOCATION_HAND
+
LOCATION_ONFIELD
+
LOCATION_DECK
,
0
,
1
,
c
)
return
((
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
and
c
:
IsType
(
TYPE_MONSTER
))
or
c
:
IsSetCard
(
0x180
)
or
c
:
IsCode
(
22200
))
and
not
c
:
IsLocation
(
LOCATION_DECK
)
and
Duel
.
GetLocationCountFromEx
(
c
:
GetControler
(),
c
:
GetControler
(),
c
,
TYPE_FUSION
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c22251
.
tsfilter32
,
c
:
GetControler
(),
LOCATION_HAND
+
LOCATION_ONFIELD
+
LOCATION_DECK
,
0
,
1
,
c
)
and
Duel
.
IsExistingMatchingCard
(
c22251
.
tsfilter33
,
c
:
GetControler
(),
LOCATION_HAND
+
LOCATION_ONFIELD
+
LOCATION_DECK
,
0
,
1
,
c
)
end
function
c22251
.
tsfilter32
(
c
)
return
((
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
c
:
IsType
(
TYPE_MONSTER
))
or
c
:
IsSetCard
(
0x184
)
or
c
:
IsCode
(
22200
))
and
Duel
.
GetLocationCountFromEx
(
c
:
GetControler
(),
c
:
GetControler
(),
c
,
TYPE_FUSION
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c22251
.
tsfilter33
,
c
:
GetControler
(),
LOCATION_HAND
+
LOCATION_ONFIELD
+
LOCATION_DECK
,
0
,
1
,
c
)
...
...
@@ -136,9 +136,15 @@ function c22251.activate(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
2224
9
)
e1
:
SetCode
(
2224
8
)
e1
:
SetTargetRange
(
1
,
0
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetCode
(
22251
)
e2
:
SetTargetRange
(
1
,
0
)
Duel
.
RegisterEffect
(
e2
,
tp
)
--
local
chkf
=
tp
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
):
Filter
(
c22251
.
filter1
,
nil
,
e
)
...
...
@@ -177,6 +183,7 @@ function c22251.activate(e,tp,eg,ep,ev,re,r,rp)
end
--flag reset
e1
:
Reset
()
e2
:
Reset
()
end
function
c22251
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
end
...
...
script/c22252.lua
View file @
96a8c07e
...
...
@@ -82,7 +82,7 @@ function c22252.tsfilter30(c,e,tp,m,f,chkf,exg)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
end
function
c22252
.
tsfilter31
(
c
)
return
((
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
and
c
:
IsType
(
TYPE_MONSTER
))
or
c
:
IsSetCard
(
0x180
)
or
c
:
IsCode
(
22200
))
and
Duel
.
GetLocationCountFromEx
(
c
:
GetControler
(),
c
:
GetControler
(),
c
,
TYPE_FUSION
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c22252
.
tsfilter32
,
c
:
GetControler
(),
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
c
)
and
Duel
.
IsExistingMatchingCard
(
c22252
.
tsfilter33
,
c
:
GetControler
(),
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
c
)
return
((
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
and
c
:
IsType
(
TYPE_MONSTER
))
or
c
:
IsSetCard
(
0x180
)
or
c
:
IsCode
(
22200
))
and
Duel
.
GetLocationCountFromEx
(
c
:
GetControler
(),
c
:
GetControler
(),
c
,
TYPE_FUSION
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c22252
.
tsfilter32
,
c
:
GetControler
(),
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
c
)
and
Duel
.
IsExistingMatchingCard
(
c22252
.
tsfilter33
,
c
:
GetControler
(),
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
c
)
end
function
c22252
.
tsfilter32
(
c
)
return
((
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
c
:
IsType
(
TYPE_MONSTER
))
or
c
:
IsSetCard
(
0x184
)
or
c
:
IsCode
(
22200
))
and
Duel
.
GetLocationCountFromEx
(
c
:
GetControler
(),
c
:
GetControler
(),
c
,
TYPE_FUSION
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c22252
.
tsfilter33
,
c
:
GetControler
(),
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
c
)
...
...
@@ -136,9 +136,15 @@ function c22252.activate(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
2224
9
)
e1
:
SetCode
(
2224
8
)
e1
:
SetTargetRange
(
1
,
0
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetCode
(
22252
)
e2
:
SetTargetRange
(
1
,
0
)
Duel
.
RegisterEffect
(
e2
,
tp
)
--
local
chkf
=
tp
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
):
Filter
(
c22252
.
filter1
,
nil
,
e
)
...
...
@@ -177,6 +183,7 @@ function c22252.activate(e,tp,eg,ep,ev,re,r,rp)
end
--flag reset
e1
:
Reset
()
e2
:
Reset
()
end
function
c22252
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
end
...
...
script/c86379106.lua
View file @
96a8c07e
...
...
@@ -38,17 +38,16 @@ function c86379106.op(e,tp,eg,ep,ev,re,r,rp)
if
g4
:
GetCount
()
>
1
then
Duel
.
ShuffleSetCard
(
g4
)
end
local
fid
=
e
:
GetHandler
():
GetFieldID
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
86379106
,
0
))
e1
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCountLimit
(
1
)
e1
:
SetLabel
(
fid
)
e1
:
SetLabel
Object
(
e
:
GetHandler
()
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetOperation
(
c86379106
.
setop
)
Duel
.
RegisterEffect
(
e1
,
tp
)
e
:
GetHandler
():
RegisterFlagEffect
(
86379106
,
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TOGRAVE
+
RESET_PHASE
+
PHASE_END
,
0
,
1
,
fid
)
e
:
GetHandler
():
RegisterFlagEffect
(
86379106
,
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TOGRAVE
-
RESET_LEAVE
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
--
function
c86379106
.
setfilter
(
c
)
...
...
@@ -56,6 +55,7 @@ function c86379106.setfilter(c)
end
function
c86379106
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
end
local
tc
=
e
:
GetLabelObject
()
if
Duel
.
IsExistingMatchingCard
(
c86379106
.
setfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c86379106
.
setfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
...
...
@@ -65,9 +65,9 @@ function c86379106.setop(e,tp,eg,ep,ev,re,r,rp)
local
sc
=
g
:
GetFirst
():
GetCode
()
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
if
ac
~=
sc
then
if
e
:
GetHandler
():
GetFlagEffect
(
86379106
)
>
0
and
c
:
GetFlagEffectLabel
(
86379106
)
==
e
:
GetLabel
(
)
then
Duel
.
SendtoHand
(
e
:
GetHandler
()
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
e
:
GetHandler
()
)
if
tc
:
GetFlagEffect
(
86379106
)
>
0
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
end
end
...
...
script/c86379382.lua
View file @
96a8c07e
...
...
@@ -150,7 +150,7 @@ function c86379382.op4(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterFlagEffect
(
tp
,
86379382
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
86379382
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
c86379382
.
disable
(
e
,
c
)
return
c
:
GetCounter
(
0x245
)
>
0
...
...
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