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
3886ec1a
Commit
3886ec1a
authored
Jun 28, 2023
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
ed6c6a13
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
104 additions
and
65 deletions
+104
-65
script/c100200237.lua
script/c100200237.lua
+1
-1
script/c100207001.lua
script/c100207001.lua
+1
-0
script/c100207002.lua
script/c100207002.lua
+2
-2
script/c100207003.lua
script/c100207003.lua
+8
-1
script/c100207005.lua
script/c100207005.lua
+4
-2
script/c100207006.lua
script/c100207006.lua
+4
-2
script/c100207007.lua
script/c100207007.lua
+7
-3
script/c100207008.lua
script/c100207008.lua
+4
-2
script/c100207009.lua
script/c100207009.lua
+8
-4
script/c100207010.lua
script/c100207010.lua
+10
-11
script/c100207011.lua
script/c100207011.lua
+9
-7
script/c100207013.lua
script/c100207013.lua
+5
-2
script/c100207014.lua
script/c100207014.lua
+4
-4
script/c100207018.lua
script/c100207018.lua
+5
-3
script/c100207019.lua
script/c100207019.lua
+4
-2
script/c100207020.lua
script/c100207020.lua
+4
-2
script/c100207022.lua
script/c100207022.lua
+3
-1
script/c100207023.lua
script/c100207023.lua
+6
-4
script/c100207026.lua
script/c100207026.lua
+11
-9
script/c100207029.lua
script/c100207029.lua
+2
-1
script/c101202044.lua
script/c101202044.lua
+1
-1
script/c101202064.lua
script/c101202064.lua
+1
-1
No files found.
script/c100200237.lua
View file @
3886ec1a
...
...
@@ -32,7 +32,7 @@ function s.filter(c,tp)
return
c
:
IsType
(
TYPE_FUSION
)
and
Duel
.
IsExistingMatchingCard
(
s
.
sfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
)
end
function
s
.
sfilter
(
c
,
tc
)
return
aux
.
IsMaterialListCode
(
tc
,
c
:
GetCode
())
return
aux
.
IsMaterialListCode
(
tc
,
c
:
GetCode
())
and
c
:
IsAbleToGrave
()
end
function
s
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
tp
)
end
...
...
script/c100207001.lua
View file @
3886ec1a
...
...
@@ -8,6 +8,7 @@ function s.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
)
e1
:
SetCondition
(
s
.
condition
)
e1
:
SetTarget
(
s
.
target
)
c
:
RegisterEffect
(
e1
)
...
...
script/c100207002.lua
View file @
3886ec1a
...
...
@@ -33,7 +33,7 @@ function c100207002.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c100207002
.
filter
(
c
)
return
not
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
and
c
:
IsFaceup
()
return
c
:
GetAttribute
()
~=
ATTRIBUTE_WIND
and
c
:
IsFaceup
()
end
function
c100207002
.
atcon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
...
...
@@ -42,7 +42,7 @@ function c100207002.atcon(e)
end
function
c100207002
.
atlimit
(
e
,
c
)
local
tp
=
e
:
GetHandlerPlayer
()
return
not
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
and
c
:
IsControler
(
1
-
tp
)
and
not
c
:
IsImmuneToEffect
(
e
)
return
c
:
GetAttribute
()
~=
ATTRIBUTE_WIND
and
c
:
IsControler
(
1
-
tp
)
and
not
c
:
IsImmuneToEffect
(
e
)
end
function
c100207002
.
thfilter
(
c
)
return
c
:
IsCode
(
24094653
)
and
c
:
IsAbleToHand
()
...
...
script/c100207003.lua
View file @
3886ec1a
...
...
@@ -47,7 +47,14 @@ end
function
c100207003
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c100207003
.
pfilter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
tp
):
GetFirst
()
if
tc
then
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_FZONE
,
POS_FACEUP
,
true
)
end
if
tc
then
local
fc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_FZONE
,
0
)
if
fc
then
Duel
.
SendtoGrave
(
fc
,
REASON_RULE
)
Duel
.
BreakEffect
()
end
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_FZONE
,
POS_FACEUP
,
true
)
end
end
function
c100207003
.
pcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ec
=
e
:
GetHandler
()
...
...
script/c100207005.lua
View file @
3886ec1a
...
...
@@ -45,8 +45,10 @@ end
function
s
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
filter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
if
#
g
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
function
s
.
cointg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
...
...
script/c100207006.lua
View file @
3886ec1a
...
...
@@ -24,6 +24,8 @@ end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
if
#
g
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
script/c100207007.lua
View file @
3886ec1a
...
...
@@ -10,6 +10,7 @@ function s.initial_effect(c)
--indestructible
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_COUNT
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
s
.
indct
)
...
...
@@ -19,10 +20,11 @@ function s.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e2
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_COUNTER
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetHintTiming
(
0
,
TIMING_BATTLE_START
)
e2
:
SetHintTiming
(
0
,
TIMING_BATTLE_START
+
TIMING_DAMAGE_STEP
)
e2
:
SetCondition
(
s
.
ctcon
)
e2
:
SetCost
(
s
.
ctcost
)
e2
:
SetTarget
(
s
.
cttg
)
...
...
@@ -52,10 +54,12 @@ function s.indct(e,re,r,rp)
else
return
0
end
end
function
s
.
ctcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
~=
tp
and
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
return
Duel
.
GetTurnPlayer
()
~=
tp
and
aux
.
dscon
()
and
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
end
function
s
.
ctcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
c
:
IsCanAddCounter
(
0x167
,
1
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
end
function
s
.
cttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
script/c100207008.lua
View file @
3886ec1a
...
...
@@ -9,7 +9,7 @@ function s.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_D
AMAGE_STEP
+
EFFECT_FLAG_D
ELAY
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetTarget
(
s
.
target
)
e1
:
SetOperation
(
s
.
operation
)
...
...
@@ -25,6 +25,7 @@ function s.initial_effect(c)
e4
:
SetCategory
(
CATEGORY_DAMAGE
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e4
:
SetCode
(
EVENT_DESTROYED
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e4
:
SetCondition
(
s
.
damcon
)
e4
:
SetTarget
(
s
.
damtg
)
e4
:
SetOperation
(
s
.
damop
)
...
...
@@ -61,5 +62,6 @@ function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
tp
,
2000
)
end
function
s
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Damage
(
tp
,
2000
,
REASON_EFFECT
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
Duel
.
Damage
(
p
,
d
,
REASON_EFFECT
)
end
script/c100207009.lua
View file @
3886ec1a
...
...
@@ -9,7 +9,7 @@ function s.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_D
AMAGE_STEP
+
EFFECT_FLAG_D
ELAY
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetTarget
(
s
.
target
)
e1
:
SetOperation
(
s
.
operation
)
...
...
@@ -25,6 +25,7 @@ function s.initial_effect(c)
e4
:
SetCategory
(
CATEGORY_DAMAGE
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e4
:
SetCode
(
EVENT_DESTROYED
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e4
:
SetCondition
(
s
.
damcon
)
e4
:
SetTarget
(
s
.
damtg
)
e4
:
SetOperation
(
s
.
damop
)
...
...
@@ -44,8 +45,10 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
if
e
:
GetHandler
():
IsPosition
(
POS_FACEUP_ATTACK
)
then
Duel
.
ChangePosition
(
e
:
GetHandler
(),
POS_FACEUP_DEFENSE
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToChain
()
and
c
:
IsPosition
(
POS_FACEUP_ATTACK
)
then
Duel
.
BreakEffect
()
Duel
.
ChangePosition
(
c
,
POS_FACEUP_DEFENSE
)
end
end
function
s
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -59,5 +62,6 @@ function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
tp
,
1000
)
end
function
s
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Damage
(
tp
,
1000
,
REASON_EFFECT
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
Duel
.
Damage
(
p
,
d
,
REASON_EFFECT
)
end
\ No newline at end of file
script/c100207010.lua
View file @
3886ec1a
...
...
@@ -42,23 +42,22 @@ function s.destarget(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
s
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
aux
.
ExceptThisCard
(
e
))
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_REFLECT_DAMAGE
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetValue
(
s
.
val
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_REFLECT_DAMAGE
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetValue
(
s
.
val
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
s
.
val
(
e
,
re
,
ev
,
r
,
rp
,
rc
)
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
end
function
s
.
tdfilter
(
c
,
e
)
return
c
:
Is
Faceup
()
and
c
:
Is
Code
(
7903368
,
100207008
,
100207009
)
and
c
:
IsAbleToDeck
()
and
c
:
IsCanBeEffectTarget
(
e
)
return
c
:
IsCode
(
7903368
,
100207008
,
100207009
)
and
c
:
IsAbleToDeck
()
and
c
:
IsCanBeEffectTarget
(
e
)
end
function
s
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
s
.
tdfilter
(
chkc
)
end
...
...
script/c100207011.lua
View file @
3886ec1a
...
...
@@ -3,12 +3,12 @@
--Script by StupidStudiosN
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
Duel
.
EnableGlobalFlag
(
GLOBALFLAG_SELF_TOGRAVE
)
c
:
EnableCounterPermit
(
0x168
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
c
:
RegisterEffect
(
e1
)
--untarget
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -29,12 +29,12 @@ function s.initial_effect(c)
e3
:
SetTarget
(
s
.
ntg
)
e3
:
SetOperation
(
s
.
nop
)
c
:
RegisterEffect
(
e3
)
--
destroy
--
to grave
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetCode
(
EFFECT_SELF_
DESTROY
)
e4
:
SetCode
(
EFFECT_SELF_
TOGRAVE
)
e4
:
SetCondition
(
s
.
sdcon
)
c
:
RegisterEffect
(
e4
)
--inflict double damage
...
...
@@ -49,13 +49,13 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e5
)
end
function
s
.
intg
(
e
,
c
)
return
c
:
IsFaceup
()
and
c
:
GetBaseAttack
()
==
0
and
c
:
IsRace
(
RACE_
DRAGON
)
return
c
:
IsFaceup
()
and
c
:
GetBaseAttack
()
==
0
and
c
:
IsRace
(
RACE_
ROCK
)
end
function
s
.
ncon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
~=
tp
and
aux
.
bpcon
()
return
Duel
.
GetTurnPlayer
()
~=
tp
end
function
s
.
ntg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanAddCounter
(
0x168
,
1
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
nil
,
1
,
0
,
0x168
)
end
function
s
.
nop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -86,5 +86,7 @@ function s.ddop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
s
.
damval
(
e
,
re
,
val
,
r
,
rp
,
rc
)
return
math.floor
(
val
*
2
)
if
r
&
REASON_EFFECT
==
REASON_EFFECT
then
return
val
*
2
else
return
val
end
end
\ No newline at end of file
script/c100207013.lua
View file @
3886ec1a
...
...
@@ -56,7 +56,9 @@ function s.atop(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_GRAVE
):
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
Overlay
(
c
,
g
)
if
#
g
>
0
then
Duel
.
Overlay
(
c
,
g
)
end
end
function
s
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_XYZ
)
...
...
@@ -68,6 +70,7 @@ function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
s
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_EXTRA
)
if
#
g
==
0
then
return
end
Duel
.
ConfirmCards
(
tp
,
g
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
sg
=
g
:
FilterSelect
(
tp
,
Card
.
IsAbleToGrave
,
1
,
1
,
nil
)
...
...
@@ -96,7 +99,7 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
if
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
local
atk
=
0
if
tc
:
IsFaceup
()
then
atk
=
tc
:
GetAttack
()
end
if
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
>
0
and
tc
:
IsPreviousLocation
(
LOCATION_MZONE
)
then
if
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
>
0
and
tc
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
atk
>
0
then
Duel
.
BreakEffect
()
Duel
.
Damage
(
1
-
tp
,
atk
//
2
,
REASON_EFFECT
)
end
...
...
script/c100207014.lua
View file @
3886ec1a
...
...
@@ -17,8 +17,9 @@ function s.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_ATTACK_ANNOUNCE
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e2
:
SetTargetRange
(
0
,
1
)
e2
:
SetCondition
(
s
.
condition
)
c
:
RegisterEffect
(
e2
)
end
...
...
@@ -37,10 +38,9 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_
CLIENT_HINT
+
EFFECT_FLAG_
PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsNonAttribute
,
ATTRIBUTE_LIGHT
))
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
...
...
@@ -50,5 +50,5 @@ function s.cfilter(c)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
id
)
end
function
s
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
()
)
end
script/c100207018.lua
View file @
3886ec1a
...
...
@@ -10,7 +10,7 @@ function s.initial_effect(c)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCountLimit
(
1
,
id
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetProperty
(
EFFECT_FLAG_
CANNOT_DISABLE
+
EFFECT_FLAG_
UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCondition
(
s
.
spcon
)
c
:
RegisterEffect
(
e1
)
--search
...
...
@@ -46,8 +46,10 @@ end
function
s
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
if
#
g
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
...
...
script/c100207019.lua
View file @
3886ec1a
...
...
@@ -41,8 +41,10 @@ end
function
s
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
if
#
g
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
function
s
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsLevelAbove
(
6
)
and
c
:
IsSetCard
(
0x21
)
...
...
script/c100207020.lua
View file @
3886ec1a
...
...
@@ -42,8 +42,10 @@ end
function
s
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
filter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
if
#
g
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
function
s
.
cfilter
(
c
,
tp
)
return
c
:
IsPreviousControler
(
tp
)
and
c
:
IsSummonLocation
(
LOCATION_EXTRA
)
...
...
script/c100207022.lua
View file @
3886ec1a
...
...
@@ -13,8 +13,9 @@ function s.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetHintTiming
(
0
,
TIMING_MAIN_END
+
TIMINGS_CHECK_MONSTER
)
e1
:
SetCondition
(
s
.
rdcon
)
e1
:
SetTarget
(
s
.
rdtg
)
e1
:
SetOperation
(
s
.
rdop
)
...
...
@@ -26,6 +27,7 @@ function s.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetHintTiming
(
0
,
TIMING_BATTLE_START
+
TIMING_BATTLE_END
+
TIMINGS_CHECK_MONSTER
)
e2
:
SetCountLimit
(
1
,
id
+
o
)
e2
:
SetCondition
(
s
.
fscon
)
e2
:
SetTarget
(
s
.
fstg
)
...
...
script/c100207023.lua
View file @
3886ec1a
...
...
@@ -13,6 +13,7 @@ function s.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetTarget
(
s
.
sptg
)
e1
:
SetOperation
(
s
.
spop
)
...
...
@@ -46,10 +47,9 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
2
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_
CLIENT_HINT
+
EFFECT_FLAG_
PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
s
.
limit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
...
...
@@ -78,8 +78,10 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
):
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
g
)
if
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
>
0
then
Duel
.
BreakEffect
()
local
ct
=
Duel
.
GetMatchingGroup
(
s
.
dfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_MZONE
,
0
,
nil
):
GetClassCount
(
Card
.
GetCode
)
Duel
.
Damage
(
1
-
tp
,
ct
*
300
,
REASON_EFFECT
)
if
ct
>
0
then
Duel
.
BreakEffect
()
Duel
.
Damage
(
1
-
tp
,
ct
*
300
,
REASON_EFFECT
)
end
end
end
script/c100207026.lua
View file @
3886ec1a
...
...
@@ -79,15 +79,17 @@ function s.dacost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
c
,
REASON_COST
)
end
function
s
.
daop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
for
tc
in
aux
.
Next
(
g
)
do
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_EXTRA_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_BATTLE
)
e1
:
SetValue
(
1
)
tc
:
RegisterEffect
(
e1
)
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_EXTRA_ATTACK
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetTarget
(
s
.
datg
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_BATTLE
)
e1
:
SetValue
(
1
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
s
.
datg
(
e
,
c
)
return
c
:
IsRace
(
RACE_WARRIOR
)
or
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
end
function
s
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
script/c100207029.lua
View file @
3886ec1a
...
...
@@ -14,6 +14,7 @@ function s.initial_effect(c)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTarget
(
s
.
indestg
)
e2
:
SetValue
(
aux
.
indoval
)
c
:
RegisterEffect
(
e2
)
--zero atk
local
e3
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -34,7 +35,7 @@ function s.initial_effect(c)
e4
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e4
:
SetCode
(
EVENT_CHAINING
)
e4
:
SetRange
(
LOCATION_GRAVE
)
e4
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e4
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e4
:
SetCondition
(
s
.
negcon
)
e4
:
SetCost
(
aux
.
bfgcost
)
e4
:
SetTarget
(
s
.
negtg
)
...
...
script/c101202044.lua
View file @
3886ec1a
...
...
@@ -97,7 +97,7 @@ end
function
s
.
sfilter
(
c
)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsAbleToDeck
()
end
function
s
.
ssptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
rp
,
chk
)
function
s
.
ssptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
r
p
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
sfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
end
...
...
script/c101202064.lua
View file @
3886ec1a
...
...
@@ -100,6 +100,6 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetValue
(
ct
*
200
)
c
:
RegisterEffect
(
e1
)
t
c
:
RegisterEffect
(
e1
)
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