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
d9a4afd6
Commit
d9a4afd6
authored
Oct 05, 2018
by
mercury233
Committed by
DailyShana
Oct 05, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix (#1097)
* Update c80402389.lua * fix
parent
2e9a5be7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
49 additions
and
46 deletions
+49
-46
c1801154.lua
c1801154.lua
+8
-7
c53039326.lua
c53039326.lua
+8
-8
c75782277.lua
c75782277.lua
+14
-13
c80402389.lua
c80402389.lua
+8
-8
c94585852.lua
c94585852.lua
+11
-10
No files found.
c1801154.lua
View file @
d9a4afd6
...
@@ -16,13 +16,14 @@ function c1801154.initial_effect(c)
...
@@ -16,13 +16,14 @@ function c1801154.initial_effect(c)
e2
:
SetTarget
(
c1801154
.
sptg
)
e2
:
SetTarget
(
c1801154
.
sptg
)
e2
:
SetOperation
(
c1801154
.
spop
)
e2
:
SetOperation
(
c1801154
.
spop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
if
not
c1801154
.
global_check
then
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
c1801154
.
global_check
=
true
e3
:
SetCode
(
EVENT_TO_GRAVE
)
local
ge1
=
Effect
.
CreateEffect
(
c
)
e3
:
SetRange
(
LOCATION_FZONE
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
ge1
:
SetCode
(
EVENT_TO_GRAVE
)
e3
:
SetOperation
(
c1801154
.
check
)
ge1
:
SetOperation
(
c1801154
.
check
)
c
:
RegisterEffect
(
e3
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
end
function
c1801154
.
check
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c1801154
.
check
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
for
tc
in
aux
.
Next
(
eg
)
do
for
tc
in
aux
.
Next
(
eg
)
do
...
...
c53039326.lua
View file @
d9a4afd6
...
@@ -16,13 +16,6 @@ function c53039326.initial_effect(c)
...
@@ -16,13 +16,6 @@ function c53039326.initial_effect(c)
e2
:
SetOperation
(
c53039326
.
mtop
)
e2
:
SetOperation
(
c53039326
.
mtop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--search
--search
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetCode
(
EVENT_DESTROY
)
e3
:
SetRange
(
LOCATION_FZONE
)
e3
:
SetOperation
(
c53039326
.
check
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e4
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e4
:
SetDescription
(
aux
.
Stringid
(
53039326
,
2
))
e4
:
SetDescription
(
aux
.
Stringid
(
53039326
,
2
))
...
@@ -33,6 +26,14 @@ function c53039326.initial_effect(c)
...
@@ -33,6 +26,14 @@ function c53039326.initial_effect(c)
e4
:
SetTarget
(
c53039326
.
target
)
e4
:
SetTarget
(
c53039326
.
target
)
e4
:
SetOperation
(
c53039326
.
operation
)
e4
:
SetOperation
(
c53039326
.
operation
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
if
not
c53039326
.
global_check
then
c53039326
.
global_check
=
true
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_DESTROY
)
ge1
:
SetOperation
(
c53039326
.
check
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
end
function
c53039326
.
cfilter
(
c
)
function
c53039326
.
cfilter
(
c
)
return
c
:
IsCode
(
36623431
)
and
not
c
:
IsPublic
()
return
c
:
IsCode
(
36623431
)
and
not
c
:
IsPublic
()
...
@@ -60,7 +61,6 @@ function c53039326.mtop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -60,7 +61,6 @@ function c53039326.mtop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c53039326
.
check
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c53039326
.
check
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
Duel
.
GetCurrentPhase
()
~=
PHASE_END
then
return
end
if
Duel
.
GetCurrentPhase
()
~=
PHASE_END
then
return
end
local
tc
=
eg
:
GetFirst
()
local
tc
=
eg
:
GetFirst
()
local
turnp
=
Duel
.
GetTurnPlayer
()
local
turnp
=
Duel
.
GetTurnPlayer
()
...
...
c75782277.lua
View file @
d9a4afd6
...
@@ -6,16 +6,6 @@ function c75782277.initial_effect(c)
...
@@ -6,16 +6,6 @@ function c75782277.initial_effect(c)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--trigger
--trigger
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetOperation
(
c75782277
.
check
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetCategory
(
CATEGORY_DESTROY
)
e4
:
SetCategory
(
CATEGORY_DESTROY
)
e4
:
SetDescription
(
aux
.
Stringid
(
75782277
,
0
))
e4
:
SetDescription
(
aux
.
Stringid
(
75782277
,
0
))
...
@@ -38,6 +28,17 @@ function c75782277.initial_effect(c)
...
@@ -38,6 +28,17 @@ function c75782277.initial_effect(c)
local
e6
=
e5
:
Clone
()
local
e6
=
e5
:
Clone
()
e6
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
e6
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
c
:
RegisterEffect
(
e6
)
c
:
RegisterEffect
(
e6
)
if
not
c75782277
.
global_check
then
c75782277
.
global_check
=
true
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
ge1
:
SetOperation
(
c75782277
.
check
)
Duel
.
RegisterEffect
(
ge1
,
0
)
local
ge2
=
ge1
:
Clone
()
ge2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
Duel
.
RegisterEffect
(
ge2
,
0
)
end
end
end
c75782277
.
card_code_list
=
{
12206212
}
c75782277
.
card_code_list
=
{
12206212
}
function
c75782277
.
check
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c75782277
.
check
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -47,12 +48,12 @@ function c75782277.check(e,tp,eg,ep,ev,re,r,rp)
...
@@ -47,12 +48,12 @@ function c75782277.check(e,tp,eg,ep,ev,re,r,rp)
local
g2
=
Group
.
CreateGroup
()
local
g2
=
Group
.
CreateGroup
()
while
tc
do
while
tc
do
if
tc
:
IsFaceup
()
and
tc
:
IsCode
(
76812113
,
12206212
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsCode
(
76812113
,
12206212
)
then
if
tc
:
IsControler
(
tp
)
then
g1
:
AddCard
(
tc
)
else
g2
:
AddCard
(
tc
)
end
if
tc
:
IsControler
(
0
)
then
g1
:
AddCard
(
tc
)
else
g2
:
AddCard
(
tc
)
end
end
end
tc
=
eg
:
GetNext
()
tc
=
eg
:
GetNext
()
end
end
if
g1
:
GetCount
()
>
0
then
Duel
.
RaiseEvent
(
g1
,
EVENT_CUSTOM
+
75782277
,
re
,
r
,
rp
,
tp
,
0
)
end
if
g1
:
GetCount
()
>
0
then
Duel
.
RaiseEvent
(
g1
,
EVENT_CUSTOM
+
75782277
,
re
,
r
,
rp
,
0
,
0
)
end
if
g2
:
GetCount
()
>
0
then
Duel
.
RaiseEvent
(
g2
,
EVENT_CUSTOM
+
75782277
,
re
,
r
,
rp
,
1
-
tp
,
0
)
end
if
g2
:
GetCount
()
>
0
then
Duel
.
RaiseEvent
(
g2
,
EVENT_CUSTOM
+
75782277
,
re
,
r
,
rp
,
1
,
0
)
end
end
end
function
c75782277
.
filter
(
c
)
function
c75782277
.
filter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
...
...
c80402389.lua
View file @
d9a4afd6
...
@@ -6,13 +6,6 @@ function c80402389.initial_effect(c)
...
@@ -6,13 +6,6 @@ function c80402389.initial_effect(c)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--trigger
--trigger
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetOperation
(
c80402389
.
check
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e3
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e3
:
SetDescription
(
aux
.
Stringid
(
80402389
,
0
))
e3
:
SetDescription
(
aux
.
Stringid
(
80402389
,
0
))
...
@@ -23,9 +16,16 @@ function c80402389.initial_effect(c)
...
@@ -23,9 +16,16 @@ function c80402389.initial_effect(c)
e3
:
SetTarget
(
c80402389
.
target
)
e3
:
SetTarget
(
c80402389
.
target
)
e3
:
SetOperation
(
c80402389
.
operation
)
e3
:
SetOperation
(
c80402389
.
operation
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
if
not
c80402389
.
global_check
then
c80402389
.
global_check
=
true
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_TO_GRAVE
)
ge1
:
SetOperation
(
c80402389
.
check
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
end
function
c80402389
.
check
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c80402389
.
check
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
eg
:
GetFirst
()
local
tc
=
eg
:
GetFirst
()
while
tc
do
while
tc
do
if
tc
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
tc
:
IsReason
(
REASON_DESTROY
)
if
tc
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
tc
:
IsReason
(
REASON_DESTROY
)
...
...
c94585852.lua
View file @
d9a4afd6
...
@@ -15,13 +15,6 @@ function c94585852.initial_effect(c)
...
@@ -15,13 +15,6 @@ function c94585852.initial_effect(c)
e2
:
SetValue
(
c94585852
.
costchange
)
e2
:
SetValue
(
c94585852
.
costchange
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--search
--search
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetRange
(
LOCATION_FZONE
)
e3
:
SetCode
(
EVENT_TO_GRAVE
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetOperation
(
c94585852
.
regop
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
94585852
,
0
))
e4
:
SetDescription
(
aux
.
Stringid
(
94585852
,
0
))
e4
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e4
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
...
@@ -32,6 +25,14 @@ function c94585852.initial_effect(c)
...
@@ -32,6 +25,14 @@ function c94585852.initial_effect(c)
e4
:
SetTarget
(
c94585852
.
target
)
e4
:
SetTarget
(
c94585852
.
target
)
e4
:
SetOperation
(
c94585852
.
operation
)
e4
:
SetOperation
(
c94585852
.
operation
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
if
not
c94585852
.
global_check
then
c94585852
.
global_check
=
true
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_TO_GRAVE
)
ge1
:
SetOperation
(
c94585852
.
regop
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
end
function
c94585852
.
costchange
(
e
,
re
,
rp
,
val
)
function
c94585852
.
costchange
(
e
,
re
,
rp
,
val
)
if
Duel
.
GetCurrentPhase
()
==
PHASE_STANDBY
and
re
and
re
:
GetHandler
():
IsSetCard
(
0x45
)
and
re
:
GetHandler
():
IsType
(
TYPE_MONSTER
)
then
if
Duel
.
GetCurrentPhase
()
==
PHASE_STANDBY
and
re
and
re
:
GetHandler
():
IsSetCard
(
0x45
)
and
re
:
GetHandler
():
IsType
(
TYPE_MONSTER
)
then
...
@@ -49,7 +50,7 @@ function c94585852.regop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -49,7 +50,7 @@ function c94585852.regop(e,tp,eg,ep,ev,re,r,rp)
while
tc
do
while
tc
do
if
tc
:
IsReason
(
REASON_DESTROY
)
and
not
tc
:
IsReason
(
REASON_BATTLE
)
and
tc
:
IsSetCard
(
0x45
)
and
tc
:
GetLevel
()
>
0
then
if
tc
:
IsReason
(
REASON_DESTROY
)
and
not
tc
:
IsReason
(
REASON_BATTLE
)
and
tc
:
IsSetCard
(
0x45
)
and
tc
:
GetLevel
()
>
0
then
local
tlv
=
tc
:
GetLevel
()
local
tlv
=
tc
:
GetLevel
()
if
tc
:
IsControler
(
tp
)
then
if
tc
:
IsControler
(
0
)
then
if
tlv
>
lv1
then
lv1
=
tlv
end
if
tlv
>
lv1
then
lv1
=
tlv
end
g1
:
AddCard
(
tc
)
g1
:
AddCard
(
tc
)
else
else
...
@@ -59,8 +60,8 @@ function c94585852.regop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -59,8 +60,8 @@ function c94585852.regop(e,tp,eg,ep,ev,re,r,rp)
end
end
tc
=
eg
:
GetNext
()
tc
=
eg
:
GetNext
()
end
end
if
g1
:
GetCount
()
>
0
then
Duel
.
RaiseEvent
(
g1
,
EVENT_CUSTOM
+
94585852
,
re
,
r
,
rp
,
tp
,
lv1
)
end
if
g1
:
GetCount
()
>
0
then
Duel
.
RaiseEvent
(
g1
,
EVENT_CUSTOM
+
94585852
,
re
,
r
,
rp
,
0
,
lv1
)
end
if
g2
:
GetCount
()
>
0
then
Duel
.
RaiseEvent
(
g2
,
EVENT_CUSTOM
+
94585852
,
re
,
r
,
rp
,
1
-
tp
,
lv2
)
end
if
g2
:
GetCount
()
>
0
then
Duel
.
RaiseEvent
(
g2
,
EVENT_CUSTOM
+
94585852
,
re
,
r
,
rp
,
1
,
lv2
)
end
end
end
function
c94585852
.
filter
(
c
,
lv
)
function
c94585852
.
filter
(
c
,
lv
)
return
c
:
GetLevel
()
<
lv
and
c
:
IsSetCard
(
0x45
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
c
:
GetLevel
()
<
lv
and
c
:
IsSetCard
(
0x45
)
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