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
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
Commits
e5957b34
Commit
e5957b34
authored
Mar 14, 2014
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
de83d390
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
47 additions
and
47 deletions
+47
-47
script/c10530913.lua
script/c10530913.lua
+1
-1
script/c10753491.lua
script/c10753491.lua
+1
-1
script/c11682713.lua
script/c11682713.lua
+1
-1
script/c23681456.lua
script/c23681456.lua
+12
-15
script/c25824484.lua
script/c25824484.lua
+1
-1
script/c34680482.lua
script/c34680482.lua
+9
-6
script/c36046926.lua
script/c36046926.lua
+1
-1
script/c47077318.lua
script/c47077318.lua
+1
-1
script/c47741109.lua
script/c47741109.lua
+1
-1
script/c48445393.lua
script/c48445393.lua
+1
-1
script/c51865604.lua
script/c51865604.lua
+1
-1
script/c62434031.lua
script/c62434031.lua
+1
-1
script/c63257623.lua
script/c63257623.lua
+1
-1
script/c73136204.lua
script/c73136204.lua
+1
-1
script/c81210420.lua
script/c81210420.lua
+1
-1
script/c82016179.lua
script/c82016179.lua
+11
-11
script/c99429730.lua
script/c99429730.lua
+1
-1
script/c99641328.lua
script/c99641328.lua
+1
-1
No files found.
script/c10530913.lua
View file @
e5957b34
...
@@ -66,7 +66,7 @@ end
...
@@ -66,7 +66,7 @@ end
function
c10530913
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c10530913
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
IsPreviousPosition
(
POS_FACEUP
)
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
))
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
))
end
end
function
c10530913
.
thfilter
(
c
)
function
c10530913
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x90
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x90
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
...
...
script/c10753491.lua
View file @
e5957b34
...
@@ -52,7 +52,7 @@ end
...
@@ -52,7 +52,7 @@ end
function
c10753491
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c10753491
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
IsPreviousPosition
(
POS_FACEUP
)
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
))
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
))
end
end
function
c10753491
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c10753491
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
10753491
)
==
0
end
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
10753491
)
==
0
end
...
...
script/c11682713.lua
View file @
e5957b34
...
@@ -44,7 +44,7 @@ end
...
@@ -44,7 +44,7 @@ end
function
c11682713
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c11682713
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
IsPreviousPosition
(
POS_FACEUP
)
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
))
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
))
end
end
function
c11682713
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c11682713
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
end
...
...
script/c23681456.lua
View file @
e5957b34
...
@@ -8,10 +8,6 @@ function c23681456.initial_effect(c)
...
@@ -8,10 +8,6 @@ function c23681456.initial_effect(c)
e1
:
SetTarget
(
c23681456
.
target
)
e1
:
SetTarget
(
c23681456
.
target
)
e1
:
SetOperation
(
c23681456
.
operation
)
e1
:
SetOperation
(
c23681456
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
if
not
c23681456
.
global_check
then
c23681456
.
global_check
=
true
c23681456
.
count
=
0
end
end
end
function
c23681456
.
filter
(
c
,
e
,
tp
)
function
c23681456
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x71
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x71
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
@@ -27,33 +23,34 @@ function c23681456.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -27,33 +23,34 @@ function c23681456.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c23681456
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
ft
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c23681456
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
ft
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
c23681456
.
count
=
c23681456
.
count
+
1
local
fid
=
e
:
GetHandler
():
GetFieldID
()
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
local
id
=
c23681456
.
count
*
100000000
+
23681456
while
tc
do
while
tc
do
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
tc
:
RegisterFlagEffect
(
id
,
RESET_EVENT
+
0x1fe0000
,
0
,
1
)
tc
:
RegisterFlagEffect
(
23681456
,
RESET_EVENT
+
0x1fe0000
,
0
,
1
,
fid
)
tc
=
g
:
GetNext
()
tc
=
g
:
GetNext
()
end
end
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
g
:
KeepAlive
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
)
e1
:
SetLabel
(
id
)
e1
:
SetLabel
(
fid
)
e1
:
SetLabelObject
(
g
)
e1
:
SetOperation
(
c23681456
.
retop
)
e1
:
SetOperation
(
c23681456
.
retop
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
end
end
function
c23681456
.
retfilter
(
c
,
id
)
function
c23681456
.
retfilter
(
c
,
f
id
)
return
c
:
GetFlagEffect
(
id
)
>
0
return
c
:
GetFlagEffect
Label
(
23681456
)
==
fid
end
end
function
c23681456
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c23681456
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
id
=
e
:
GetLabel
()
local
g
=
e
:
GetLabelObject
()
local
g
=
Duel
.
GetMatchingGroup
(
c23681456
.
retfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
id
)
local
tg
=
g
:
Filter
(
c23681456
.
retfilter
,
nil
,
e
:
GetLabel
()
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoDeck
(
tg
,
nil
,
2
,
REASON_EFFECT
)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_EFFECT
)
if
not
g
:
IsExists
(
c23681456
.
retfilter
,
1
,
nil
,
e
:
GetLabel
())
then
else
g
:
DeleteGroup
()
e
:
Reset
()
e
:
Reset
()
end
end
end
end
script/c25824484.lua
View file @
e5957b34
...
@@ -37,7 +37,7 @@ end
...
@@ -37,7 +37,7 @@ end
function
c25824484
.
sdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c25824484
.
sdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
IsPreviousPosition
(
POS_FACEUP
)
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
))
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
))
end
end
function
c25824484
.
sdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c25824484
.
sdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
...
...
script/c34680482.lua
View file @
e5957b34
...
@@ -55,6 +55,7 @@ function c34680482.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -55,6 +55,7 @@ function c34680482.spop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
tc
then
if
tc
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
tc
:
RegisterFlagEffect
(
34680482
,
RESET_EVENT
+
0x1fe0000
,
0
,
1
,
Duel
.
GetTurnCount
())
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
...
@@ -63,21 +64,23 @@ function c34680482.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -63,21 +64,23 @@ function c34680482.spop(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e2
:
SetLabel
(
Duel
.
GetTurnCount
())
e2
:
SetLabel
(
Duel
.
GetTurnCount
())
e2
:
SetLabelObject
(
tc
)
e2
:
SetCondition
(
c34680482
.
tdcon
)
e2
:
SetCondition
(
c34680482
.
tdcon
)
e2
:
SetOperation
(
c34680482
.
tdop
)
e2
:
SetOperation
(
c34680482
.
tdop
)
e2
:
SetReset
(
RESET_
EVENT
+
0x1fe0000
)
e2
:
SetReset
(
RESET_
PHASE
+
PHASE_END
+
RESET_SELF_TURN
,
2
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCountLimit
(
1
)
tc
:
RegisterEffect
(
e2
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
end
end
function
c34680482
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c34680482
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnCount
()
==
e
:
GetLabel
()
+
2
return
Duel
.
GetTurnCount
()
~=
e
:
GetLabel
()
and
Duel
.
GetTurnPlayer
()
==
tp
end
end
function
c34680482
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c34680482
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
SendtoDeck
(
e
:
GetHandler
(),
nil
,
2
,
REASON_EFFECT
)
local
tc
=
e
:
GetLabelObject
()
e
:
Reset
()
if
tc
:
GetFlagEffectLabel
(
34680482
)
==
e
:
GetLabel
()
then
Duel
.
SendtoDeck
(
tc
,
nil
,
2
,
REASON_EFFECT
)
end
end
end
script/c36046926.lua
View file @
e5957b34
...
@@ -52,7 +52,7 @@ end
...
@@ -52,7 +52,7 @@ end
function
c36046926
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c36046926
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
IsPreviousPosition
(
POS_FACEUP
)
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
))
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
))
end
end
function
c36046926
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c36046926
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsDestructable
()
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsDestructable
()
end
...
...
script/c47077318.lua
View file @
e5957b34
...
@@ -44,7 +44,7 @@ end
...
@@ -44,7 +44,7 @@ end
function
c47077318
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c47077318
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
IsPreviousPosition
(
POS_FACEUP
)
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
))
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
))
end
end
function
c47077318
.
filter
(
c
)
function
c47077318
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_PLANT
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_PLANT
)
...
...
script/c47741109.lua
View file @
e5957b34
...
@@ -14,7 +14,7 @@ end
...
@@ -14,7 +14,7 @@ end
function
c47741109
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c47741109
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_HAND
+
LOCATION_ONFIELD
)
or
(
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
return
c
:
IsPreviousLocation
(
LOCATION_HAND
+
LOCATION_ONFIELD
)
or
(
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
IsPreviousPosition
(
POS_FACEUP
)
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
)))
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
)))
end
end
function
c47741109
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c47741109
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
0
end
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
0
end
...
...
script/c48445393.lua
View file @
e5957b34
...
@@ -36,7 +36,7 @@ function c48445393.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -36,7 +36,7 @@ function c48445393.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
end
...
...
script/c51865604.lua
View file @
e5957b34
...
@@ -17,7 +17,7 @@ function c51865604.initial_effect(c)
...
@@ -17,7 +17,7 @@ function c51865604.initial_effect(c)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_CHAIN_UNIQUE
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_
DELAY
+
EFFECT_FLAG_
CHAIN_UNIQUE
)
e2
:
SetCode
(
EVENT_REMOVE
)
e2
:
SetCode
(
EVENT_REMOVE
)
e2
:
SetCondition
(
c51865604
.
spcon
)
e2
:
SetCondition
(
c51865604
.
spcon
)
e2
:
SetCost
(
c51865604
.
spcost
)
e2
:
SetCost
(
c51865604
.
spcost
)
...
...
script/c62434031.lua
View file @
e5957b34
...
@@ -38,7 +38,7 @@ end
...
@@ -38,7 +38,7 @@ end
function
c62434031
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c62434031
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
IsPreviousPosition
(
POS_FACEUP
)
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
))
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
))
end
end
function
c62434031
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c62434031
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsSetCard
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
0x90
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsSetCard
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
0x90
)
end
...
...
script/c63257623.lua
View file @
e5957b34
...
@@ -43,7 +43,7 @@ end
...
@@ -43,7 +43,7 @@ end
function
c63257623
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c63257623
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
IsPreviousPosition
(
POS_FACEUP
)
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
))
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
))
end
end
function
c63257623
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c63257623
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
63257623
)
==
0
end
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
63257623
)
==
0
end
...
...
script/c73136204.lua
View file @
e5957b34
...
@@ -47,7 +47,7 @@ end
...
@@ -47,7 +47,7 @@ end
function
c73136204
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c73136204
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
IsPreviousPosition
(
POS_FACEUP
)
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
))
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
))
end
end
function
c73136204
.
filter
(
c
)
function
c73136204
.
filter
(
c
)
return
c
:
IsSetCard
(
0x90
)
and
not
c
:
IsCode
(
73136204
)
and
c
:
IsAbleToDeck
()
return
c
:
IsSetCard
(
0x90
)
and
not
c
:
IsCode
(
73136204
)
and
c
:
IsAbleToDeck
()
...
...
script/c81210420.lua
View file @
e5957b34
...
@@ -15,7 +15,7 @@ function c81210420.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -15,7 +15,7 @@ function c81210420.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetTurnPlayer
()
~=
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
return
Duel
.
GetTurnPlayer
()
~=
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
end
end
function
c81210420
.
filter
(
c
)
function
c81210420
.
filter
(
c
)
return
c
:
IsFacedown
()
or
c
:
IsCanTurnSet
(
)
return
not
c
:
IsType
(
TYPE_TOKEN
)
end
end
function
c81210420
.
spfilter
(
c
,
e
,
tp
)
function
c81210420
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
,
POS_FACEDOWN
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
,
POS_FACEDOWN
)
...
...
script/c82016179.lua
View file @
e5957b34
...
@@ -25,23 +25,23 @@ end
...
@@ -25,23 +25,23 @@ end
function
c82016179
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c82016179
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
if
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
==
3
then
if
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
==
3
then
Duel
.
ShuffleHand
(
t
p
)
Duel
.
ShuffleHand
(
p
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToDeck
,
t
p
,
LOCATION_HAND
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToDeck
,
p
,
LOCATION_HAND
,
0
,
nil
)
if
g
:
GetCount
()
>
1
and
g
:
IsExists
(
Card
.
IsSetCard
,
1
,
nil
,
0x90
)
then
if
g
:
GetCount
()
>
1
and
g
:
IsExists
(
Card
.
IsSetCard
,
1
,
nil
,
0x90
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
t
p
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
HINTMSG_TODECK
)
local
sg1
=
g
:
FilterSelect
(
t
p
,
Card
.
IsSetCard
,
1
,
1
,
nil
,
0x90
)
local
sg1
=
g
:
FilterSelect
(
p
,
Card
.
IsSetCard
,
1
,
1
,
nil
,
0x90
)
Duel
.
Hint
(
HINT_SELECTMSG
,
t
p
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
HINTMSG_TODECK
)
local
sg2
=
g
:
Select
(
t
p
,
1
,
1
,
sg1
:
GetFirst
())
local
sg2
=
g
:
Select
(
p
,
1
,
1
,
sg1
:
GetFirst
())
sg1
:
Merge
(
sg2
)
sg1
:
Merge
(
sg2
)
Duel
.
ConfirmCards
(
1
-
t
p
,
sg1
)
Duel
.
ConfirmCards
(
1
-
p
,
sg1
)
Duel
.
SendtoDeck
(
sg1
,
nil
,
0
,
REASON_EFFECT
)
Duel
.
SendtoDeck
(
sg1
,
nil
,
0
,
REASON_EFFECT
)
Duel
.
SortDecktop
(
tp
,
t
p
,
2
)
Duel
.
SortDecktop
(
p
,
p
,
2
)
else
else
local
hg
=
Duel
.
GetFieldGroup
(
t
p
,
LOCATION_HAND
,
0
)
local
hg
=
Duel
.
GetFieldGroup
(
p
,
LOCATION_HAND
,
0
)
Duel
.
ConfirmCards
(
1
-
t
p
,
hg
)
Duel
.
ConfirmCards
(
1
-
p
,
hg
)
local
ct
=
Duel
.
SendtoDeck
(
hg
,
nil
,
0
,
REASON_EFFECT
)
local
ct
=
Duel
.
SendtoDeck
(
hg
,
nil
,
0
,
REASON_EFFECT
)
Duel
.
SortDecktop
(
tp
,
t
p
,
ct
)
Duel
.
SortDecktop
(
p
,
p
,
ct
)
end
end
end
end
end
end
script/c99429730.lua
View file @
e5957b34
...
@@ -52,7 +52,7 @@ end
...
@@ -52,7 +52,7 @@ end
function
c99429730
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c99429730
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
IsPreviousPosition
(
POS_FACEUP
)
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
))
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
))
end
end
function
c99429730
.
filter
(
c
)
function
c99429730
.
filter
(
c
)
return
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsAbleToDeck
()
return
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsAbleToDeck
()
...
...
script/c99641328.lua
View file @
e5957b34
...
@@ -52,7 +52,7 @@ end
...
@@ -52,7 +52,7 @@ end
function
c99641328
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c99641328
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
IsPreviousPosition
(
POS_FACEUP
)
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
))
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
))
end
end
function
c99641328
.
desfilter
(
c
)
function
c99641328
.
desfilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsDestructable
()
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsDestructable
()
...
...
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