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
1
Merge Requests
1
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
nanahira
ygopro
Commits
dda128da
Commit
dda128da
authored
Aug 02, 2015
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
398e555d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
38 additions
and
46 deletions
+38
-46
script/c21105106.lua
script/c21105106.lua
+4
-4
script/c32542011.lua
script/c32542011.lua
+11
-12
script/c36415522.lua
script/c36415522.lua
+3
-2
script/c39823987.lua
script/c39823987.lua
+15
-27
script/c74416026.lua
script/c74416026.lua
+1
-1
script/c811734.lua
script/c811734.lua
+4
-0
No files found.
script/c21105106.lua
View file @
dda128da
...
@@ -90,12 +90,12 @@ function c21105106.rmop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -90,12 +90,12 @@ function c21105106.rmop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
e
:
GetHandler
())
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
e
:
GetHandler
())
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
function
c21105106
.
filter
(
c
,
fc
,
tp
)
function
c21105106
.
filter
(
c
,
tp
)
return
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
GetRitualLevel
(
fc
)
==
c
:
GetLevel
()
return
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
end
end
function
c21105106
.
ritual_custom_condition
(
c
,
mg
)
function
c21105106
.
ritual_custom_condition
(
c
,
mg
)
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
local
g
=
mg
:
Filter
(
c21105106
.
filter
,
c
,
c
,
tp
)
local
g
=
mg
:
Filter
(
c21105106
.
filter
,
c
,
tp
)
return
g
:
IsExists
(
c21105106
.
ritfilter1
,
1
,
nil
,
c
:
GetLevel
(),
g
)
return
g
:
IsExists
(
c21105106
.
ritfilter1
,
1
,
nil
,
c
:
GetLevel
(),
g
)
end
end
function
c21105106
.
ritfilter1
(
c
,
lv
,
mg
)
function
c21105106
.
ritfilter1
(
c
,
lv
,
mg
)
...
@@ -119,7 +119,7 @@ end
...
@@ -119,7 +119,7 @@ end
function
c21105106
.
ritual_custom_operation
(
c
,
mg
)
function
c21105106
.
ritual_custom_operation
(
c
,
mg
)
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
local
lv
=
c
:
GetLevel
()
local
lv
=
c
:
GetLevel
()
local
g
=
mg
:
Filter
(
c21105106
.
filter
,
c
,
c
,
tp
)
local
g
=
mg
:
Filter
(
c21105106
.
filter
,
c
,
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g1
=
g
:
FilterSelect
(
tp
,
c21105106
.
ritfilter1
,
1
,
1
,
nil
,
lv
,
g
)
local
g1
=
g
:
FilterSelect
(
tp
,
c21105106
.
ritfilter1
,
1
,
1
,
nil
,
lv
,
g
)
local
tc1
=
g1
:
GetFirst
()
local
tc1
=
g1
:
GetFirst
()
...
...
script/c32542011.lua
View file @
dda128da
...
@@ -29,22 +29,21 @@ function c32542011.desfilter(c)
...
@@ -29,22 +29,21 @@ function c32542011.desfilter(c)
return
c
:
IsDestructable
()
return
c
:
IsDestructable
()
end
end
function
c32542011
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c32542011
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
(
Duel
.
IsExistingMatchingCard
(
c32542011
.
cfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
ATTRIBUTE_FIRE
)
local
b1
=
Duel
.
IsExistingMatchingCard
(
c32542011
.
cfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
ATTRIBUTE_FIRE
)
and
Duel
.
IsExistingMatchingCard
(
c32542011
.
desfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
))
and
Duel
.
IsExistingMatchingCard
(
c32542011
.
desfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
or
local
b2
=
Duel
.
IsExistingMatchingCard
(
c32542011
.
cfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
ATTRIBUTE_WATER
)
(
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
ft
>
0
and
Duel
.
IsExistingMatchingCard
(
c32542011
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
Duel
.
GetTurnCount
(),
e
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
c32542011
.
cfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
ATTRIBUTE_WATER
)
if
chk
==
0
then
return
b1
or
b2
end
and
Duel
.
IsExistingMatchingCard
(
c32542011
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
Duel
.
GetTurnCount
(),
e
,
tp
))
if
b1
then
end
if
Duel
.
IsExistingMatchingCard
(
c32542011
.
cfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
ATTRIBUTE_FIRE
)
then
local
g
=
Duel
.
GetMatchingGroup
(
c32542011
.
desfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c32542011
.
desfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
end
if
Duel
.
IsExistingMatchingCard
(
c32542011
.
cfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
ATTRIBUTE_WATER
)
then
if
b2
then
local
g
=
Duel
.
GetMatchingGroup
(
c32542011
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
Duel
.
GetTurnCount
(),
e
,
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
c32542011
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
Duel
.
GetTurnCount
(),
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
ft
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
nil
,
1
,
0
,
LOCATION_MZONE
)
local
dg
=
Duel
.
GetMatchingGroup
(
c32542011
.
desfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
dg
,
1
,
0
,
0
)
end
end
end
end
function
c32542011
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c32542011
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c36415522.lua
View file @
dda128da
...
@@ -95,9 +95,10 @@ function c36415522.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -95,9 +95,10 @@ function c36415522.atkop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
e
:
GetLabelObject
()
local
tc
=
e
:
GetLabelObject
()
if
tc
:
IsRelateToBattle
()
and
tc
:
IsFaceup
()
then
if
tc
:
IsRelateToBattle
()
and
tc
:
IsFaceup
()
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EFFECT_AVOID_BATTLE_DAMAGE
)
e1
:
SetCode
(
EFFECT_AVOID_BATTLE_DAMAGE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
1
)
e1
:
SetCondition
(
c36415522
.
damcon
)
e1
:
SetCondition
(
c36415522
.
damcon
)
e1
:
SetReset
(
RESET_PHASE
+
RESET_DAMAGE_CAL
)
e1
:
SetReset
(
RESET_PHASE
+
RESET_DAMAGE_CAL
)
...
...
script/c39823987.lua
View file @
dda128da
...
@@ -46,48 +46,36 @@ function c39823987.regcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -46,48 +46,36 @@ function c39823987.regcon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c39823987
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c39823987
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetDescription
(
aux
.
Stringid
(
39823987
,
2
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
)
e1
:
Set
Label
(
Duel
.
GetTurnCount
()
)
e1
:
Set
Condition
(
c39823987
.
spcon
)
e1
:
Set
Condition
(
c39823987
.
spcon1
)
e1
:
Set
Target
(
c39823987
.
sptg
)
e1
:
SetOperation
(
c39823987
.
spop
1
)
e1
:
SetOperation
(
c39823987
.
spop
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
2
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
2
)
e1
:
SetLabel
(
Duel
.
GetTurnCount
())
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c39823987
.
spcon
1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c39823987
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnCount
()
~=
e
:
GetLabel
()
return
Duel
.
GetTurnCount
()
~=
e
:
GetLabel
()
end
end
function
c39823987
.
spop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c39823987
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
39823987
,
1
))
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
39823987
,
2
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e1
:
SetCountLimit
(
1
)
e1
:
SetTarget
(
c39823987
.
sptg2
)
e1
:
SetOperation
(
c39823987
.
spop2
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c39823987
.
spfilter
(
c
,
e
,
tp
)
function
c39823987
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
66818682
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsCode
(
66818682
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c39823987
.
sptg
2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c39823987
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c39823987
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c39823987
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c39823987
.
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
,
c39823987
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c39823987
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
g
:
GetCount
()
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
end
function
c39823987
.
spop
2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c39823987
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
end
script/c74416026.lua
View file @
dda128da
...
@@ -39,7 +39,7 @@ function c74416026.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -39,7 +39,7 @@ function c74416026.activate(e,tp,eg,ep,ev,re,r,rp)
if
tg
:
GetCount
()
>
0
and
sg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
74416026
,
0
))
then
if
tg
:
GetCount
()
>
0
and
sg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
74416026
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
tc
=
tg
:
Select
(
tp
,
1
,
1
,
nil
)
local
tc
=
tg
:
Select
(
tp
,
1
,
1
,
nil
)
:
GetFirst
()
if
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
==
0
or
not
tc
:
IsLocation
(
LOCATION_GRAVE
)
then
return
end
if
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
==
0
or
not
tc
:
IsLocation
(
LOCATION_GRAVE
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sc
=
sg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
local
sc
=
sg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
...
...
script/c811734.lua
View file @
dda128da
...
@@ -4,10 +4,14 @@ function c811734.initial_effect(c)
...
@@ -4,10 +4,14 @@ function c811734.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e1
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e1
:
SetCondition
(
c811734
.
condition
)
e1
:
SetTarget
(
c811734
.
target
)
e1
:
SetTarget
(
c811734
.
target
)
e1
:
SetOperation
(
c811734
.
activate
)
e1
:
SetOperation
(
c811734
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c811734
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
end
function
c811734
.
atkfilter
(
c
)
function
c811734
.
atkfilter
(
c
)
return
c
:
IsSetCard
(
0x10af
)
and
c
:
GetAttack
()
>
0
and
c
:
IsAbleToRemove
()
return
c
:
IsSetCard
(
0x10af
)
and
c
:
GetAttack
()
>
0
and
c
:
IsAbleToRemove
()
end
end
...
...
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