Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
Soulgamer
ygopro-222DIY-cards
Commits
28ac497d
Commit
28ac497d
authored
Dec 27, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eme
parent
78892295
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
139 additions
and
81 deletions
+139
-81
expansions/script/c16150006.lua
expansions/script/c16150006.lua
+1
-2
expansions/script/c16150015.lua
expansions/script/c16150015.lua
+1
-1
expansions/script/c30553251.lua
expansions/script/c30553251.lua
+2
-3
expansions/script/c33701509.lua
expansions/script/c33701509.lua
+3
-6
expansions/script/c33701510.lua
expansions/script/c33701510.lua
+3
-6
expansions/script/c33701511.lua
expansions/script/c33701511.lua
+36
-39
expansions/script/c33701512.lua
expansions/script/c33701512.lua
+3
-6
expansions/script/c33701513.lua
expansions/script/c33701513.lua
+3
-6
expansions/script/c33701514.lua
expansions/script/c33701514.lua
+3
-6
expansions/script/c33701515.lua
expansions/script/c33701515.lua
+81
-0
expansions/script/c33701516.lua
expansions/script/c33701516.lua
+3
-6
No files found.
expansions/script/c16150006.lua
View file @
28ac497d
...
...
@@ -5,10 +5,9 @@ function c16150006.initial_effect(c)
--cost
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetCategory
(
CATEGORY_
SPECIAL_SUMMON
)
e2
:
SetCategory
(
CATEGORY_
TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e2
:
SetCountLimit
(
1
,
m
+
EFFECT_COUNT_CODE_OATH
)
e2
:
SetCost
(
cm
.
cost
)
e2
:
SetTarget
(
cm
.
target2
)
...
...
expansions/script/c16150015.lua
View file @
28ac497d
...
...
@@ -76,6 +76,6 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
if
c
:
IsComplexReason
(
REASON_SUMMON
+
REASON_MATERIAL
)
then
local
tc
=
c
:
GetReasonCard
()
tc
:
CopyEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TOFIELD
,
0
)
tc
:
CopyEffect
(
m
,
RESET_EVENT
+
0x7e0000
,
0
)
end
end
\ No newline at end of file
expansions/script/c30553251.lua
View file @
28ac497d
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TO
HAND
+
CATEGORY_REMOVE
)
e2
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TO
GRAVE
+
CATEGORY_REMOVE
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCountLimit
(
1
)
...
...
@@ -25,8 +25,7 @@ function cm.initial_effect(c)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
tf22
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
and
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
~=
0
then
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
if
g
:
GetCount
()
>
0
and
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
~=
0
then
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsOnField
()
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
0
))
then
Duel
.
BreakEffect
()
...
...
expansions/script/c33701509.lua
View file @
28ac497d
...
...
@@ -108,11 +108,8 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
while
tc
do
local
tc
=
re
:
GetHandler
()
if
tc
:
IsLevelAbove
(
1
)
and
tc
:
IsSetCard
(
0x9440
)
then
cm
[
ep
]
=
bit
.
bor
(
cm
[
ep
],
0x1
<<
tc
:
GetLevel
())
end
tc
=
eg
:
GetNext
()
end
end
expansions/script/c33701510.lua
View file @
28ac497d
...
...
@@ -93,11 +93,8 @@ function cm.rmop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
while
tc
do
local
tc
=
re
:
GetHandler
()
if
tc
:
IsLevelAbove
(
1
)
and
tc
:
IsSetCard
(
0x9440
)
then
cm
[
ep
]
=
bit
.
bor
(
cm
[
ep
],
0x1
<<
tc
:
GetLevel
())
end
tc
=
eg
:
GetNext
()
end
end
expansions/script/c33701511.lua
View file @
28ac497d
...
...
@@ -3,13 +3,13 @@ function c33701511.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetCondition
(
c
33701511
.
discon
)
e1
:
SetCondition
(
c
m
.
discon
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetValue
(
1
)
e2
:
SetCondition
(
c
33701511
.
discon
)
e2
:
SetCondition
(
c
m
.
discon
)
c
:
RegisterEffect
(
e2
)
--spsummon
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -17,44 +17,44 @@ function c33701511.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOKEN
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCost
(
c
33701511
.
spcost
)
e1
:
SetTarget
(
c
33701511
.
sptg
)
e1
:
SetOperation
(
c
33701511
.
spop
)
e1
:
SetCost
(
c
m
.
spcost
)
e1
:
SetTarget
(
c
m
.
sptg
)
e1
:
SetOperation
(
c
m
.
spop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCondition
(
c
33701511
.
condition
)
e2
:
SetOperation
(
c
33701511
.
operation
)
e2
:
SetCondition
(
c
m
.
condition
)
e2
:
SetOperation
(
c
m
.
operation
)
c
:
RegisterEffect
(
e2
)
if
not
c
33701511
.
global_check
then
c
33701511
.
global_check
=
true
c
33701511
[
0
]
=
0
c
33701511
[
1
]
=
0
if
not
c
m
.
global_check
then
c
m
.
global_check
=
true
c
m
[
0
]
=
0
c
m
[
1
]
=
0
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_CHAIN_SOLVED
)
ge1
:
SetOperation
(
c
33701511
.
checkop
)
ge1
:
SetOperation
(
c
m
.
checkop
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
function
c
33701511
.
discon
(
e
)
return
bit
.
band
(
c
33701511
[
e
:
GetControler
()],
0x1
<<
(
e
:
GetHandler
():
GetLevel
()
-
1
))
>
0
function
c
m
.
discon
(
e
)
return
bit
.
band
(
c
m
[
e
:
GetControler
()],
0x1
<<
(
e
:
GetHandler
():
GetLevel
()
-
1
))
>
0
end
function
c
33701511
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c
m
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsReleasable
()
end
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
end
function
c
33701511
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c
m
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
33701517
,
0
,
0x4011
,
1500
,
1500
,
4
,
RACE_FAIRY
,
ATTRIBUTE_LIGHT
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
end
function
c
33701511
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
m
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
33701517
,
0
,
0x4011
,
1500
,
1500
,
4
,
RACE_FAIRY
,
ATTRIBUTE_LIGHT
)
then
return
end
local
token
=
Duel
.
CreateToken
(
tp
,
33701517
)
...
...
@@ -65,22 +65,22 @@ function c33701511.spop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
)
e1
:
SetCondition
(
c
33701511
.
atcon
)
e1
:
SetCost
(
c
33701511
.
spcost
)
e1
:
SetTarget
(
c
33701511
.
attg
)
e1
:
SetOperation
(
c
33701511
.
atop
)
e1
:
SetCondition
(
c
m
.
atcon
)
e1
:
SetCost
(
c
m
.
spcost
)
e1
:
SetTarget
(
c
m
.
attg
)
e1
:
SetOperation
(
c
m
.
atop
)
token
:
RegisterEffect
(
e1
,
true
)
end
function
c
33701511
.
indfilter
(
c
)
function
c
m
.
indfilter
(
c
)
return
c
:
IsCode
(
33701507
)
and
c
:
IsFaceup
()
end
function
c
33701511
.
atcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c
33701511
.
indfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
function
c
m
.
atcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c
m
.
indfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
function
c
33701511
.
attg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c
m
.
attg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
function
c
33701511
.
atop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
m
.
atop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
if
g
:
GetCount
()
==
0
then
return
end
local
sc
=
g
:
GetFirst
()
...
...
@@ -97,19 +97,19 @@ function c33701511.atop(e,tp,eg,ep,ev,re,r,rp)
sc
=
g
:
GetNext
()
end
end
function
c
33701511
.
filter
(
c
)
function
c
m
.
filter
(
c
)
return
c
:
IsSetCard
(
0x9440
)
and
c
:
IsAbleToHand
()
end
function
c
33701511
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
return
Duel
.
IsExistingMatchingCard
(
c
33701511
.
indfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
function
c
m
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
return
Duel
.
IsExistingMatchingCard
(
c
m
.
indfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
function
c
33701511
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
m
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c
33701511
.
aclimit
)
e1
:
SetValue
(
c
m
.
aclimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_STANDBY
+
RESET_SELF_TURN
,
1
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
@@ -120,15 +120,12 @@ function c33701511.operation(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetTargetRange
(
0
,
1
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
function
c
33701511
.
aclimit
(
e
,
re
,
tp
)
function
c
m
.
aclimit
(
e
,
re
,
tp
)
return
re
:
GetHandler
():
IsOnField
()
or
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
function
c33701511
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
while
tc
do
function
cm
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
re
:
GetHandler
()
if
tc
:
IsLevelAbove
(
1
)
and
tc
:
IsSetCard
(
0x9440
)
then
c33701511
[
ep
]
=
bit
.
bor
(
c33701511
[
ep
],
0x1
<<
tc
:
GetLevel
())
end
tc
=
eg
:
GetNext
()
cm
[
ep
]
=
bit
.
bor
(
cm
[
ep
],
0x1
<<
tc
:
GetLevel
())
end
end
expansions/script/c33701512.lua
View file @
28ac497d
...
...
@@ -105,11 +105,8 @@ function cm.atlimit(e,c)
return
not
c
:
IsCode
(
33701507
)
end
function
cm
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
while
tc
do
local
tc
=
re
:
GetHandler
()
if
tc
:
IsLevelAbove
(
1
)
and
tc
:
IsSetCard
(
0x9440
)
then
cm
[
ep
]
=
bit
.
bor
(
cm
[
ep
],
0x1
<<
tc
:
GetLevel
())
end
tc
=
eg
:
GetNext
()
end
end
expansions/script/c33701513.lua
View file @
28ac497d
...
...
@@ -113,11 +113,8 @@ function cm.recop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Recover
(
p
,
d
,
REASON_EFFECT
)
end
function
cm
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
while
tc
do
local
tc
=
re
:
GetHandler
()
if
tc
:
IsLevelAbove
(
1
)
and
tc
:
IsSetCard
(
0x9440
)
then
cm
[
ep
]
=
bit
.
bor
(
cm
[
ep
],
0x1
<<
tc
:
GetLevel
())
end
tc
=
eg
:
GetNext
()
end
end
expansions/script/c33701514.lua
View file @
28ac497d
...
...
@@ -124,11 +124,8 @@ function cm.atlimit(e,c)
return
not
c
:
IsCode
(
33701507
)
end
function
cm
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
while
tc
do
local
tc
=
re
:
GetHandler
()
if
tc
:
IsLevelAbove
(
1
)
and
tc
:
IsSetCard
(
0x9440
)
then
cm
[
ep
]
=
bit
.
bor
(
cm
[
ep
],
0x1
<<
tc
:
GetLevel
())
end
tc
=
eg
:
GetNext
()
end
end
expansions/script/c33701515.lua
0 → 100644
View file @
28ac497d
--巡星 北极星
local
m
=
33701515
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
--special summon condition
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
c
:
RegisterEffect
(
e1
)
--special summon
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetCondition
(
cm
.
spcon
)
e2
:
SetTarget
(
cm
.
sptg
)
e2
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetCondition
(
cm
.
wincon
)
e3
:
SetOperation
(
cm
.
winop
)
c
:
RegisterEffect
(
e3
)
if
not
cm
.
global_check
then
cm
.
global_check
=
true
cm
[
0
]
=
Group
.
CreateGroup
()
cm
[
1
]
=
Group
.
CreateGroup
()
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_CHAIN_SOLVED
)
ge1
:
SetOperation
(
cm
.
checkop
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
function
cm
.
spcfilter
(
c
,
tp
)
return
c
:
IsCode
(
33701507
)
and
c
:
IsCanRemoveCounter
(
tp
,
0x9440
,
1
,
REASON_COST
)
end
function
cm
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
spcfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
,
tp
)
local
ct
=
0
for
tc
in
aux
.
Next
(
g
)
do
ct
=
ct
+
tc
:
GetCounter
(
0x9440
)
end
return
ct
>=
5
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
spcfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
,
tp
)
if
#
g
==
1
then
g
:
GetFirst
():
RemoveCounter
(
tp
,
0x9440
,
5
,
REASON_COST
)
else
for
i
=
1
,
5
do
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
m
,
2
))
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
spcfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
,
tp
)
tg
:
GetFirst
():
RemoveCounter
(
tp
,
0x9440
,
1
,
REASON_COST
)
end
end
end
function
cm
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
cm
[
ep
]:
Group
.
GetClassCount
(
Card
.
GetLevel
())
>=
7
end
function
cm
.
winop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
WIN_REASON_CREATORGOD
=
0x13
local
p
=
e
:
GetHandler
():
GetSummonPlayer
()
Duel
.
Win
(
p
,
WIN_REASON_CREATORGOD
)
end
function
cm
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
while
tc
do
if
tc
:
IsLevelAbove
(
1
)
and
tc
:
IsSetCard
(
0x9440
)
and
not
cm
[
ep
]:
IsContains
(
tc
)
then
cm
[
ep
]:
AddCard
(
tc
)
end
tc
=
eg
:
GetNext
()
end
end
expansions/script/c33701516.lua
View file @
28ac497d
...
...
@@ -89,11 +89,8 @@ function cm.efilter(e,re)
return
e
:
GetOwnerPlayer
()
~=
re
:
GetOwnerPlayer
()
end
function
cm
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
while
tc
do
local
tc
=
re
:
GetHandler
()
if
tc
:
IsLevelAbove
(
1
)
and
tc
:
IsSetCard
(
0x9440
)
and
not
cm
[
ep
]:
IsContains
(
tc
)
then
cm
[
ep
]:
AddCard
(
tc
)
end
tc
=
eg
:
GetNext
()
end
end
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