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
be8e2a56
Commit
be8e2a56
authored
Dec 19, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
3788abb8
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
66 additions
and
123 deletions
+66
-123
c13301895.lua
c13301895.lua
+2
-1
c28151978.lua
c28151978.lua
+1
-2
c40522482.lua
c40522482.lua
+2
-5
c49306994.lua
c49306994.lua
+1
-1
c51644030.lua
c51644030.lua
+5
-5
c54423935.lua
c54423935.lua
+5
-5
c58330108.lua
c58330108.lua
+30
-29
c66768175.lua
c66768175.lua
+2
-2
c76403456.lua
c76403456.lua
+2
-1
c88851326.lua
c88851326.lua
+2
-2
c89974904.lua
c89974904.lua
+9
-65
c90812044.lua
c90812044.lua
+1
-2
c92767273.lua
c92767273.lua
+4
-3
No files found.
c13301895.lua
View file @
be8e2a56
...
@@ -10,9 +10,10 @@ function c13301895.initial_effect(c)
...
@@ -10,9 +10,10 @@ function c13301895.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTarget
(
c13301895
.
immtg
)
e2
:
SetTarget
(
c13301895
.
immtg
)
e2
:
SetValue
(
aux
.
tgoval
)
e2
:
SetValue
(
aux
.
tgoval
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--Indes
--Indes
local
e3
=
e2
:
Clone
()
local
e3
=
e2
:
Clone
()
...
...
c28151978.lua
View file @
be8e2a56
...
@@ -64,7 +64,6 @@ function c28151978.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -64,7 +64,6 @@ function c28151978.thop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
end
end
end
function
c28151978
.
synlimit
(
e
,
c
)
function
c28151978
.
synlimit
(
e
,
c
)
...
@@ -73,6 +72,6 @@ function c28151978.synlimit(e,c)
...
@@ -73,6 +72,6 @@ function c28151978.synlimit(e,c)
end
end
function
c28151978
.
rmcon
(
e
)
function
c28151978
.
rmcon
(
e
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
bit
.
band
(
c
:
GetSummonLocation
(),
LOCATION_EXTRA
)
~=
0
return
c
:
GetSummonLocation
()
==
LOCATION_EXTRA
and
bit
.
band
(
c
:
GetReason
(),
REASON_MATERIAL
+
REASON_SYNCHRO
)
==
REASON_MATERIAL
+
REASON_SYNCHRO
and
bit
.
band
(
c
:
GetReason
(),
REASON_MATERIAL
+
REASON_SYNCHRO
)
==
REASON_MATERIAL
+
REASON_SYNCHRO
end
end
c40522482.lua
View file @
be8e2a56
...
@@ -5,7 +5,7 @@ function c40522482.initial_effect(c)
...
@@ -5,7 +5,7 @@ function c40522482.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_DAMAGE
)
e1
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_DAMAGE
)
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
+
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetTarget
(
c40522482
.
target
)
e1
:
SetTarget
(
c40522482
.
target
)
e1
:
SetOperation
(
c40522482
.
activate
)
e1
:
SetOperation
(
c40522482
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
@@ -25,7 +25,6 @@ function c40522482.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -25,7 +25,6 @@ function c40522482.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
atk
=
tg
:
GetFirst
():
GetAttack
()
local
atk
=
tg
:
GetFirst
():
GetAttack
()
local
g
=
Duel
.
GetMatchingGroup
(
c40522482
.
desfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
atk
)
local
g
=
Duel
.
GetMatchingGroup
(
c40522482
.
desfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
atk
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetTargetPlayer
(
1
-
tp
)
local
fc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
5
)
local
fc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
5
)
local
dam
=
0
local
dam
=
0
if
fc
and
c40522482
.
ffilter
(
fc
)
then
if
fc
and
c40522482
.
ffilter
(
fc
)
then
...
@@ -33,7 +32,6 @@ function c40522482.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -33,7 +32,6 @@ function c40522482.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
else
else
g
,
dam
=
g
:
GetMaxGroup
(
Card
.
GetBaseAttack
)
g
,
dam
=
g
:
GetMaxGroup
(
Card
.
GetBaseAttack
)
end
end
Duel
.
SetTargetParam
(
dam
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
1
,
1
-
tp
,
dam
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
1
,
1
-
tp
,
dam
)
end
end
function
c40522482
.
ffilter
(
c
)
function
c40522482
.
ffilter
(
c
)
...
@@ -42,7 +40,6 @@ end
...
@@ -42,7 +40,6 @@ end
function
c40522482
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c40522482
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
if
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
local
p
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
)
local
g
=
Duel
.
GetMatchingGroup
(
c40522482
.
desfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
tc
:
GetAttack
())
local
g
=
Duel
.
GetMatchingGroup
(
c40522482
.
desfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
tc
:
GetAttack
())
if
g
:
GetCount
()
>
0
and
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
>
0
then
if
g
:
GetCount
()
>
0
and
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
>
0
then
local
og
=
Duel
.
GetOperatedGroup
():
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_GRAVE
)
local
og
=
Duel
.
GetOperatedGroup
():
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_GRAVE
)
...
@@ -54,6 +51,6 @@ function c40522482.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -54,6 +51,6 @@ function c40522482.activate(e,tp,eg,ep,ev,re,r,rp)
else
else
g
,
dam
=
og
:
GetMaxGroup
(
Card
.
GetBaseAttack
)
g
,
dam
=
og
:
GetMaxGroup
(
Card
.
GetBaseAttack
)
end
end
Duel
.
Damage
(
p
,
dam
,
REASON_EFFECT
)
Duel
.
Damage
(
1
-
t
p
,
dam
,
REASON_EFFECT
)
end
end
end
end
c49306994.lua
View file @
be8e2a56
...
@@ -132,7 +132,7 @@ function c49306994.checkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -132,7 +132,7 @@ function c49306994.checkop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c49306994
.
leave
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c49306994
.
leave
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
e
:
GetLabelObject
():
GetLabel
()
==
0
and
c
:
GetPreviousControler
()
==
tp
if
e
:
GetLabelObject
():
GetLabel
()
==
0
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_SZONE
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
then
and
c
:
IsPreviousLocation
(
LOCATION_SZONE
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
then
Duel
.
Damage
(
tp
,
3000
,
REASON_EFFECT
)
Duel
.
Damage
(
tp
,
3000
,
REASON_EFFECT
)
end
end
...
...
c51644030.lua
View file @
be8e2a56
--ディアバウンド・カーネル
--ディアバウンド・カーネル
function
c51644030
.
initial_effect
(
c
)
function
c51644030
.
initial_effect
(
c
)
--
Increase ATK
--
atk up
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
51644030
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
51644030
,
0
))
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
...
@@ -8,7 +8,7 @@ function c51644030.initial_effect(c)
...
@@ -8,7 +8,7 @@ function c51644030.initial_effect(c)
e1
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e1
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e1
:
SetOperation
(
c51644030
.
atkop1
)
e1
:
SetOperation
(
c51644030
.
atkop1
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--
Decrease ATK
--
atk down
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
51644030
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
51644030
,
1
))
e2
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_REMOVE
)
e2
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_REMOVE
)
...
@@ -28,7 +28,7 @@ function c51644030.atkop1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -28,7 +28,7 @@ function c51644030.atkop1(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
600
)
e1
:
SetValue
(
600
)
e1
:
SetReset
(
RESET_EVENT
+
0x1f
e
0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1f
f
0000
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c51644030
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c51644030
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -45,7 +45,7 @@ end
...
@@ -45,7 +45,7 @@ end
function
c51644030
.
atkop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c51644030
.
atkop2
(
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
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
c
:
IsFaceup
()
then
local
atk
=
c
:
GetAttack
()
local
atk
=
c
:
GetAttack
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
@@ -53,7 +53,7 @@ function c51644030.atkop2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -53,7 +53,7 @@ function c51644030.atkop2(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetValue
(
-
atk
)
e1
:
SetValue
(
-
atk
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
and
not
tc
:
IsHasEffect
(
EFFECT_REVERSE_UPDATE
)
then
if
c
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsHasEffect
(
EFFECT_REVERSE_UPDATE
)
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
if
Duel
.
Remove
(
c
,
0
,
REASON_EFFECT
+
REASON_TEMPORARY
)
~=
0
then
if
Duel
.
Remove
(
c
,
0
,
REASON_EFFECT
+
REASON_TEMPORARY
)
~=
0
then
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
c54423935.lua
View file @
be8e2a56
...
@@ -11,7 +11,7 @@ function c54423935.initial_effect(c)
...
@@ -11,7 +11,7 @@ function c54423935.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c54423935
.
filter
(
c
,
e
,
tp
)
function
c54423935
.
filter
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xba
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xba
)
and
Duel
.
IsExistingMatchingCard
(
c54423935
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
c
:
GetCode
())
and
Duel
.
IsExistingMatchingCard
(
c54423935
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
c
:
GetCode
())
end
end
function
c54423935
.
spfilter
(
c
,
e
,
tp
,
cd
)
function
c54423935
.
spfilter
(
c
,
e
,
tp
,
cd
)
...
@@ -30,15 +30,15 @@ function c54423935.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -30,15 +30,15 @@ function c54423935.activate(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
local
code
=
tc
:
GetCode
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c54423935
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
,
code
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c54423935
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
:
GetCode
()
)
local
sc
=
g
:
GetFirst
()
local
sc
=
g
:
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_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e1
:
SetLabelObject
(
sc
)
e1
:
SetLabelObject
(
sc
)
e1
:
SetLabel
(
sc
:
GetFieldID
())
e1
:
SetCondition
(
c54423935
.
imcon
)
e1
:
SetCondition
(
c54423935
.
imcon
)
e1
:
SetValue
(
aux
.
imval1
)
e1
:
SetValue
(
aux
.
imval1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
...
@@ -54,6 +54,6 @@ end
...
@@ -54,6 +54,6 @@ end
function
c54423935
.
imcon
(
e
)
function
c54423935
.
imcon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
local
tp
=
e
:
GetHandlerPlayer
()
local
sc
=
e
:
GetLabelObject
()
local
sc
=
e
:
GetLabelObject
()
return
sc
and
sc
:
IsFaceup
()
and
sc
:
IsLocation
(
LOCATION_MZONE
)
return
sc
and
sc
:
GetFieldID
()
==
e
:
GetLabel
()
and
sc
:
IsFaceup
()
and
sc
:
IsLocation
(
LOCATION_MZONE
)
and
sc
:
IsControler
(
tp
)
and
bit
.
band
(
sc
:
GetSummonType
(),
SUMMON_TYPE_SPECIAL
)
==
SUMMON_TYPE_SPECIAL
and
sc
:
IsControler
(
tp
)
end
end
c58330108.lua
View file @
be8e2a56
...
@@ -7,8 +7,8 @@ function c58330108.initial_effect(c)
...
@@ -7,8 +7,8 @@ function c58330108.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCondition
(
c58330108
.
h
spcon
)
e1
:
SetCondition
(
c58330108
.
spcon
)
e1
:
SetOperation
(
c58330108
.
h
spop
)
e1
:
SetOperation
(
c58330108
.
spop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--atk gain
--atk gain
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
@@ -29,33 +29,34 @@ function c58330108.initial_effect(c)
...
@@ -29,33 +29,34 @@ function c58330108.initial_effect(c)
e3
:
SetOperation
(
c58330108
.
operation
)
e3
:
SetOperation
(
c58330108
.
operation
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c58330108
.
hsp
filter
(
c
)
function
c58330108
.
c
filter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToGraveAsCost
()
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToGraveAsCost
()
end
end
function
c58330108
.
h
spcon
(
e
,
c
)
function
c58330108
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
g
=
Duel
.
GetMatchingGroup
(
c58330108
.
hsp
filter
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
0
,
c
)
local
g
=
Duel
.
GetMatchingGroup
(
c58330108
.
c
filter
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
0
,
c
)
return
g
:
GetCount
()
>=
2
and
ft
>
=
0
and
(
ft
>
0
or
g
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_MZONE
)
>
0
)
return
g
:
GetCount
()
>=
2
and
ft
>
-
2
and
g
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_MZONE
)
>-
ft
end
end
function
c58330108
.
hspop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c58330108
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
tp
=
c
:
GetControler
()
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
ft
<
0
then
return
end
local
ct
=-
ft
+
1
local
hc
=
2
local
g
=
Duel
.
GetMatchingGroup
(
c58330108
.
cfilter
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
0
,
c
)
local
g
=
Duel
.
GetMatchingGroup
(
c58330108
.
hspfilter
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
0
,
c
)
local
sg
=
nil
local
sg
=
Group
.
CreateGroup
()
if
ft
<=
0
then
if
ft
==
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
sg
=
g
:
FilterSelect
(
tp
,
Card
.
IsLocation
,
ct
,
ct
,
nil
,
LOCATION_MZONE
)
if
ct
<
2
then
g
:
Sub
(
sg
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
sg1
=
g
:
Select
(
tp
,
2
-
ct
,
2
-
ct
,
nil
)
sg
:
Merge
(
sg1
)
end
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
sg1
=
g
:
FilterSelect
(
tp
,
Card
.
IsLocation
,
1
,
1
,
nil
,
LOCATION_MZONE
)
sg
=
g
:
Select
(
tp
,
2
,
2
,
nil
)
sg
:
Merge
(
sg1
)
g
:
RemoveCard
(
sg1
:
GetFirst
())
hc
=
hc
-
1
end
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
sg2
=
g
:
Select
(
tp
,
hc
,
hc
,
nil
)
sg
:
Merge
(
sg2
)
Duel
.
SendtoGrave
(
sg
,
REASON_COST
)
Duel
.
SendtoGrave
(
sg
,
REASON_COST
)
end
end
function
c58330108
.
value
(
e
,
c
)
function
c58330108
.
value
(
e
,
c
)
...
@@ -77,17 +78,17 @@ function c58330108.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -77,17 +78,17 @@ function c58330108.target(e,tp,eg,ep,ev,re,r,rp,chk)
local
b3
=
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
1
,
c
)
local
b3
=
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
1
,
c
)
return
(
gc
==
1
and
b1
)
or
(
gc
==
2
and
b2
)
or
(
gc
>
2
and
b3
)
return
(
gc
==
1
and
b1
)
or
(
gc
==
2
and
b2
)
or
(
gc
>
2
and
b3
)
end
end
local
cat
=
CATEGORY_DESTROY
if
gc
==
1
then
local
rec
=
nil
e
:
SetCategory
(
CATEGORY_DESTROY
)
local
loc
=
LOCATION_ONFIELD
local
g
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
c
)
if
gc
>
1
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
cat
=
CATEGORY_REMOVE
else
rec
=
Card
.
IsAbleToRemove
e
:
SetCategory
(
CATEGORY_REMOVE
)
local
loc
=
LOCATION_ONFIELD
if
gc
>
2
then
loc
=
LOCATION_ONFIELD
+
LOCATION_GRAVE
end
if
gc
>
2
then
loc
=
LOCATION_ONFIELD
+
LOCATION_GRAVE
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
loc
,
loc
,
c
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
g
:
GetCount
(),
0
,
0
)
end
end
e
:
SetCategory
(
cat
)
local
g
=
Duel
.
GetMatchingGroup
(
rec
,
tp
,
loc
,
loc
,
c
)
Duel
.
SetOperationInfo
(
0
,
cat
,
g
,
g
:
GetCount
(),
0
,
0
)
end
end
function
c58330108
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c58330108
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c66768175.lua
View file @
be8e2a56
...
@@ -21,7 +21,7 @@ function c66768175.initial_effect(c)
...
@@ -21,7 +21,7 @@ function c66768175.initial_effect(c)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCondition
(
c66768175
.
atkcon2
)
e2
:
SetCondition
(
c66768175
.
atkcon2
)
e2
:
SetTarget
(
c66768175
.
atktg2
)
e2
:
SetTarget
(
c66768175
.
atktg2
)
e2
:
SetOperation
(
c66768175
.
atkop2
)
e2
:
SetOperation
(
c66768175
.
atkop2
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c66768175
.
atkcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c66768175
.
atkcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -30,7 +30,7 @@ function c66768175.atkcon1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -30,7 +30,7 @@ function c66768175.atkcon1(e,tp,eg,ep,ev,re,r,rp)
if
not
bc
then
return
false
end
if
not
bc
then
return
false
end
if
tc
:
IsControler
(
1
-
tp
)
then
bc
,
tc
=
tc
,
bc
end
if
tc
:
IsControler
(
1
-
tp
)
then
bc
,
tc
=
tc
,
bc
end
e
:
SetLabelObject
(
bc
)
e
:
SetLabelObject
(
bc
)
return
bc
:
IsFaceup
()
and
tc
:
IsSetCard
(
0x9f
)
return
bc
:
IsFaceup
()
and
tc
:
Is
Faceup
()
and
tc
:
Is
SetCard
(
0x9f
)
end
end
function
c66768175
.
atkop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c66768175
.
atkop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
...
...
c76403456.lua
View file @
be8e2a56
...
@@ -15,7 +15,8 @@ function c76403456.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -15,7 +15,8 @@ function c76403456.condition(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c76403456
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c76403456
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
val
=
math.ceil
(
Duel
.
GetBattleDamage
(
tp
)
/
500
)
local
val
=
math.ceil
(
Duel
.
GetBattleDamage
(
tp
)
/
500
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
val
)
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
val
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_AVOID_BATTLE_DAMAGE
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
g
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
g
)
end
end
function
c76403456
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c76403456
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c88851326.lua
View file @
be8e2a56
...
@@ -60,7 +60,7 @@ function c88851326.initial_effect(c)
...
@@ -60,7 +60,7 @@ function c88851326.initial_effect(c)
end
end
end
end
function
c88851326
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c88851326
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
eg
and
eg
:
IsExists
(
Card
.
IsPreviousLocation
,
1
,
nil
,
LOCATION_HAND
)
then
if
eg
:
IsExists
(
Card
.
IsPreviousLocation
,
1
,
nil
,
LOCATION_HAND
)
then
Duel
.
RegisterFlagEffect
(
rp
,
88851326
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
rp
,
88851326
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
end
end
...
@@ -126,7 +126,7 @@ function c88851326.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -126,7 +126,7 @@ function c88851326.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c88851326
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c88851326
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
end
end
c89974904.lua
View file @
be8e2a56
...
@@ -10,58 +10,18 @@ function c89974904.initial_effect(c)
...
@@ -10,58 +10,18 @@ function c89974904.initial_effect(c)
e1
:
SetOperation
(
c89974904
.
activate
)
e1
:
SetOperation
(
c89974904
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c89974904
.
spfilter
(
c
,
e
,
tp
,
mg
)
function
c89974904
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsLevelAbove
(
1
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingMatchingCard
(
c89974904
.
synfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
c
,
mg
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsSynchroSummonable
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
c
)
end
function
c89974904
.
matfilter
(
c
,
sc
,
lv
)
return
c
:
GetSynchroLevel
(
c
,
sc
)
<=
lv
end
function
c89974904
.
syngfilter
(
c
,
sc
,
sg
,
g
,
olv
)
local
mg
=
g
:
Clone
()
mg
:
RemoveCard
(
c
)
local
lv
=
olv
-
c
:
GetSynchroLevel
(
sc
)
if
lv
<
0
then
return
false
end
local
sg2
=
sg
:
Clone
()
sg2
:
AddCard
(
c
)
if
lv
==
0
then
return
sc
:
IsSynchroSummonable
(
nil
,
sg2
)
else
local
tc
=
mg
:
GetFirst
()
while
tc
do
if
c89974904
.
syngfilter
(
tc
,
sc
,
sg2
,
mg
,
lv
)
then
return
true
end
tc
=
mg
:
GetNext
()
end
return
false
end
end
function
c89974904
.
synfilter
(
c
,
pc
,
g
)
local
mg
=
g
:
Clone
()
if
not
c
:
IsRace
(
RACE_DRAGON
+
RACE_FIEND
)
or
not
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
or
not
c
:
IsType
(
TYPE_SYNCHRO
)
then
return
false
end
local
lv
=
c
:
GetLevel
()
-
pc
:
GetSynchroLevel
(
c
)
if
lv
<=
0
then
return
false
end
mg
=
mg
:
Filter
(
c89974904
.
matfilter
,
nil
,
c
,
lv
)
local
tc
=
mg
:
GetFirst
()
while
tc
do
local
mg2
=
mg
:
Clone
()
mg2
:
RemoveCard
(
tc
)
local
sg
=
Group
.
FromCards
(
pc
)
if
c89974904
.
syngfilter
(
tc
,
c
,
sg
,
mg2
,
lv
)
then
return
true
end
tc
=
mg
:
GetNext
()
end
return
false
end
end
function
c89974904
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c89974904
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
mg
=
Duel
.
GetMatchingGroup
(
Card
.
IsCanBeSynchroMaterial
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c89974904
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c89974904
.
spfilter
(
chkc
,
e
,
tp
,
mg
)
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanSpecialSummonCount
(
tp
,
2
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanSpecialSummonCount
(
tp
,
2
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c89974904
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
,
mg
)
end
and
Duel
.
IsExistingTarget
(
c89974904
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c89974904
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
,
mg
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c89974904
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
2
,
tp
,
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
end
function
c89974904
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c89974904
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -76,27 +36,11 @@ function c89974904.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -76,27 +36,11 @@ function c89974904.activate(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
local
mg
=
Duel
.
GetMatchingGroup
(
Card
.
IsCanBeSynchroMaterial
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsSynchroSummonable
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
tc
)
if
mg
:
IsContains
(
tc
)
then
mg
:
RemoveCard
(
tc
)
end
local
g
=
Duel
.
GetMatchingGroup
(
c89974904
.
synfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
tc
,
mg
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
sc
=
sg
:
GetFirst
()
Duel
.
SynchroSummon
(
tp
,
sg
:
GetFirst
(),
tc
)
local
mat
=
Group
.
FromCards
(
tc
)
local
lv
=
sc
:
GetLevel
()
-
tc
:
GetSynchroLevel
(
sc
)
while
lv
>
0
do
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SMATERIAL
)
local
m2
=
mg
:
FilterSelect
(
tp
,
c89974904
.
syngfilter
,
1
,
1
,
nil
,
sc
,
mat
,
mg
,
lv
)
mat
:
AddCard
(
m2
:
GetFirst
())
mg
:
RemoveCard
(
m2
:
GetFirst
())
lv
=
lv
-
m2
:
GetFirst
():
GetSynchroLevel
(
sc
)
end
sc
:
SetMaterial
(
mat
)
Duel
.
SendtoGrave
(
mat
,
REASON_MATERIAL
+
REASON_SYNCHRO
)
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
sc
,
SUMMON_TYPE_SYNCHRO
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
sc
:
CompleteProcedure
()
end
end
end
end
end
end
c90812044.lua
View file @
be8e2a56
...
@@ -40,8 +40,7 @@ function c90812044.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -40,8 +40,7 @@ function c90812044.activate(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
,
c90812044
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
r
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c90812044
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
r
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
not
tc
then
return
end
if
tc
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
if
Duel
.
SpecialSummon
(
tc
,
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_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_DIRECT_ATTACK
)
e1
:
SetCode
(
EFFECT_CANNOT_DIRECT_ATTACK
)
...
...
c92767273.lua
View file @
be8e2a56
--EMバラクーダ
--EMバラクーダ
function
c92767273
.
initial_effect
(
c
)
function
c92767273
.
initial_effect
(
c
)
--pendulum summon
aux
.
EnablePendulumAttribute
(
c
)
aux
.
EnablePendulumAttribute
(
c
)
--
reduce atk
--
atk up
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
92767273
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
92767273
,
0
))
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_
PRE_DAMAGE_CALCULATE
)
e1
:
SetCode
(
EVENT_
BATTLE_CONFIRM
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
c92767273
.
atkcon1
)
e1
:
SetCondition
(
c92767273
.
atkcon1
)
e1
:
SetOperation
(
c92767273
.
atkop1
)
e1
:
SetOperation
(
c92767273
.
atkop1
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--
increase atk
--
atk down
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
92767273
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
92767273
,
1
))
e2
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e2
:
SetCategory
(
CATEGORY_ATKCHANGE
)
...
...
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