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
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-scripts
Commits
a715903e
Commit
a715903e
authored
Apr 11, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix (80/80)
parent
b2e885b7
Changes
15
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
289 additions
and
279 deletions
+289
-279
c31472884.lua
c31472884.lua
+20
-23
c32104431.lua
c32104431.lua
+2
-7
c33327029.lua
c33327029.lua
+1
-1
c34449261.lua
c34449261.lua
+26
-18
c45383307.lua
c45383307.lua
+1
-1
c60433216.lua
c60433216.lua
+8
-7
c69599136.lua
c69599136.lua
+4
-6
c69711728.lua
c69711728.lua
+1
-2
c7044562.lua
c7044562.lua
+1
-1
c71650854.lua
c71650854.lua
+6
-6
c72772445.lua
c72772445.lua
+2
-2
c7922915.lua
c7922915.lua
+12
-20
c80896940.lua
c80896940.lua
+55
-55
c96100333.lua
c96100333.lua
+149
-129
c9989792.lua
c9989792.lua
+1
-1
No files found.
c31472884.lua
View file @
a715903e
...
...
@@ -2,7 +2,7 @@
function
c31472884
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_DEFCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
...
...
@@ -31,41 +31,38 @@ function c31472884.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DAMAGE
or
not
Duel
.
IsDamageCalculated
()
end
function
c31472884
.
cfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsDiscardable
()
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsDiscardable
()
and
c
:
GetAttack
()
>=
0
and
c
:
GetDefence
()
>=
0
and
Duel
.
IsExistingTarget
(
c31472884
.
tgfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
c
)
end
function
c31472884
.
tgfilter
(
c
,
dc
)
return
c
:
IsFaceup
()
and
(
c
:
GetAttack
()
~=
dc
:
GetAttack
()
or
c
:
GetDefence
()
~=
dc
:
GetDefence
())
end
function
c31472884
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
Duel
.
IsExistingMatchingCard
(
c31472884
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
and
Duel
.
GetFlagEffect
(
tp
,
31472884
)
==
0
then
e
:
SetLabel
(
1
)
return
true
else
return
false
end
e
:
SetLabel
(
1
)
return
true
end
function
c31472884
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsFaceup
()
and
c31472884
.
tgfilter
(
chkc
,
e
:
GetLabelObject
())
end
if
chk
==
0
then
if
e
:
GetLabel
()
~=
1
then
return
false
end
e
:
SetLabel
(
0
)
return
Duel
.
GetFlagEffect
(
tp
,
31472884
)
==
0
and
Duel
.
IsExistingMatchingCard
(
c31472884
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISCARD
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c31472884
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
+
REASON_DISCARD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c31472884
.
tgfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
,
g
:
GetFirst
())
e
:
SetLabelObject
(
g
:
GetFirst
())
g
:
GetFirst
():
CreateEffectRelation
(
e
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_DIRECT_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_
PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetProperty
(
EFFECT_FLAG_
OATH
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c31472884
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsFaceup
()
end
if
chk
==
0
then
if
e
:
GetLabel
()
~=
1
then
return
false
end
e
:
SetLabel
(
0
)
return
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
end
function
c31472884
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
cc
=
e
:
GetLabelObject
()
local
atk
=
cc
:
GetAttack
()
...
...
c32104431.lua
View file @
a715903e
...
...
@@ -25,7 +25,6 @@ function c32104431.costfilter(c)
return
c
:
IsSetCard
(
0xd6
)
and
c
:
IsDiscardable
()
end
function
c32104431
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
1
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c32104431
.
costfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
DiscardHand
(
tp
,
c32104431
.
costfilter
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
end
...
...
@@ -33,12 +32,8 @@ function c32104431.spfilter(c,e,tp)
return
c
:
IsSetCard
(
0xd7
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c32104431
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
e
:
GetLabel
()
==
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
false
end
e
:
SetLabel
(
0
)
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c32104431
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
e
:
SetLabel
(
0
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c32104431
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c32104431
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c33327029.lua
View file @
a715903e
...
...
@@ -49,7 +49,7 @@ function c33327029.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
end
function
c33327029
.
thfilter
(
c
)
return
c
:
Is
SetCard
(
0xe1
)
and
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsAbleToHand
()
return
c
:
Is
Faceup
()
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsSetCard
(
0xe1
)
and
c
:
IsAbleToHand
()
end
function
c33327029
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c33327029
.
thfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
)
end
...
...
c34449261.lua
View file @
a715903e
...
...
@@ -10,31 +10,39 @@ function c34449261.initial_effect(c)
e1
:
SetOperation
(
c34449261
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c34449261
.
filter1
(
c
,
tp
,
chk
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsSetCard
(
0xad
)
and
((
not
chk
)
or
Duel
.
IsExistingTarget
(
c34449261
.
filter2
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
)
function
c34449261
.
filter1
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsSetCard
(
0xad
)
and
Duel
.
IsExistingTarget
(
c34449261
.
filter2
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
tp
,
c
)
end
function
c34449261
.
filter2
(
c
,
tp
,
ex2
)
function
c34449261
.
filter2
(
c
,
tp
,
tc
)
local
tg
=
Group
.
FromCards
(
c
,
tc
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_FUSION
)
and
Duel
.
IsExistingMatchingCard
(
c34449261
.
filter3
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
c
,
ex2
)
and
Duel
.
IsExistingMatchingCard
(
c34449261
.
desfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
tg
)
end
function
c34449261
.
filter3
(
c
,
ex2
)
return
c
~=
ex2
and
bit
.
band
(
c
:
GetSummonType
(),
SUMMON_TYPE_SPECIAL
)
==
SUMMON_TYPE_SPECIAL
and
c
:
IsDestructable
()
function
c34449261
.
desfilter
(
c
,
tg
)
return
not
tg
:
IsContains
(
c
)
and
bit
.
band
(
c
:
GetSummonType
(),
SUMMON_TYPE_SPECIAL
)
==
SUMMON_TYPE_SPECIAL
and
c
:
IsDestructable
()
end
function
c34449261
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c34449261
.
filter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
,
true
)
end
local
g1
=
Duel
.
SelectTarget
(
tp
,
c34449261
.
filter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
,
false
)
function
c34449261
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c34449261
.
filter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
)
end
local
g1
=
Duel
.
SelectTarget
(
tp
,
c34449261
.
filter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
c34449261
.
filter2
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tp
,
g1
:
GetFirst
())
local
g3
=
Duel
.
GetMatchingGroup
(
c34449261
.
filter3
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
g1
:
GetFirst
(),
g2
:
GetFirst
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g3
,
g3
:
GetCount
(),
0
,
0
)
local
dam
=
g3
:
GetSum
(
Card
.
GetAttack
)
if
g3
:
FilterCount
(
Card
.
IsControler
,
nil
,
tp
)
>
0
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
tp
,
dam
)
end
if
g3
:
FilterCount
(
Card
.
IsControler
,
nil
,
1
-
tp
)
>
0
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
dam
)
end
g1
:
Merge
(
g2
)
local
g
=
Duel
.
GetMatchingGroup
(
c34449261
.
desfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
g1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
local
dam
=
g1
:
GetSum
(
Card
.
GetAttack
)
if
g
:
FilterCount
(
Card
.
IsControler
,
nil
,
1
-
tp
)
==
0
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
tp
,
dam
)
elseif
g
:
FilterCount
(
Card
.
IsControler
,
nil
,
tp
)
==
0
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
dam
)
else
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
PLAYER_ALL
,
dam
)
end
end
function
c34449261
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
t
c1
,
tc2
=
Duel
.
GetFirstTarget
(
)
local
dam
=
t
c1
:
GetAttack
()
+
tc2
:
GetAttack
(
)
local
g
=
Duel
.
GetMatchingGroup
(
c34449261
.
filter3
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
tc1
,
tc2
)
local
t
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
dam
=
t
g
:
Filter
(
Card
.
IsFaceup
,
nil
):
GetSum
(
Card
.
GetAttack
)
local
g
=
Duel
.
GetMatchingGroup
(
c34449261
.
desfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
tg
)
if
g
:
GetCount
()
>
0
and
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
~=
0
then
local
dg
=
Duel
.
GetOperatedGroup
()
if
dg
:
IsExists
(
aux
.
FilterEqualFunction
(
Card
.
GetPreviousControler
,
tp
),
1
,
nil
)
then
Duel
.
Damage
(
tp
,
dam
,
REASON_EFFECT
)
end
...
...
c45383307.lua
View file @
a715903e
...
...
@@ -69,7 +69,7 @@ function c45383307.thfilter(c)
end
function
c45383307
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_
ONFIELD
)
and
c
:
GetPreviousSequence
()
==
5
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
return
c
:
IsPreviousLocation
(
LOCATION_
SZONE
)
and
c
:
GetPreviousSequence
()
==
5
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
end
function
c45383307
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c45383307
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c60433216.lua
View file @
a715903e
...
...
@@ -23,16 +23,17 @@ end
function
c60433216
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetAttacker
()
if
tc
:
IsControler
(
1
-
tp
)
then
tc
=
Duel
.
GetAttackTarget
()
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
tc
:
RegisterEffect
(
e1
)
if
not
tc
or
not
tc
:
IsRelateToBattle
()
then
return
end
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
tc
:
RegisterEffect
(
e1
)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
60433216
,
0
,
0x11
,
0
,
0
,
1
,
RACE_FIEND
,
ATTRIBUTE_FIRE
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
60433216
,
0
,
0x1
01
1
,
0
,
0
,
1
,
RACE_FIEND
,
ATTRIBUTE_FIRE
)
then
return
end
c
:
AddTrapMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TUNER
,
ATTRIBUTE_FIRE
,
RACE_FIEND
,
1
,
0
,
0
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonsterBlock
()
...
...
c69599136.lua
View file @
a715903e
...
...
@@ -16,17 +16,15 @@ function c69599136.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
c69599136
.
filter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
GetSummonPlayer
()
~=
tp
return
c
:
IsFaceup
()
and
c
:
GetSummonPlayer
()
~=
tp
and
c
:
IsCanTurnSet
()
end
function
c69599136
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
c69599136
.
filter
,
1
,
nil
,
tp
)
end
Duel
.
SetTargetCard
(
eg
)
end
function
c69599136
.
filter2
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
GetSummonPlayer
()
~=
tp
and
c
:
IsRelateToEffect
(
e
)
local
g
=
eg
:
Filter
(
c69599136
.
filter
,
1
,
nil
,
tp
)
Duel
.
SetTargetCard
(
g
)
end
function
c69599136
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
eg
:
Filter
(
c69599136
.
filter2
,
nil
,
e
,
tp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
Duel
.
ChangePosition
(
g
,
POS_FACEDOWN_DEFENCE
)
~=
0
then
local
og
=
Duel
.
GetOperatedGroup
()
local
tc
=
og
:
GetFirst
()
...
...
c69711728.lua
View file @
a715903e
...
...
@@ -47,8 +47,7 @@ function c69711728.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c69711728
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c69711728
.
filter
(
chkc
,
eg
:
GetFirst
():
GetLevel
(),
e
,
tp
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsLocation
(
LOCATION_SZONE
)
and
eg
:
IsExists
(
c69711728
.
cfilter
,
1
,
nil
,
e
,
tp
)
if
chk
==
0
then
return
eg
:
IsExists
(
c69711728
.
cfilter
,
1
,
nil
,
e
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c69711728
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
eg
:
GetFirst
():
GetLevel
(),
e
,
tp
)
...
...
c7044562.lua
View file @
a715903e
...
...
@@ -15,7 +15,7 @@ function c7044562.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
0
,
LOCATION_DECK
)
end
function
c7044562
.
filter
(
c
,
lp
)
return
c
:
GetAttack
()
+
c
:
GetDefence
()
==
lp
and
c
:
IsAbleToHand
()
return
c
:
GetAttack
()
>
0
and
c
:
GetDefence
()
>
0
and
c
:
GetAttack
()
+
c
:
GetDefence
()
==
lp
and
c
:
IsAbleToHand
()
end
function
c7044562
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_DECK
,
0
)
...
...
c71650854.lua
View file @
a715903e
...
...
@@ -35,7 +35,7 @@ function c71650854.initial_effect(c)
e6
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e6
:
SetRange
(
LOCATION_FZONE
)
e6
:
SetTargetRange
(
1
,
0
)
e6
:
SetTarget
(
c71650854
.
efilter1
)
e6
:
SetTarget
(
c71650854
.
setlimit
)
c
:
RegisterEffect
(
e6
)
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
@@ -43,7 +43,7 @@ function c71650854.initial_effect(c)
e7
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e7
:
SetRange
(
LOCATION_FZONE
)
e7
:
SetTargetRange
(
1
,
0
)
e7
:
SetValue
(
c71650854
.
efilter2
)
e7
:
SetValue
(
c71650854
.
actlimit
)
c
:
RegisterEffect
(
e7
)
end
function
c71650854
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -62,9 +62,9 @@ end
function
c71650854
.
tgovalue
(
e
,
re
,
rp
)
return
rp
~=
1
-
e
:
GetHandlerPlayer
()
end
function
c71650854
.
efilter1
(
e
,
re
,
tp
)
return
re
:
IsType
(
TYPE_FIELD
)
function
c71650854
.
setlimit
(
e
,
c
,
tp
)
return
c
:
IsType
(
TYPE_FIELD
)
end
function
c71650854
.
efilter2
(
e
,
re
,
tp
)
return
re
:
GetHandler
():
Is
Type
(
TYPE_FIELD
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
function
c71650854
.
actlimit
(
e
,
re
,
tp
)
return
re
:
IsActive
Type
(
TYPE_FIELD
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
c72772445.lua
View file @
a715903e
...
...
@@ -40,7 +40,7 @@ function c72772445.actfilter(c,tp)
return
c
and
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xe2
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsControler
(
tp
)
end
function
c72772445
.
aclimit
(
e
,
re
,
tp
)
return
(
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
re
:
IsActiveType
(
TYPE_MONSTER
))
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
return
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
function
c72772445
.
actcon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
...
...
@@ -48,7 +48,7 @@ function c72772445.actcon(e)
end
function
c72772445
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_
ONFIELD
)
and
c
:
GetPreviousSequence
()
==
5
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
return
c
:
IsPreviousLocation
(
LOCATION_
SZONE
)
and
c
:
GetPreviousSequence
()
==
5
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
end
function
c72772445
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0xe2
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
c7922915.lua
View file @
a715903e
...
...
@@ -37,26 +37,18 @@ function c7922915.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
2
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
)
end
function
c7922915
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
ft
<=
0
then
return
end
if
ft
==
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c7922915
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
c7922915
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g1
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g1
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c7922915
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g2
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g2
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c7922915
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c7922915
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g2
:
GetCount
()
>
0
then
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
g2
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c7922915
.
cfilter
(
c
,
e
,
tp
)
...
...
c808969
04
.lua
→
c808969
40
.lua
View file @
a715903e
This diff is collapsed.
Click to expand it.
c96100333.lua
View file @
a715903e
This diff is collapsed.
Click to expand it.
c9989792.lua
View file @
a715903e
...
...
@@ -38,7 +38,7 @@ function c9989792.initial_effect(c)
end
function
c9989792
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_
ONFIELD
)
and
c
:
GetPreviousSequence
()
==
5
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
return
c
:
IsPreviousLocation
(
LOCATION_
SZONE
)
and
c
:
GetPreviousSequence
()
==
5
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
end
function
c9989792
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0xe2
)
and
c
:
IsType
(
TYPE_MONSTER
)
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