Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
Ai
ygopro-222DIY-cards
Commits
0ac704d3
Commit
0ac704d3
authored
Jul 20, 2019
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes
parent
d46a0759
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
40 additions
and
23 deletions
+40
-23
expansions/script/c11200004.lua
expansions/script/c11200004.lua
+4
-4
expansions/script/c11200103.lua
expansions/script/c11200103.lua
+1
-1
expansions/script/c33310008.lua
expansions/script/c33310008.lua
+1
-1
expansions/script/c65020025.lua
expansions/script/c65020025.lua
+2
-2
expansions/script/c81041006.lua
expansions/script/c81041006.lua
+2
-2
expansions/script/c9980193.lua
expansions/script/c9980193.lua
+2
-3
expansions/script/c9980573.lua
expansions/script/c9980573.lua
+2
-2
expansions/script/c9980590.lua
expansions/script/c9980590.lua
+1
-2
expansions/script/c9980599.lua
expansions/script/c9980599.lua
+1
-0
expansions/script/c9980614.lua
expansions/script/c9980614.lua
+1
-1
expansions/script/c9980717.lua
expansions/script/c9980717.lua
+23
-5
No files found.
expansions/script/c11200004.lua
View file @
0ac704d3
...
...
@@ -184,15 +184,15 @@ function c11200004.tdop(e,tp,eg,ep,ev,re,r,rp)
local
tg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
sg
=
tg
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
sg
:
GetCount
()
==
tg
:
GetCount
()
and
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
sg
:
AddCard
(
e
:
GetHandler
())
Duel
.
SendtoDeck
(
sg
,
nil
,
2
,
REASON_EFFECT
+
REASON_RETURN
)
end
end
function
c11200004
.
retg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
+
LOCATION_GRAVE
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
nil
,
tp
,
LOCATION_REMOVED
+
LOCATION_GRAVE
,
LOCATION_REMOVED
+
LOCATION_GRAVE
,
1
,
e
:
GetHandler
())
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
nil
,
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
1
,
e
:
GetHandler
())
and
e
:
GetHandler
():
IsAbleToRemove
()
end
local
g
=
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
LOCATION_REMOVED
+
LOCATION_GRAVE
,
LOCATION_REMOVED
+
LOCATION_GRAVE
,
1
,
3
,
e
:
GetHandler
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g
,
g
:
GetCount
(),
0
,
0
)
local
g
=
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
1
,
3
,
e
:
GetHandler
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c11200004
.
reop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c11200103.lua
View file @
0ac704d3
...
...
@@ -7,7 +7,7 @@ function c11200103.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_REMOVE
+
CATEGORY_DRAW
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCountLimit
(
1
,
11200103
)
e1
:
SetCondition
(
c11200103
.
con
)
...
...
expansions/script/c33310008.lua
View file @
0ac704d3
...
...
@@ -3,7 +3,7 @@ if not pcall(function() require("expansions/script/c33310023") end) then require
local
m
=
33310008
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
c
:
EnableUnsummonable
()
--
c:EnableUnsummonable()
--pendulum summon
aux
.
EnablePendulumAttribute
(
c
,
true
)
--to hand
...
...
expansions/script/c65020025.lua
View file @
0ac704d3
...
...
@@ -66,7 +66,7 @@ function c65020025.detg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c65020025
.
delimit
(
e
,
ep
,
tp
)
return
ep
==
tp
and
not
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
ep
==
tp
end
function
c65020025
.
deop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_SZONE
,
1
,
1
,
nil
)
...
...
@@ -83,7 +83,7 @@ function c65020025.wintg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c65020025
.
winop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
local
num
=
e
:
GetHandler
():
GetCounter
(
0x11da
)
>
0
local
num
=
e
:
GetHandler
():
GetCounter
(
0x11da
)
local
lp
=
Duel
.
GetLP
(
1
-
tp
)
e
:
GetHandler
():
RemoveCounter
(
tp
,
0x11da
,
num
,
REASON_EFFECT
)
Duel
.
SetLP
(
1
-
tp
,
lp
-
num
*
1000
)
...
...
expansions/script/c81041006.lua
View file @
0ac704d3
...
...
@@ -57,8 +57,8 @@ function c81041006.costfilter(c)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
GetLevel
()
>
c
:
GetOriginalLevel
()
end
function
c81041006
.
discost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c
4931121
.
costfilter
,
1
,
nil
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c
4931121
.
costfilter
,
1
,
1
,
nil
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c
81041006
.
costfilter
,
1
,
nil
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c
81041006
.
costfilter
,
1
,
1
,
nil
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c81041006
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
expansions/script/c9980193.lua
View file @
0ac704d3
...
...
@@ -75,7 +75,8 @@ function c9980193.atkop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetValue
(
def
/
2
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
end
l
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
...
...
@@ -83,8 +84,6 @@ function c9980193.atkop(e,tp,eg,ep,ev,re,r,rp)
e3
:
SetValue
(
c9980193
.
aclimit
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e3
)
tc
=
tg
:
GetNext
()
end
end
function
c9980193
.
aclimit
(
e
,
re
,
tp
)
return
re
:
GetHandler
():
IsOnField
()
or
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
...
...
expansions/script/c9980573.lua
View file @
0ac704d3
...
...
@@ -87,7 +87,7 @@ function c9980573.operation(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetTargetRange
(
LOCATION_HAND
+
LOCATION_MZONE
,
0
)
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0xcbca
))
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e2
,
tp
)
tc
:
RegisterEffect
(
e2
)
Duel
.
RegisterFlagEffect
(
tp
,
9980573
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
c9980573
.
filter1
(
c
,
e
,
tp
)
...
...
expansions/script/c9980590.lua
View file @
0ac704d3
...
...
@@ -79,7 +79,6 @@ function c9980590.op(e,tp,eg,ep,ev,re,r,rp)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
end
function
c9980590
.
filter1
(
e
,
c
)
return
c
:
IsSetCard
(
0x6bca
)
...
...
expansions/script/c9980599.lua
View file @
0ac704d3
...
...
@@ -100,6 +100,7 @@ function c9980599.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
end
function
c9980599
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
...
...
expansions/script/c9980614.lua
View file @
0ac704d3
...
...
@@ -64,7 +64,7 @@ function c9980614.atkfilter(c)
return
c
:
IsSetCard
(
0x6bcb
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
function
c9980614
.
atkup
(
e
,
c
)
local
g
=
Duel
.
GetMatchingGroup
(
c9980614
.
atkfilter
,
e
:
GetHandlerPlayer
()
,
LOCATION_GRAVE
+
LOCATION_MZONE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c9980614
.
atkfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_MZONE
,
0
,
nil
)
return
g
:
GetClassCount
(
Card
.
GetCode
)
*
100
end
function
c9980614
.
eqfilter
(
c
)
...
...
expansions/script/c9980717.lua
View file @
0ac704d3
--丁玲丁玲
function
c9980717
.
initial_effect
(
c
)
--Activate
local
e
1
=
Effect
.
CreateEffect
(
c
)
e
1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e
1
:
SetCode
(
EVENT_FREE_CHAIN
)
e
1
:
SetOperation
(
c9980717
.
sumsuc
)
c
:
RegisterEffect
(
e
1
)
local
e
3
=
Effect
.
CreateEffect
(
c
)
e
3
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e
3
:
SetCode
(
EVENT_FREE_CHAIN
)
e
3
:
SetOperation
(
c9980717
.
sumsuc
)
c
:
RegisterEffect
(
e
3
)
--
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
@@ -14,6 +14,14 @@ function c9980717.initial_effect(c)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e3
:
SetValue
(
500
)
c
:
RegisterEffect
(
e3
)
--chain
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetRange
(
LOCATION_FZONE
)
e1
:
SetOperation
(
c9980717
.
chop
)
c
:
RegisterEffect
(
e1
)
--draw
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
9980717
,
0
))
...
...
@@ -52,6 +60,16 @@ function c9980717.chop(e,tp,eg,ep,ev,re,r,rp)
e
:
SetLabel
(
1
)
end
end
function
c9980717
.
chop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
Duel
.
GetCurrentChain
()
if
ct
==
1
then
e
:
SetLabel
(
0
)
elseif
not
Duel
.
CheckChainUniqueness
()
then
e
:
SetLabel
(
2
)
elseif
ct
>=
3
and
e
:
GetLabel
()
~=
2
then
e
:
SetLabel
(
1
)
end
end
function
c9980717
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
res
=
e
:
GetLabelObject
():
GetLabel
()
e
:
GetLabelObject
():
SetLabel
(
0
)
...
...
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