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
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
YGOPRO-520DIY
ygopro
Commits
ca9daa84
Commit
ca9daa84
authored
Sep 05, 2012
by
Fluorohydride
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #248 from VanillaSalt/patch26
fix
parents
921022a2
83acc566
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
71 additions
and
53 deletions
+71
-53
script/c13574687.lua
script/c13574687.lua
+3
-2
script/c14550855.lua
script/c14550855.lua
+2
-2
script/c18807108.lua
script/c18807108.lua
+14
-12
script/c26016357.lua
script/c26016357.lua
+2
-2
script/c26205777.lua
script/c26205777.lua
+1
-1
script/c26285788.lua
script/c26285788.lua
+2
-2
script/c26732909.lua
script/c26732909.lua
+4
-0
script/c3897065.lua
script/c3897065.lua
+5
-5
script/c39751093.lua
script/c39751093.lua
+1
-1
script/c39751094.lua
script/c39751094.lua
+1
-1
script/c42386471.lua
script/c42386471.lua
+2
-2
script/c44763025.lua
script/c44763025.lua
+1
-1
script/c48579379.lua
script/c48579379.lua
+0
-6
script/c49681811.lua
script/c49681811.lua
+1
-1
script/c54704216.lua
script/c54704216.lua
+10
-8
script/c74117290.lua
script/c74117290.lua
+1
-1
script/c76224717.lua
script/c76224717.lua
+5
-3
script/c78663366.lua
script/c78663366.lua
+10
-1
script/c80513550.lua
script/c80513550.lua
+5
-1
script/c95096437.lua
script/c95096437.lua
+1
-1
No files found.
script/c13574687.lua
View file @
ca9daa84
...
...
@@ -24,14 +24,15 @@ function c13574687.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c13574687
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
g
:
GetFirst
():
GetAttack
()
/
2
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
g
:
GetFirst
():
GetControler
()
,
g
:
GetFirst
():
GetAttack
()
/
2
)
end
function
c13574687
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
local
dam
=
tc
:
GetAttack
()
/
2
local
p
=
tc
:
GetControler
()
if
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
then
Duel
.
Damage
(
1
-
t
p
,
dam
,
REASON_EFFECT
)
Duel
.
Damage
(
p
,
dam
,
REASON_EFFECT
)
end
end
end
script/c14550855.lua
View file @
ca9daa84
...
...
@@ -12,10 +12,10 @@ end
function
c14550855
.
filter
(
c
)
return
c
:
IsSetCard
(
0xb
)
and
c
:
IsAbleToGrave
()
end
function
c14550855
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c14550855
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c14550855
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c14550855
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c18807108.lua
View file @
ca9daa84
...
...
@@ -17,24 +17,26 @@ function c18807108.initial_effect(c)
e2
:
SetCondition
(
c18807108
.
descon
)
e2
:
SetOperation
(
c18807108
.
desop
)
c
:
RegisterEffect
(
e2
)
e1
:
SetLabelObject
(
e2
)
end
function
c18807108
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsFaceup
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
FACEUP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
nil
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
TARGET
)
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
end
function
c18807108
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
Is
Faceup
()
and
tc
:
Is
RelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
then
c
:
SetCardTarget
(
tc
)
c
:
CreateRelation
(
tc
,
RESET_EVENT
+
0x1fe0000
)
e
:
GetLabelObject
():
SetLabelObject
(
tc
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_OWNER_RELATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetProperty
(
EFFECT_FLAG_OWNER_RELATE
)
e1
:
SetCode
(
EFFECT_CANNOT_CHANGE_POSITION
)
e1
:
SetReset
(
RESET_EVENT
+
0x1f
e
0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1f
c
0000
)
e1
:
SetCondition
(
c18807108
.
rcon
)
tc
:
RegisterEffect
(
e1
,
true
)
local
e2
=
e1
:
Clone
()
...
...
@@ -43,14 +45,14 @@ function c18807108.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c18807108
.
rcon
(
e
)
return
e
:
GetOwner
():
Is
HasCardTarget
(
e
:
GetHandler
())
return
e
:
GetOwner
():
Is
RelateToCard
(
e
:
GetHandler
())
end
function
c18807108
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
then
return
false
end
local
tc
=
c
:
GetFirstCardTarge
t
()
return
tc
and
eg
:
IsContains
(
tc
)
and
tc
:
IsReason
(
REASON_DESTROY
)
local
tc
=
e
:
GetLabelObjec
t
()
return
tc
and
eg
:
IsContains
(
tc
)
and
tc
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsRelateToCard
(
tc
)
end
function
c18807108
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
end
script/c26016357.lua
View file @
ca9daa84
...
...
@@ -40,13 +40,13 @@ end
function
c26016357
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c26016357
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c26016357
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
R
TOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
A
TOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c26016357
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
end
function
c26016357
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
...
...
script/c26205777.lua
View file @
ca9daa84
...
...
@@ -16,7 +16,7 @@ function c26205777.condition(e,tp,eg,ep,ev,re,r,rp)
end
function
c26205777
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
nil
,
1
,
1
-
tp
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
nil
,
0
,
1
-
tp
,
1
)
end
function
c26205777
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_HAND
)
...
...
script/c26285788.lua
View file @
ca9daa84
...
...
@@ -72,9 +72,9 @@ function c26285788.effectop(e,tp,eg,ep,ev,re,r,rp)
end
else
local
g
=
Duel
.
GetMatchingGroup
(
c26285788
.
filter2
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
if
g
:
GetCount
()
>
2
then
if
g
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
tg
=
g
:
Select
(
tp
,
3
,
3
,
nil
)
local
tg
=
g
:
Select
(
tp
,
1
,
3
,
nil
)
Duel
.
Destroy
(
tg
,
REASON_EFFECT
)
end
end
...
...
script/c26732909.lua
View file @
ca9daa84
...
...
@@ -7,6 +7,7 @@ function c26732909.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
c26732909
.
thcon
)
e1
:
SetCost
(
c26732909
.
thcost
)
e1
:
SetTarget
(
c26732909
.
thtg
)
e1
:
SetOperation
(
c26732909
.
thop
)
...
...
@@ -46,6 +47,9 @@ function c26732909.clear(e,tp,eg,ep,ev,re,r,rp)
c26732909
[
0
]
=
0
c26732909
[
1
]
=
0
end
function
c26732909
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
end
function
c26732909
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
c26732909
[
tp
]
>
0
and
Duel
.
GetFlagEffect
(
tp
,
26732909
)
==
0
and
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
end
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
...
...
script/c3897065.lua
View file @
ca9daa84
...
...
@@ -35,15 +35,15 @@ function c3897065.initial_effect(c)
end
c3897065
.
material_count
=
4
c3897065
.
material
=
{
61538782
,
98049038
,
71218746
,
984114
}
function
c3897065
.
eqfilter
(
c
)
return
c
:
IsFaceup
()
and
not
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsAbleToChangeControler
(
)
function
c3897065
.
eqfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
not
c
:
IsRace
(
RACE_MACHINE
)
and
(
c
:
IsControler
(
tp
)
or
c
:
IsAbleToChangeControler
()
)
end
function
c3897065
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c3897065
.
eqfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c3897065
.
eqfilter
(
chkc
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c3897065
.
eqfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
e
:
GetHandler
()
)
end
and
Duel
.
IsExistingTarget
(
c3897065
.
eqfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
e
:
GetHandler
(),
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c3897065
.
eqfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
e
:
GetHandler
()
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c3897065
.
eqfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
e
:
GetHandler
(),
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
g
,
1
,
0
,
0
)
end
function
c3897065
.
eqlimit
(
e
,
c
)
...
...
script/c39751093.lua
View file @
ca9daa84
...
...
@@ -22,7 +22,7 @@ function c39751093.initial_effect(c)
e4
:
SetDescription
(
aux
.
Stringid
(
39751093
,
1
))
e4
:
SetCategory
(
CATEGORY_POSITION
)
e4
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_
F
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_
O
)
e4
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e4
:
SetTarget
(
c39751093
.
target
)
e4
:
SetOperation
(
c39751093
.
operation
)
...
...
script/c39751094.lua
View file @
ca9daa84
...
...
@@ -22,7 +22,7 @@ function c39751094.initial_effect(c)
e4
:
SetDescription
(
aux
.
Stringid
(
39751094
,
1
))
e4
:
SetCategory
(
CATEGORY_POSITION
)
e4
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_
F
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_
O
)
e4
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e4
:
SetTarget
(
c39751094
.
target
)
e4
:
SetOperation
(
c39751094
.
operation
)
...
...
script/c42386471.lua
View file @
ca9daa84
...
...
@@ -64,10 +64,10 @@ function c42386471.dircon(e)
end
function
c42386471
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
nil
,
0
,
1
-
tp
,
1
)
end
function
c42386471
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetFieldGroup
(
ep
,
LOCATION_HAND
,
0
,
nil
)
local
g
=
Duel
.
GetFieldGroup
(
ep
,
LOCATION_HAND
,
0
)
if
g
:
GetCount
()
==
0
then
return
end
local
sg
=
g
:
RandomSelect
(
1
-
tp
,
1
)
Duel
.
SendtoGrave
(
sg
,
REASON_EFFECT
+
REASON_DISCARD
)
...
...
script/c44763025.lua
View file @
ca9daa84
...
...
@@ -25,7 +25,7 @@ function c44763025.activate(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetFieldGroup
(
p
,
0
,
LOCATION_HAND
)
if
g
:
GetCount
()
>
0
then
local
sg
=
g
:
RandomSelect
(
p
,
1
)
Duel
.
SendtoGrave
(
sg
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
sg
,
REASON_EFFECT
+
REASON_DISCARD
)
g
:
RemoveCard
(
sg
:
GetFirst
())
if
g
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
p
,
HINTMSG_DISCARD
)
...
...
script/c48579379.lua
View file @
ca9daa84
--究極完全態·グレート·モス
function
c48579379
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
--cannot special summon
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
)
...
...
script/c49681811.lua
View file @
ca9daa84
...
...
@@ -56,7 +56,7 @@ function c49681811.condition(e,tp,eg,ep,ev,re,r,rp)
and
Duel
.
GetDrawCount
(
tp
)
>
0
end
function
c49681811
.
filter
(
c
)
return
c
:
GetLevel
()
==
4
and
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAbleToHand
()
return
c
:
IsLevelBelow
(
4
)
and
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAbleToHand
()
end
function
c49681811
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c49681811
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
script/c54704216.lua
View file @
ca9daa84
...
...
@@ -30,6 +30,7 @@ function c54704216.initial_effect(c)
e3
:
SetCondition
(
c54704216
.
descon
)
e3
:
SetOperation
(
c54704216
.
desop
)
c
:
RegisterEffect
(
e3
)
e1
:
SetLabelObject
(
e3
)
end
function
c54704216
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
end
...
...
@@ -40,14 +41,15 @@ end
function
c54704216
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
Is
Faceup
()
and
tc
:
Is
RelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
then
c
:
SetCardTarget
(
tc
)
c
:
CreateRelation
(
tc
,
RESET_EVENT
+
0x1fe0000
)
e
:
GetLabelObject
():
SetLabelObject
(
tc
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_OWNER_RELATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetProperty
(
EFFECT_FLAG_OWNER_RELATE
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
0x1f
e
0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1f
c
0000
)
e1
:
SetCondition
(
c54704216
.
rcon
)
tc
:
RegisterEffect
(
e1
,
true
)
local
e2
=
e1
:
Clone
()
...
...
@@ -56,16 +58,16 @@ function c54704216.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c54704216
.
rcon
(
e
)
return
e
:
GetOwner
():
Is
HasCardTarget
(
e
:
GetHandler
())
return
e
:
GetOwner
():
Is
RelateToCard
(
e
:
GetHandler
())
end
function
c54704216
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
then
return
false
end
local
tc
=
c
:
GetFirstCardTarge
t
()
return
tc
and
eg
:
IsContains
(
tc
)
local
tc
=
e
:
GetLabelObjec
t
()
return
tc
and
eg
:
IsContains
(
tc
)
and
c
:
IsRelateToCard
(
tc
)
end
function
c54704216
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
end
function
c54704216
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
tp
==
Duel
.
GetTurnPlayer
()
...
...
script/c74117290.lua
View file @
ca9daa84
...
...
@@ -2,7 +2,7 @@
function
c74117290
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_DRAW
)
e1
:
SetCategory
(
CATEGORY_
HANDES
+
CATEGORY_
DRAW
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetTarget
(
c74117290
.
target
)
...
...
script/c76224717.lua
View file @
ca9daa84
...
...
@@ -13,6 +13,7 @@ function c76224717.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCondition
(
c76224717
.
condition
)
e2
:
SetCost
(
c76224717
.
cost
)
e2
:
SetTarget
(
c76224717
.
target1
)
...
...
@@ -27,6 +28,7 @@ function c76224717.initial_effect(c)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCondition
(
c76224717
.
condition
)
e3
:
SetCost
(
c76224717
.
cost
)
e3
:
SetTarget
(
c76224717
.
target2
)
...
...
@@ -41,6 +43,7 @@ function c76224717.initial_effect(c)
e4
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e4
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetCountLimit
(
1
)
e4
:
SetCondition
(
c76224717
.
condition
)
e4
:
SetCost
(
c76224717
.
cost
)
e4
:
SetTarget
(
c76224717
.
target3
)
...
...
@@ -78,13 +81,12 @@ function c76224717.clear(e,tp,eg,ep,ev,re,r,rp)
c76224717
[
0
]
=
0
c76224717
[
1
]
=
0
end
function
c76224717
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c76224717
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
c76224717
[
tp
]
>=
e
:
GetLabel
()
end
function
c76224717
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
76224717
)
==
0
end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
Duel
.
RegisterFlagEffect
(
tp
,
76224717
,
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
end
function
c76224717
.
filter1
(
c
)
return
c
:
IsFacedown
()
and
c
:
IsDestructable
()
...
...
script/c78663366.lua
View file @
ca9daa84
...
...
@@ -22,13 +22,22 @@ function c78663366.operation(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_STANDBY
)
if
Duel
.
GetCurrentPhase
()
==
PHASE_STANDBY
then
e1
:
SetLabel
(
Duel
.
GetTurnCount
())
e1
:
SetCondition
(
c78663366
.
retcon
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_STANDBY
,
2
)
else
e1
:
SetReset
(
RESET_PHASE
+
PHASE_STANDBY
)
end
e1
:
SetLabelObject
(
c
)
e1
:
SetCountLimit
(
1
)
e1
:
SetOperation
(
c78663366
.
retop
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c78663366
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnCount
()
~=
e
:
GetLabel
()
end
function
c78663366
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
()
if
Duel
.
ReturnToField
(
tc
)
and
tc
:
IsFaceup
()
then
...
...
script/c80513550.lua
View file @
ca9daa84
...
...
@@ -15,6 +15,7 @@ function c80513550.initial_effect(c)
e2
:
SetCategory
(
CATEGORY_HANDES
+
CATEGORY_DRAW
)
e2
:
SetCode
(
EVENT_BATTLE_DAMAGE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetCondition
(
c80513550
.
hdcon
)
e2
:
SetTarget
(
c80513550
.
hdtg
)
e2
:
SetOperation
(
c80513550
.
hdop
)
c
:
RegisterEffect
(
e2
)
...
...
@@ -39,9 +40,12 @@ function c80513550.hspcon(e,c)
return
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c80513550
.
hspfilter
,
c
:
GetControler
(),
LOCATION_SZONE
,
0
,
3
,
nil
)
end
function
c80513550
.
hdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
()
==
Duel
.
GetAttacker
()
end
function
c80513550
.
hdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_
TOGRAVE
,
nil
,
0
,
1
-
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_
HANDES
,
nil
,
0
,
1
-
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
function
c80513550
.
hdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c95096437.lua
View file @
ca9daa84
...
...
@@ -42,7 +42,7 @@ end
function
c95096437
.
hdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_
TOGRAVE
,
nil
,
1
,
1
-
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_
HANDES
,
nil
,
0
,
1
-
tp
,
2
)
end
function
c95096437
.
hdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
)
...
...
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