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
3bb78bde
Commit
3bb78bde
authored
Jun 13, 2017
by
nekrozar
Committed by
mercury233
Jun 12, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update Rank-Up-Magic - The Seventh One and so on (#502)
parent
9c402738
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
26 deletions
+9
-26
c2295831.lua
c2295831.lua
+2
-2
c27911549.lua
c27911549.lua
+1
-5
c57270476.lua
c57270476.lua
+2
-5
c57734012.lua
c57734012.lua
+2
-3
c63571750.lua
c63571750.lua
+1
-5
c71703785.lua
c71703785.lua
+1
-6
No files found.
c2295831.lua
View file @
3bb78bde
...
...
@@ -3,7 +3,7 @@ function c2295831.initial_effect(c)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_
TO_HAND
)
e1
:
SetCode
(
EVENT_
DRAW
)
e1
:
SetCondition
(
c2295831
.
regcon
)
e1
:
SetOperation
(
c2295831
.
regop
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -20,7 +20,7 @@ end
function
c2295831
.
regcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_ONFIELD
,
0
)
==
0
and
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
>=
3
and
Duel
.
GetCurrentPhase
()
==
PHASE_DRAW
and
c
:
IsReason
(
REASON_
DRAW
)
and
c
:
IsReason
(
REASON_
RULE
)
and
Duel
.
GetCurrentPhase
()
==
PHASE_DRAW
and
c
:
IsReason
(
REASON_RULE
)
end
function
c2295831
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
c27911549.lua
View file @
3bb78bde
...
...
@@ -25,16 +25,12 @@ function c27911549.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetDescription
(
aux
.
Stringid
(
27911549
,
1
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetCode
(
EVENT_TO_HAND
)
e1
:
SetCondition
(
c27911549
.
spcon
)
e1
:
SetCode
(
EVENT_DRAW
)
e1
:
SetTarget
(
c27911549
.
sptg
)
e1
:
SetOperation
(
c27911549
.
spop
)
e1
:
SetReset
(
RESET_EVENT
+
0x1de0000
)
c
:
RegisterEffect
(
e1
)
end
function
c27911549
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsReason
(
REASON_DRAW
)
end
function
c27911549
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
...
...
c57270476.lua
View file @
3bb78bde
...
...
@@ -22,15 +22,12 @@ function c57270476.activate(e,tp,eg,ep,ev,re,r,rp)
tc
:
ReverseInDeck
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EVENT_TO_HAND
)
e1
:
SetCode
(
EVENT_DRAW
)
e1
:
SetOperation
(
c57270476
.
tgop
)
e1
:
SetReset
(
RESET_EVENT
+
0x1de0000
)
tc
:
RegisterEffect
(
e1
)
end
end
function
c57270476
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsReason
(
REASON_DRAW
)
then
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_EFFECT
)
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_EFFECT
)
end
c57734012.lua
View file @
3bb78bde
...
...
@@ -3,7 +3,7 @@ function c57734012.initial_effect(c)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_
TO_HAND
)
e1
:
SetCode
(
EVENT_
DRAW
)
e1
:
SetCondition
(
c57734012
.
regcon
)
e1
:
SetOperation
(
c57734012
.
regop
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -19,8 +19,7 @@ function c57734012.initial_effect(c)
end
function
c57734012
.
regcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
Duel
.
GetFlagEffect
(
tp
,
57734012
)
==
0
and
Duel
.
GetCurrentPhase
()
==
PHASE_DRAW
and
c
:
IsReason
(
REASON_DRAW
)
and
c
:
IsReason
(
REASON_RULE
)
return
Duel
.
GetFlagEffect
(
tp
,
57734012
)
==
0
and
Duel
.
GetCurrentPhase
()
==
PHASE_DRAW
and
c
:
IsReason
(
REASON_RULE
)
end
function
c57734012
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
c63571750.lua
View file @
3bb78bde
...
...
@@ -25,16 +25,12 @@ function c63571750.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetDescription
(
aux
.
Stringid
(
63571750
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetCode
(
EVENT_TO_HAND
)
e1
:
SetCondition
(
c63571750
.
thcon
)
e1
:
SetCode
(
EVENT_DRAW
)
e1
:
SetTarget
(
c63571750
.
thtg
)
e1
:
SetOperation
(
c63571750
.
thop
)
e1
:
SetReset
(
RESET_EVENT
+
0x1de0000
)
c
:
RegisterEffect
(
e1
)
end
function
c63571750
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsReason
(
REASON_DRAW
)
end
function
c63571750
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
...
...
c71703785.lua
View file @
3bb78bde
...
...
@@ -4,11 +4,9 @@ function c71703785.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
71703785
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_
FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_
SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetCode
(
EVENT_DRAW
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCondition
(
c71703785
.
spcon1
)
e1
:
SetCost
(
c71703785
.
spcost
)
e1
:
SetTarget
(
c71703785
.
sptg1
)
e1
:
SetOperation
(
c71703785
.
spop1
)
...
...
@@ -34,9 +32,6 @@ function c71703785.initial_effect(c)
e3
:
SetOperation
(
c71703785
.
spop2
)
c
:
RegisterEffect
(
e3
)
end
function
c71703785
.
spcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsContains
(
e
:
GetHandler
())
end
function
c71703785
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsPublic
()
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