Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-pre-data
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
MyCard
ygopro-pre-data
Commits
6d915aa5
Commit
6d915aa5
authored
Jun 07, 2021
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
483bfe27
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
34 additions
and
28 deletions
+34
-28
expansions/pre-release.cdb
expansions/pre-release.cdb
+0
-0
script/c100278014.lua
script/c100278014.lua
+2
-2
script/c100278024.lua
script/c100278024.lua
+2
-2
script/c100278033.lua
script/c100278033.lua
+3
-3
script/c100279003.lua
script/c100279003.lua
+1
-2
script/c101104081.lua
script/c101104081.lua
+7
-7
script/c101104082.lua
script/c101104082.lua
+1
-0
script/c101104083.lua
script/c101104083.lua
+3
-3
script/c101104085.lua
script/c101104085.lua
+5
-5
script/c101104087.lua
script/c101104087.lua
+2
-1
script/c101104088.lua
script/c101104088.lua
+2
-2
script/c101104090.lua
script/c101104090.lua
+2
-0
script/c101104091.lua
script/c101104091.lua
+1
-0
script/c101104092.lua
script/c101104092.lua
+3
-1
No files found.
expansions/pre-release.cdb
View file @
6d915aa5
No preview for this file type
script/c100278014.lua
View file @
6d915aa5
...
@@ -50,11 +50,11 @@ function c100278014.sumop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -50,11 +50,11 @@ function c100278014.sumop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetTarget
(
c100278014
.
splimit
)
e2
:
SetTarget
(
c100278014
.
splimit
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
local
e3
=
e2
:
Clone
()
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e3
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
Duel
.
RegisterEffect
(
e3
,
tp
)
Duel
.
RegisterEffect
(
e3
,
tp
)
end
end
function
c100278014
.
extrasumtg
(
e
,
c
)
function
c100278014
.
extrasumtg
(
e
,
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
end
end
function
c100278014
.
splimit
(
e
,
c
)
function
c100278014
.
splimit
(
e
,
c
)
...
...
script/c100278024.lua
View file @
6d915aa5
...
@@ -12,7 +12,7 @@ function c100278024.initial_effect(c)
...
@@ -12,7 +12,7 @@ function c100278024.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c100278024
.
filter
(
c
,
e
,
tp
)
function
c100278024
.
filter
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsLevelBelow
(
3
)
and
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
return
c
:
IsFaceup
()
and
c
:
IsLevelBelow
(
3
)
and
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
Duel
.
IsExistingMatchingCard
(
c100278024
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
:
GetCode
(),
e
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
c100278024
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
:
GetCode
(),
e
,
tp
)
end
end
function
c100278024
.
filter2
(
c
,
code
,
e
,
tp
)
function
c100278024
.
filter2
(
c
,
code
,
e
,
tp
)
...
@@ -32,7 +32,7 @@ function c100278024.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -32,7 +32,7 @@ function c100278024.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
tc
:
IsRelateToEffect
(
e
)
or
tc
:
IsFacedown
()
then
return
end
if
not
tc
:
IsRelateToEffect
(
e
)
or
tc
:
IsFacedown
()
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c100278024
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tc
:
GetCode
(),
e
,
tp
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c100278024
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tc
:
GetCode
(),
e
,
tp
)
local
sc
=
sg
:
GetFirst
()
local
sc
=
sg
:
GetFirst
()
if
sc
and
Duel
.
SpecialSummon
(
sc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
if
sc
and
Duel
.
SpecialSummon
(
sc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
script/c100278033.lua
View file @
6d915aa5
...
@@ -80,7 +80,7 @@ function c100278033.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -80,7 +80,7 @@ function c100278033.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
sg
=
g
:
SelectSubGroup
(
tp
,
aux
.
gfcheck
,
2
,
2
,
false
,
Card
.
IsCode
,
code1
,
code2
)
sg
=
g
:
SelectSubGroup
(
tp
,
aux
.
gfcheck
,
2
,
2
,
false
,
Card
.
IsCode
,
code1
,
code2
)
end
end
local
sc
=
sg
:
GetFirst
()
local
sc
=
sg
:
GetFirst
()
while
sc
do
while
sc
do
Duel
.
SpecialSummonStep
(
sc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
sc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
e1
=
Effect
.
CreateEffect
(
sc
)
local
e1
=
Effect
.
CreateEffect
(
sc
)
...
@@ -107,7 +107,7 @@ function c100278033.matcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -107,7 +107,7 @@ function c100278033.matcon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetTurnPlayer
()
~=
tp
return
Duel
.
GetTurnPlayer
()
~=
tp
end
end
function
c100278033
.
matfilter
(
c
)
function
c100278033
.
matfilter
(
c
)
return
c
:
IsCode
(
44190146
)
and
c
:
IsFaceup
()
and
c
:
IsCanOverlay
()
return
c
:
IsCode
(
44190146
)
and
c
:
IsFaceup
()
and
c
:
IsCanOverlay
()
end
end
function
c100278033
.
mattg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c100278033
.
mattg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c100278033
.
matfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c100278033
.
matfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
...
@@ -119,7 +119,7 @@ function c100278033.matop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -119,7 +119,7 @@ function c100278033.matop(e,tp,eg,ep,ev,re,r,rp)
if
g1
:
GetCount
()
>
0
then
if
g1
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c100278033
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c100278033
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
tc
=
g2
:
GetFirst
()
local
tc
=
g2
:
GetFirst
()
if
tc
and
Duel
.
Overlay
(
tc
,
g1
)
~=
0
then
if
tc
and
Duel
.
Overlay
(
tc
,
g1
)
~=
0
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SkipPhase
(
1
-
tp
,
PHASE_BATTLE
,
RESET_PHASE
+
PHASE_BATTLE_STEP
,
1
)
Duel
.
SkipPhase
(
1
-
tp
,
PHASE_BATTLE
,
RESET_PHASE
+
PHASE_BATTLE_STEP
,
1
)
...
...
script/c100279003.lua
View file @
6d915aa5
...
@@ -4,11 +4,10 @@ function c100279003.initial_effect(c)
...
@@ -4,11 +4,10 @@ function c100279003.initial_effect(c)
--summon with no tribute
--summon with no tribute
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
100279003
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
100279003
,
0
))
e1
:
SetProperty
(
EFFECT_FLAG_
CANNOT_DISABLE
+
EFFECT_FLAG_
UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SUMMON_PROC
)
e1
:
SetCode
(
EFFECT_SUMMON_PROC
)
e1
:
SetCondition
(
c100279003
.
ntcon
)
e1
:
SetCondition
(
c100279003
.
ntcon
)
e1
:
SetValue
(
1
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--remove
--remove
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
script/c101104081.lua
View file @
6d915aa5
...
@@ -13,17 +13,17 @@ function c101104081.initial_effect(c)
...
@@ -13,17 +13,17 @@ function c101104081.initial_effect(c)
e1
:
SetOperation
(
c101104081
.
spop
)
e1
:
SetOperation
(
c101104081
.
spop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--tribute summon
--tribute summon
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
101104081
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
101104081
,
1
))
e2
:
SetCategory
(
CATEGORY_SUMMON
)
e2
:
SetCategory
(
CATEGORY_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetTarget
(
c101104081
.
sumtg
)
e2
:
SetTarget
(
c101104081
.
sumtg
)
e2
:
SetOperation
(
c101104081
.
sumop
)
e2
:
SetOperation
(
c101104081
.
sumop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c101104081
.
cfilter
(
c
)
function
c101104081
.
cfilter
(
c
)
...
...
script/c101104082.lua
View file @
6d915aa5
...
@@ -4,6 +4,7 @@ function c101104082.initial_effect(c)
...
@@ -4,6 +4,7 @@ function c101104082.initial_effect(c)
--special summon
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
101104082
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
101104082
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_TO_GRAVE
)
e1
:
SetCode
(
EVENT_TO_GRAVE
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
...
...
script/c101104083.lua
View file @
6d915aa5
...
@@ -26,14 +26,14 @@ function c101104083.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -26,14 +26,14 @@ function c101104083.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
ct
>=
10
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
if
ct
>=
10
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
return
ct
>
0
return
ct
>
0
end
end
if
ct
>=
10
then
if
ct
>=
10
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
1
-
tp
,
LOCATION_ONFIELD
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
1
-
tp
,
LOCATION_ONFIELD
)
end
end
end
end
function
c101104083
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101104083
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_EXTRA
,
0
)
-
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_EXTRA
)
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_EXTRA
,
0
)
-
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_EXTRA
)
if
ct
>=
1
then
if
ct
>=
1
and
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
...
@@ -41,7 +41,7 @@ function c101104083.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -41,7 +41,7 @@ function c101104083.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
+
RESET_PHASE
+
PHASE_END
+
RESET_OPPO_TURN
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
+
RESET_PHASE
+
PHASE_END
+
RESET_OPPO_TURN
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
if
ct
>=
5
then
if
ct
>=
5
and
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
...
...
script/c101104085.lua
View file @
6d915aa5
...
@@ -8,21 +8,21 @@ function c101104085.initial_effect(c)
...
@@ -8,21 +8,21 @@ function c101104085.initial_effect(c)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e1
:
SetCountLimit
(
1
,
101104085
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCountLimit
(
1
,
101104085
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetTarget
(
c101104085
.
target
)
e1
:
SetTarget
(
c101104085
.
target
)
e1
:
SetOperation
(
c101104085
.
activate
)
e1
:
SetOperation
(
c101104085
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c101104085
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c101104085
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chkc
then
return
false
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
and
Duel
.
IsExistingTarget
(
Card
.
IsAbleToGrave
,
tp
,
0
,
LOCATION_REMOVED
,
1
,
nil
)
end
and
Duel
.
IsExistingTarget
(
Card
.
IsAbleToGrave
,
tp
,
0
,
LOCATION_REMOVED
,
1
,
nil
)
end
local
rt
=
Duel
.
GetTargetCount
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_REMOVED
,
nil
)
local
rt
=
Duel
.
GetTargetCount
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_REMOVED
,
nil
)
if
rt
>
5
then
rt
=
5
end
if
rt
>
5
then
rt
=
5
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
rt
,
nil
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
rt
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToGrave
,
tp
,
0
,
LOCATION_REMOVED
,
#
g1
,
#
g1
,
nil
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToGrave
,
tp
,
0
,
LOCATION_REMOVED
,
#
g1
,
#
g1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g1
,
#
g1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g1
,
#
g1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g2
,
#
g2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g2
,
#
g2
,
0
,
0
)
end
end
...
...
script/c101104087.lua
View file @
6d915aa5
...
@@ -35,7 +35,8 @@ end
...
@@ -35,7 +35,8 @@ end
function
c101104087
.
check
(
c
,
tp
)
function
c101104087
.
check
(
c
,
tp
)
return
c
and
c
:
IsControler
(
tp
)
and
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_EARTH
)
return
c
and
c
:
IsControler
(
tp
)
and
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_EARTH
)
end
end
function
c101104087
.
dstg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101104087
.
dstg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsOnField
()
and
chkc
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
if
chk
==
0
then
return
(
c101104087
.
check
(
Duel
.
GetAttacker
(),
tp
)
or
c101104087
.
check
(
Duel
.
GetAttackTarget
(),
tp
))
if
chk
==
0
then
return
(
c101104087
.
check
(
Duel
.
GetAttacker
(),
tp
)
or
c101104087
.
check
(
Duel
.
GetAttackTarget
(),
tp
))
and
Duel
.
IsExistingTarget
(
Card
.
IsType
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
end
and
Duel
.
IsExistingTarget
(
Card
.
IsType
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
...
...
script/c101104088.lua
View file @
6d915aa5
...
@@ -23,7 +23,7 @@ function c101104088.initial_effect(c)
...
@@ -23,7 +23,7 @@ function c101104088.initial_effect(c)
--twice attack
--twice attack
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
101104088
,
1
))
e3
:
SetDescription
(
aux
.
Stringid
(
101104088
,
1
))
e3
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
...
@@ -112,7 +112,7 @@ function c101104088.atkcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -112,7 +112,7 @@ function c101104088.atkcon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetFlagEffect
(
tp
,
101104088
)
>
0
return
Duel
.
GetFlagEffect
(
tp
,
101104088
)
>
0
and
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
and
aux
.
dscon
()
and
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
and
aux
.
dscon
()
end
end
function
c101104088
.
atkfilter
(
c
)
function
c101104088
.
atkfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x15f
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x15f
)
end
end
function
c101104088
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101104088
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
script/c101104090.lua
View file @
6d915aa5
...
@@ -3,8 +3,10 @@
...
@@ -3,8 +3,10 @@
function
c101104090
.
initial_effect
(
c
)
function
c101104090
.
initial_effect
(
c
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
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
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCountLimit
(
1
,
101104090
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCountLimit
(
1
,
101104090
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCondition
(
c101104090
.
condition
)
e1
:
SetCondition
(
c101104090
.
condition
)
e1
:
SetTarget
(
c101104090
.
target
)
e1
:
SetTarget
(
c101104090
.
target
)
...
...
script/c101104091.lua
View file @
6d915aa5
...
@@ -7,6 +7,7 @@ function c101104091.initial_effect(c)
...
@@ -7,6 +7,7 @@ function c101104091.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
101104091
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCountLimit
(
1
,
101104091
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetHintTiming
(
0
,
TIMING_BATTLE_START
)
e1
:
SetCondition
(
c101104091
.
condition
)
e1
:
SetCondition
(
c101104091
.
condition
)
e1
:
SetTarget
(
c101104091
.
target
)
e1
:
SetTarget
(
c101104091
.
target
)
e1
:
SetOperation
(
c101104091
.
operation
)
e1
:
SetOperation
(
c101104091
.
operation
)
...
...
script/c101104092.lua
View file @
6d915aa5
...
@@ -6,6 +6,7 @@ function c101104092.initial_effect(c)
...
@@ -6,6 +6,7 @@ function c101104092.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_LEAVE_FIELD
)
e1
:
SetCode
(
EVENT_LEAVE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCountLimit
(
1
,
101104092
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCountLimit
(
1
,
101104092
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCondition
(
c101104092
.
descon
)
e1
:
SetCondition
(
c101104092
.
descon
)
e1
:
SetTarget
(
c101104092
.
destg
)
e1
:
SetTarget
(
c101104092
.
destg
)
...
@@ -22,7 +23,8 @@ function c101104092.descon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -22,7 +23,8 @@ function c101104092.descon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c101104092
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101104092
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
nil
,
1
,
1
-
tp
,
LOCATION_ONFIELD
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
end
function
c101104092
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101104092
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
...
...
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