Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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-scripts
Commits
0f2bb610
Commit
0f2bb610
authored
Oct 16, 2017
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
a8b0234d
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
52 additions
and
84 deletions
+52
-84
c15449853.lua
c15449853.lua
+1
-0
c16261341.lua
c16261341.lua
+11
-25
c40177746.lua
c40177746.lua
+2
-2
c42444868.lua
c42444868.lua
+1
-1
c49930315.lua
c49930315.lua
+1
-1
c52927340.lua
c52927340.lua
+10
-10
c53266486.lua
c53266486.lua
+4
-9
c53666449.lua
c53666449.lua
+11
-4
c76029419.lua
c76029419.lua
+4
-2
c83477829.lua
c83477829.lua
+4
-4
c89055154.lua
c89055154.lua
+3
-26
No files found.
c15449853.lua
View file @
0f2bb610
...
@@ -37,6 +37,7 @@ function c15449853.initial_effect(c)
...
@@ -37,6 +37,7 @@ function c15449853.initial_effect(c)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
local
e6
=
e5
:
Clone
()
local
e6
=
e5
:
Clone
()
e6
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e6
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e6
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
c
:
RegisterEffect
(
e6
)
c
:
RegisterEffect
(
e6
)
--to deck
--to deck
local
e7
=
Effect
.
CreateEffect
(
c
)
local
e7
=
Effect
.
CreateEffect
(
c
)
...
...
c16261341.lua
View file @
0f2bb610
--天空聖騎士アークパーシアス
--天空聖騎士アークパーシアス
function
c16261341
.
initial_effect
(
c
)
function
c16261341
.
initial_effect
(
c
)
--
counter
--
special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
)
e1
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
)
e1
:
SetOperation
(
c16261341
.
chop1
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetOperation
(
aux
.
chainreg
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e2
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
)
e2
:
SetOperation
(
c16261341
.
chop2
)
c
:
RegisterEffect
(
e2
)
--special summon
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
16261341
,
0
))
e3
:
SetDescription
(
aux
.
Stringid
(
16261341
,
0
))
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
)
e3
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
)
e3
:
SetCode
(
EVENT_CHAIN_END
)
e3
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetCondition
(
c16261341
.
spcon1
)
e3
:
SetCondition
(
c16261341
.
spcon1
)
e3
:
SetCost
(
c16261341
.
spcost
)
e3
:
SetCost
(
c16261341
.
spcost
)
e3
:
SetTarget
(
c16261341
.
sptg
)
e3
:
SetTarget
(
c16261341
.
sptg
)
...
@@ -29,8 +24,6 @@ function c16261341.initial_effect(c)
...
@@ -29,8 +24,6 @@ function c16261341.initial_effect(c)
e4
:
SetCode
(
EVENT_CHAIN_NEGATED
)
e4
:
SetCode
(
EVENT_CHAIN_NEGATED
)
e4
:
SetCondition
(
c16261341
.
spcon2
)
e4
:
SetCondition
(
c16261341
.
spcon2
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
e1
:
SetLabelObject
(
e3
)
e2
:
SetLabelObject
(
e3
)
--pierce
--pierce
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
@@ -47,19 +40,12 @@ function c16261341.initial_effect(c)
...
@@ -47,19 +40,12 @@ function c16261341.initial_effect(c)
e6
:
SetOperation
(
c16261341
.
thop
)
e6
:
SetOperation
(
c16261341
.
thop
)
c
:
RegisterEffect
(
e6
)
c
:
RegisterEffect
(
e6
)
end
end
function
c16261341
.
chop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c16261341
.
spcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetLabelObject
():
SetLabel
(
0
)
return
rp
==
tp
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_COUNTER
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
end
function
c16261341
.
chop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
rp
~=
tp
or
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
not
re
:
IsActiveType
(
TYPE_COUNTER
)
then
return
end
e
:
GetLabelObject
():
SetLabel
(
1
)
end
function
c16261341
.
spcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
e
:
GetLabel
()
==
1
end
end
function
c16261341
.
spcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c16261341
.
spcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
d
e
,
dp
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_DISABLE_REASON
,
CHAININFO_DISABLE_PLAYER
)
local
d
p
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_DISABLE_PLAYER
)
return
dp
==
tp
return
dp
==
tp
and
(
re
:
IsActiveType
(
TYPE_MONSTER
)
or
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
))
end
end
function
c16261341
.
cfilter
(
c
)
function
c16261341
.
cfilter
(
c
)
return
c
:
IsRace
(
RACE_FAIRY
)
and
c
:
IsAbleToRemoveAsCost
()
return
c
:
IsRace
(
RACE_FAIRY
)
and
c
:
IsAbleToRemoveAsCost
()
...
...
c40177746.lua
View file @
0f2bb610
...
@@ -26,12 +26,12 @@ function c40177746.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -26,12 +26,12 @@ function c40177746.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
rg
=
Duel
.
SelectMatchingCard
(
tp
,
c40177746
.
cfilter
,
tp
,
LOCATION_MZONE
+
LOCATION_GRAVE
,
0
,
1
,
ct
,
e
:
GetHandler
())
local
rg
=
Duel
.
SelectMatchingCard
(
tp
,
c40177746
.
cfilter
,
tp
,
LOCATION_MZONE
+
LOCATION_GRAVE
,
0
,
1
,
ct
,
e
:
GetHandler
())
local
rc
=
Duel
.
Remove
(
rg
,
POS_FACEUP
,
REASON_COST
)
local
rc
=
Duel
.
Remove
(
rg
,
POS_FACEUP
,
REASON_COST
)
Duel
.
SetTargetParam
(
rc
)
e
:
SetLabel
(
rc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
rc
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
rc
,
tp
,
LOCATION_DECK
)
end
end
function
c40177746
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c40177746
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
dg
=
Duel
.
GetMatchingGroup
(
c40177746
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
dg
=
Duel
.
GetMatchingGroup
(
c40177746
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
ct
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PARAM
)
local
ct
=
e
:
GetLabel
(
)
if
dg
:
GetClassCount
(
Card
.
GetCode
)
==
0
or
dg
:
GetClassCount
(
Card
.
GetCode
)
<
ct
then
return
end
if
dg
:
GetClassCount
(
Card
.
GetCode
)
==
0
or
dg
:
GetClassCount
(
Card
.
GetCode
)
<
ct
then
return
end
local
g
=
Group
.
CreateGroup
()
local
g
=
Group
.
CreateGroup
()
for
i
=
1
,
ct
do
for
i
=
1
,
ct
do
...
...
c42444868.lua
View file @
0f2bb610
...
@@ -50,7 +50,7 @@ function c42444868.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -50,7 +50,7 @@ function c42444868.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
if
re
:
GetHandler
():
IsAbleToDeck
()
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
re
:
GetHandler
():
IsAbleToDeck
()
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
eg
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
eg
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
0
,
tp
,
LOCATION_DECK
+
LOCATION_EXTRA
)
end
end
end
end
function
c42444868
.
spfilter
(
c
,
e
,
tp
)
function
c42444868
.
spfilter
(
c
,
e
,
tp
)
...
...
c49930315.lua
View file @
0f2bb610
...
@@ -22,7 +22,7 @@ function c49930315.initial_effect(c)
...
@@ -22,7 +22,7 @@ function c49930315.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c49930315
.
cfilter
(
c
)
function
c49930315
.
cfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsDiscardable
()
end
end
function
c49930315
.
spcon
(
e
,
c
)
function
c49930315
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
...
...
c52927340.lua
View file @
0f2bb610
...
@@ -21,14 +21,6 @@ function c52927340.initial_effect(c)
...
@@ -21,14 +21,6 @@ function c52927340.initial_effect(c)
e2
:
SetTarget
(
c52927340
.
distg
)
e2
:
SetTarget
(
c52927340
.
distg
)
e2
:
SetOperation
(
c52927340
.
disop
)
e2
:
SetOperation
(
c52927340
.
disop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EFFECT_DISABLE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetTargetRange
(
LOCATION_ONFIELD
,
LOCATION_ONFIELD
)
e4
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e4
:
SetTarget
(
c52927340
.
dtg
)
c
:
RegisterEffect
(
e4
)
end
end
function
c52927340
.
cfilter
(
c
)
function
c52927340
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x103
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x103
)
...
@@ -60,10 +52,18 @@ end
...
@@ -60,10 +52,18 @@ end
function
c52927340
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c52927340
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
c
:
SetCardTarget
(
tc
)
c
:
SetCardTarget
(
tc
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_OWNER_RELATE
+
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetCondition
(
c52927340
.
rcon
)
tc
:
RegisterEffect
(
e1
,
true
)
end
end
end
end
function
c52927340
.
dtg
(
e
,
c
)
function
c52927340
.
rcon
(
e
,
c
)
return
e
:
GetHandler
():
IsHasCardTarget
(
c
)
return
e
:
GetHandler
():
IsHasCardTarget
(
c
)
end
end
c53266486.lua
View file @
0f2bb610
...
@@ -49,17 +49,12 @@ function c53266486.desop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -49,17 +49,12 @@ function c53266486.desop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetValue
(
RESET_TURN_SET
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
if
tc
:
IsType
(
TYPE_TRAPMONSTER
)
then
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetCode
(
EFFECT_DISABLE_TRAPMONSTER
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e3
)
end
local
e4
=
e1
:
Clone
()
local
e4
=
e1
:
Clone
()
e4
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e4
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
tc
:
RegisterEffect
(
e4
)
tc
:
RegisterEffect
(
e4
)
...
...
c53666449.lua
View file @
0f2bb610
--天空賢者ミネルヴァ
--天空賢者ミネルヴァ
function
c53666449
.
initial_effect
(
c
)
function
c53666449
.
initial_effect
(
c
)
--atk
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetCode
(
EVENT_CHAINING
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetOperation
(
aux
.
chainreg
)
c
:
RegisterEffect
(
e0
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_TOHAND
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e1
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
...
@@ -9,7 +18,7 @@ function c53666449.initial_effect(c)
...
@@ -9,7 +18,7 @@ function c53666449.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c53666449
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c53666449
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_COUNTER
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_COUNTER
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
end
end
function
c53666449
.
thfilter
(
c
,
code
)
function
c53666449
.
thfilter
(
c
,
code
)
return
c
:
IsType
(
TYPE_COUNTER
)
and
not
c
:
IsCode
(
code
)
and
c
:
IsAbleToHand
()
return
c
:
IsType
(
TYPE_COUNTER
)
and
not
c
:
IsCode
(
code
)
and
c
:
IsAbleToHand
()
...
@@ -23,9 +32,7 @@ function c53666449.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -23,9 +32,7 @@ function c53666449.atkop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
rc
=
re
:
GetHandler
()
local
rc
=
re
:
GetHandler
()
if
not
rc
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
c53666449
.
thfilter
),
tp
,
LOCATION_GRAVE
,
0
,
nil
,
rc
:
GetCode
())
local
code
=
rc
:
GetCode
()
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
c53666449
.
thfilter
),
tp
,
LOCATION_GRAVE
,
0
,
nil
,
code
)
if
Duel
.
IsEnvironment
(
56433456
)
and
g
:
GetCount
()
>
0
then
if
Duel
.
IsEnvironment
(
56433456
)
and
g
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_CARD
,
0
,
53666449
)
Duel
.
Hint
(
HINT_CARD
,
0
,
53666449
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
...
...
c76029419.lua
View file @
0f2bb610
...
@@ -2,9 +2,10 @@
...
@@ -2,9 +2,10 @@
function
c76029419
.
initial_effect
(
c
)
function
c76029419
.
initial_effect
(
c
)
--pendulum summon
--pendulum summon
aux
.
EnablePendulumAttribute
(
c
)
aux
.
EnablePendulumAttribute
(
c
)
--def
down
--def
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
76029419
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
76029419
,
0
))
e1
:
SetCategory
(
CATEGORY_DEFCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetRange
(
LOCATION_PZONE
)
...
@@ -12,9 +13,10 @@ function c76029419.initial_effect(c)
...
@@ -12,9 +13,10 @@ function c76029419.initial_effect(c)
e1
:
SetTarget
(
c76029419
.
deftg
)
e1
:
SetTarget
(
c76029419
.
deftg
)
e1
:
SetOperation
(
c76029419
.
defop
)
e1
:
SetOperation
(
c76029419
.
defop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--def
down
--def
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
76029419
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
76029419
,
1
))
e2
:
SetCategory
(
CATEGORY_DEFCHANGE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_BATTLE_CONFIRM
)
e2
:
SetCode
(
EVENT_BATTLE_CONFIRM
)
e2
:
SetCondition
(
c76029419
.
defcon2
)
e2
:
SetCondition
(
c76029419
.
defcon2
)
...
...
c83477829.lua
View file @
0f2bb610
...
@@ -59,10 +59,10 @@ function c83477829.tg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -59,10 +59,10 @@ function c83477829.tg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c83477829
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c83477829
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
c83477829
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
):
GetFirst
(
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c83477829
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
tc
then
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
end
end
function
c83477829
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c83477829
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c89055154.lua
View file @
0f2bb610
--力天使ヴァルキリア
--力天使ヴァルキリア
function
c89055154
.
initial_effect
(
c
)
function
c89055154
.
initial_effect
(
c
)
--counter
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetOperation
(
c89055154
.
chop1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_CHAIN_NEGATED
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetOperation
(
c89055154
.
chop2
)
c
:
RegisterEffect
(
e2
)
e1
:
SetLabelObject
(
e2
)
--special summon
--special summon
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
89055154
,
0
))
e3
:
SetDescription
(
aux
.
Stringid
(
89055154
,
0
))
e3
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e3
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetCode
(
EVENT_CHAIN_
EN
D
)
e3
:
SetCode
(
EVENT_CHAIN_
NEGATE
D
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
89055154
)
e3
:
SetCountLimit
(
1
,
89055154
)
e3
:
SetCondition
(
c89055154
.
thcon
)
e3
:
SetCondition
(
c89055154
.
thcon
)
e3
:
SetTarget
(
c89055154
.
thtg
)
e3
:
SetTarget
(
c89055154
.
thtg
)
e3
:
SetOperation
(
c89055154
.
thop
)
e3
:
SetOperation
(
c89055154
.
thop
)
e3
:
SetLabelObject
(
e2
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c89055154
.
chop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetLabelObject
():
SetLabel
(
0
)
end
function
c89055154
.
chop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
de
,
dp
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_DISABLE_REASON
,
CHAININFO_DISABLE_PLAYER
)
if
dp
==
tp
then
e
:
SetLabel
(
1
)
end
end
function
c89055154
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c89055154
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetLabelObject
():
GetLabel
()
~=
0
local
dp
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_DISABLE_PLAYER
)
return
dp
==
tp
and
(
re
:
IsActiveType
(
TYPE_MONSTER
)
or
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
))
end
end
function
c89055154
.
thfilter
(
c
)
function
c89055154
.
thfilter
(
c
)
return
c
:
IsRace
(
RACE_FAIRY
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
IsAbleToHand
()
return
c
:
IsRace
(
RACE_FAIRY
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
IsAbleToHand
()
...
...
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