Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-pre-data
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
MyCard
ygopro-pre-data
Commits
97f9443d
Commit
97f9443d
authored
Apr 13, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
d14f8557
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
36 additions
and
24 deletions
+36
-24
expansions/pre-release.cdb
expansions/pre-release.cdb
+0
-0
script/c101009006.lua
script/c101009006.lua
+6
-6
script/c101009011.lua
script/c101009011.lua
+8
-8
script/c101009030.lua
script/c101009030.lua
+1
-0
script/c101009032.lua
script/c101009032.lua
+1
-1
script/c101009036.lua
script/c101009036.lua
+2
-1
script/c101009054.lua
script/c101009054.lua
+1
-0
script/c101009056.lua
script/c101009056.lua
+1
-1
script/c101009060.lua
script/c101009060.lua
+9
-1
script/c101009061.lua
script/c101009061.lua
+1
-1
script/c101009066.lua
script/c101009066.lua
+1
-0
script/c101009076.lua
script/c101009076.lua
+1
-1
script/c101009080.lua
script/c101009080.lua
+4
-4
No files found.
expansions/pre-release.cdb
View file @
97f9443d
No preview for this file type
script/c101009006.lua
View file @
97f9443d
...
...
@@ -57,12 +57,12 @@ function c101009006.atkop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_DAMAGE
)
a
:
RegisterEffect
(
e1
)
local
e
1
=
Effect
.
CreateEffect
(
c
)
e
1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e
1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e
1
:
SetValue
(
math.ceil
(
d
:
GetBaseAttack
()
/
2
))
e
1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_DAMAGE
)
d
:
RegisterEffect
(
e
1
)
local
e
2
=
Effect
.
CreateEffect
(
c
)
e
2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e
2
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e
2
:
SetValue
(
math.ceil
(
d
:
GetBaseAttack
()
/
2
))
e
2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_DAMAGE
)
d
:
RegisterEffect
(
e
2
)
end
end
function
c101009006
.
regcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c101009011.lua
View file @
97f9443d
...
...
@@ -105,15 +105,15 @@ function c101009011.operation(e,tp,eg,ep,ev,re,r,rp)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_CHANGE_RSCALE
)
tc
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetTargetRange
(
1
,
0
)
e3
:
SetTarget
(
c101009011
.
splimit
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e3
,
tp
)
end
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetTargetRange
(
1
,
0
)
e3
:
SetTarget
(
c101009011
.
splimit
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e3
,
tp
)
end
function
c101009011
.
splimit
(
e
,
c
)
return
not
c
:
IsSetCard
(
0xb3
)
...
...
script/c101009030.lua
View file @
97f9443d
...
...
@@ -40,6 +40,7 @@ function c101009030.spop(e,tp,eg,ep,ev,re,r,rp)
and
g
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
101009030
,
1
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
BreakEffect
()
Duel
.
HintSelection
(
sg
)
Duel
.
SendtoDeck
(
sg
,
nil
,
0
,
REASON_EFFECT
)
end
...
...
script/c101009032.lua
View file @
97f9443d
...
...
@@ -22,7 +22,7 @@ function c101009032.initial_effect(c)
end
function
c101009032
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsSummonType
(
SUMMON_TYPE_ADVANCE
)
and
c
:
GetMaterial
()
>
0
return
c
:
IsSummonType
(
SUMMON_TYPE_ADVANCE
)
and
c
:
GetMaterial
Count
()
>
0
end
function
c101009032
.
desfilter
(
c
,
atk
)
return
c
:
IsFaceup
()
and
c
:
IsAttackBelow
(
atk
)
...
...
script/c101009036.lua
View file @
97f9443d
...
...
@@ -21,10 +21,11 @@ function c101009036.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
101009036
,
0
))
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetType
(
EFFECT_TYPE_
IGNITION
)
e2
:
SetType
(
EFFECT_TYPE_
FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
101009036
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e2
:
SetCost
(
c101009036
.
thcost
)
e2
:
SetTarget
(
c101009036
.
thtg
)
e2
:
SetOperation
(
c101009036
.
thop
)
...
...
script/c101009054.lua
View file @
97f9443d
...
...
@@ -7,6 +7,7 @@ function c101009054.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
101009054
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetTarget
(
c101009054
.
target
)
e1
:
SetOperation
(
c101009054
.
activate
)
c
:
RegisterEffect
(
e1
)
...
...
script/c101009056.lua
View file @
97f9443d
...
...
@@ -20,7 +20,7 @@ function c101009056.spcon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
IsExistingMatchingCard
(
c101009056
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c101009056
.
tfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x31
)
and
c
:
Is
Type
(
TYPE_MONSTER
)
and
c
:
Is
CanBeSpecialSummoned
(
e
,
0x8
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x31
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0x8
,
tp
,
false
,
false
)
and
not
Duel
.
IsExistingMatchingCard
(
c101009056
.
bfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
c
)
end
function
c101009056
.
bfilter
(
c
,
tc
)
...
...
script/c101009060.lua
View file @
97f9443d
...
...
@@ -16,6 +16,9 @@ function c101009060.initial_effect(c)
e2
:
SetTarget
(
c101009060
.
atktg
)
e2
:
SetValue
(
300
)
c
:
RegisterEffect
(
e2
)
local
e5
=
e2
:
Clone
()
e5
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
c
:
RegisterEffect
(
e5
)
--decrease tribute
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
101009060
,
0
))
...
...
@@ -32,6 +35,7 @@ function c101009060.initial_effect(c)
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetRange
(
LOCATION_FZONE
)
e4
:
SetCountLimit
(
1
,
101009160
)
e4
:
SetCondition
(
c101009060
.
sumcon
)
e4
:
SetTarget
(
c101009060
.
sumtg
)
e4
:
SetOperation
(
c101009060
.
sumop
)
c
:
RegisterEffect
(
e4
)
...
...
@@ -50,7 +54,9 @@ function c101009060.trcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
ShuffleHand
(
tp
)
end
function
c101009060
.
trop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_DECREASE_TRIBUTE
)
e1
:
SetTargetRange
(
LOCATION_HAND
,
0
)
...
...
@@ -73,6 +79,8 @@ function c101009060.sumtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SUMMON
,
nil
,
1
,
0
,
0
)
end
function
c101009060
.
sumop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101009060
.
sumfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
...
...
script/c101009061.lua
View file @
97f9443d
...
...
@@ -45,7 +45,7 @@ function c101009061.activate(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetMatchingGroup
(
c101009061
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
c101009061
.
fselect
,
false
,
2
,
2
)
if
sg
:
GetCount
()
==
2
then
if
sg
and
sg
:
GetCount
()
==
2
then
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
end
...
...
script/c101009066.lua
View file @
97f9443d
...
...
@@ -55,6 +55,7 @@ function c101009066.activate(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
c101009066
.
spfilter
,
tp
,
loc
,
0
,
1
,
1
,
nil
,
e
,
tp
,
rg
)
if
tg
:
GetCount
()
>
0
then
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
...
...
script/c101009076.lua
View file @
97f9443d
...
...
@@ -20,7 +20,7 @@ end
function
c101009076
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c101009076
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c101009076
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
2
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
RTOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
TODECK
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c101009076
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
2
,
2
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
2
,
0
,
0
)
end
...
...
script/c101009080.lua
View file @
97f9443d
...
...
@@ -41,10 +41,10 @@ function c101009080.condition(e,tp,eg,ep,ev,re,r,rp)
return
ev
==
PLAYER_ALL
end
function
c101009080
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
Duel
.
IsPlayerCanDraw
(
1
-
tp
,
1
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
PLAYER_ALL
,
1
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
2
)
and
Duel
.
IsPlayerCanDraw
(
1
-
tp
,
2
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
PLAYER_ALL
,
2
)
end
function
c101009080
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
Duel
.
Draw
(
1
-
tp
,
1
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
2
,
REASON_EFFECT
)
Duel
.
Draw
(
1
-
tp
,
2
,
REASON_EFFECT
)
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