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
1087fdd5
Commit
1087fdd5
authored
Sep 27, 2021
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
5baa5d7d
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
24 additions
and
24 deletions
+24
-24
script/c100200202.lua
script/c100200202.lua
+3
-3
script/c100200203.lua
script/c100200203.lua
+1
-1
script/c100281063.lua
script/c100281063.lua
+1
-1
script/c100283001.lua
script/c100283001.lua
+1
-1
script/c100284001.lua
script/c100284001.lua
+1
-1
script/c100284002.lua
script/c100284002.lua
+2
-2
script/c100284003.lua
script/c100284003.lua
+6
-6
script/c101107008.lua
script/c101107008.lua
+1
-1
script/c101107012.lua
script/c101107012.lua
+1
-1
script/c101107048.lua
script/c101107048.lua
+1
-1
script/c101107052.lua
script/c101107052.lua
+1
-1
script/c101107053.lua
script/c101107053.lua
+2
-2
script/c101107055.lua
script/c101107055.lua
+1
-1
script/c101107066.lua
script/c101107066.lua
+2
-2
No files found.
script/c100200202.lua
View file @
1087fdd5
...
...
@@ -7,14 +7,13 @@ function c100200202.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTarget
(
c100200202
.
atktg
)
e1
:
SetOperation
(
c100200202
.
atkop
)
c
:
RegisterEffect
(
e1
)
--DEF DOWN
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
100200202
,
1
))
e2
:
SetCategory
(
CATEGORY_DEFCHANGE
)
e2
:
SetCategory
(
CATEGORY_DE
STROY
+
CATEGORY_DE
FCHANGE
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
...
...
@@ -63,13 +62,14 @@ function c100200202.desop(e,tp,eg,ep,ev,re,r,rp)
end
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
local
atk
=
c
:
GetAttack
()
local
def
=
tc
:
GetDefense
()
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
e2
:
SetValue
(
-
atk
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e2
)
if
tc
:
IsDefense
(
0
)
then
if
def
~=
0
and
tc
:
IsDefense
(
0
)
then
Duel
.
BreakEffect
()
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
...
...
script/c100200203.lua
View file @
1087fdd5
...
...
@@ -7,7 +7,7 @@ function c100200203.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCode
(
EVENT_TO_GRAVE
)
e1
:
SetCountLimit
(
1
,
100200203
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCountLimit
(
1
,
100200203
)
e1
:
SetCondition
(
c100200203
.
tkcon
)
e1
:
SetTarget
(
c100200203
.
tktg
)
e1
:
SetOperation
(
c100200203
.
tkop
)
...
...
script/c100281063.lua
View file @
1087fdd5
...
...
@@ -76,7 +76,7 @@ function c100281063.atkcon(e,tp,eg,ep,ev,re,r,rp)
end
function
c100281063
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
,
at
=
Duel
.
GetBattleMonster
(
tp
)
if
not
a
:
IsRelateToBattle
()
or
a
:
IsFacedown
()
or
not
at
:
IsRelateToBattle
()
or
at
:
IsFacedown
()
then
return
end
if
not
a
or
not
d
or
not
a
:
IsRelateToBattle
()
or
a
:
IsFacedown
()
or
not
at
:
IsRelateToBattle
()
or
at
:
IsFacedown
()
then
return
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
...
...
script/c100283001.lua
View file @
1087fdd5
...
...
@@ -35,7 +35,7 @@ function c100283001.spfilter(c,e,tp)
return
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c100283001
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c100283001
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
...
...
script/c100284001.lua
View file @
1087fdd5
...
...
@@ -2,7 +2,7 @@
--
--Script by Trishula9
function
c100284001
.
initial_effect
(
c
)
--activate
--activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
...
...
script/c100284002.lua
View file @
1087fdd5
...
...
@@ -4,12 +4,12 @@
function
c100284002
.
initial_effect
(
c
)
c
:
SetUniqueOnField
(
1
,
0
,
100284002
)
c
:
EnableCounterPermit
(
0x15f
)
--activate
--activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
c
:
RegisterEffect
(
e1
)
--add counter
--add counter
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_COUNTER
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
...
...
script/c100284003.lua
View file @
1087fdd5
...
...
@@ -2,7 +2,7 @@
--
--Script by Trishula9
function
c100284003
.
initial_effect
(
c
)
--activate
--activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
...
...
@@ -33,7 +33,7 @@ function c100284003.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
ft
=
0
if
e
:
GetHandler
():
IsLocation
(
LOCATION_HAND
)
then
ft
=
1
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c100284003
.
filter
(
chkc
,
tp
,
ft
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
ft
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
ft
and
Duel
.
IsExistingTarget
(
c100284003
.
filter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
,
tp
,
ft
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c100284003
.
filter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
tp
,
ft
)
...
...
@@ -46,11 +46,11 @@ function c100284003.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c100284003
.
costfilter
(
c
)
return
c
:
IsCode
(
83764718
)
and
c
:
IsAbleToGraveAsCost
()
return
c
:
IsCode
(
83764718
)
and
c
:
IsAbleToGraveAsCost
()
and
(
c
:
IsLocation
(
LOCATION_HAND
)
or
(
c
:
IsLocation
(
LOCATION_SZONE
)
and
c
:
IsFacedown
()))
end
function
c100284003
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
and
Duel
.
IsExistingMatchingCard
(
c100284003
.
costfilter
,
tp
,
LOCATION_HAND
+
LOCATION_SZONE
,
0
,
1
,
nil
)
end
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
...
...
@@ -61,7 +61,7 @@ function c100284003.spfilter(c,e,tp)
return
c
:
IsCode
(
10000000
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
function
c100284003
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c100284003
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
end
...
...
@@ -69,7 +69,7 @@ function c100284003.spop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
c100284003
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
):
GetFirst
()
if
tc
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
>
0
if
tc
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
>
0
and
Duel
.
GetTurnPlayer
()
==
1
-
tp
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
script/c101107008.lua
View file @
1087fdd5
...
...
@@ -70,7 +70,7 @@ function c101107008.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
ec
=
c
:
GetEquipTarget
()
if
chk
==
0
then
return
ec
and
ec
:
IsDefenseAbove
(
0
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingTarget
(
c101107008
.
spfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
ec
:
GetDefense
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c101107008
.
spfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
ec
:
GetDefense
())
...
...
script/c101107012.lua
View file @
1087fdd5
...
...
@@ -33,7 +33,7 @@ function c101107012.spcon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
IsExistingMatchingCard
(
c101107012
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c101107012
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
...
...
script/c101107048.lua
View file @
1087fdd5
...
...
@@ -23,7 +23,7 @@ function c101107048.initial_effect(c)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
101107048
+
100
)
e2
:
SetCost
(
c101107048
.
ctcost
)
e2
:
SetTarget
(
c101107048
.
cttg
)
e2
:
SetTarget
(
c101107048
.
cttg
)
e2
:
SetOperation
(
c101107048
.
ctop
)
c
:
RegisterEffect
(
e2
)
end
...
...
script/c101107052.lua
View file @
1087fdd5
...
...
@@ -44,7 +44,7 @@ function c101107052.adfilter(c)
end
function
c101107052
.
adtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c101107052
.
adfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c101107052
.
adfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c101107052
.
adfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
GetMatchingGroupCount
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c101107052
.
adfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
...
...
script/c101107053.lua
View file @
1087fdd5
...
...
@@ -2,7 +2,7 @@
--
--Script by Trishula9
function
c101107053
.
initial_effect
(
c
)
--activate
--activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
...
...
@@ -14,7 +14,7 @@ function c101107053.initial_effect(c)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetOperation
(
c101107053
.
disop
)
c
:
RegisterEffect
(
e2
)
--destroy
--destroy
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_DESTROY
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
...
...
script/c101107055.lua
View file @
1087fdd5
...
...
@@ -28,7 +28,7 @@ function c101107055.spfilter(c,e,tp)
return
c
:
IsSetCard
(
0x42
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c101107055
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c101107055
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
...
...
script/c101107066.lua
View file @
1087fdd5
...
...
@@ -2,7 +2,7 @@
--
--Script by Trishula9
function
c101107066
.
initial_effect
(
c
)
--activate
--activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
...
...
@@ -73,7 +73,7 @@ function c101107066.disop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c101107066
.
filter
(
c
,
tp
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsPreviousControler
(
tp
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsPreviousControler
(
tp
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
not
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
GetReasonPlayer
()
==
1
-
tp
end
function
c101107066
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
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