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
14f46353
Commit
14f46353
authored
Nov 24, 2017
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
8ea76f0b
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
13 additions
and
17 deletions
+13
-17
c13235258.lua
c13235258.lua
+4
-1
c27354732.lua
c27354732.lua
+2
-4
c32472237.lua
c32472237.lua
+0
-3
c38502358.lua
c38502358.lua
+1
-0
c41456841.lua
c41456841.lua
+1
-1
c53620899.lua
c53620899.lua
+0
-3
c62753201.lua
c62753201.lua
+1
-1
c879958.lua
c879958.lua
+3
-3
c89785779.lua
c89785779.lua
+1
-1
No files found.
c13235258.lua
View file @
14f46353
...
...
@@ -52,7 +52,6 @@ function c13235258.activate(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
Duel
.
Equip
(
tp
,
c
,
tc
)
c
:
CancelToGrave
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_EQUIP_LIMIT
)
...
...
@@ -75,6 +74,7 @@ function c13235258.activate(e,tp,eg,ep,ev,re,r,rp)
e3
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e3
:
SetCondition
(
c13235258
.
ctcon1
)
e3
:
SetOperation
(
c13235258
.
ctop
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e2
)
local
e4
=
e3
:
Clone
()
e4
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
...
...
@@ -85,6 +85,7 @@ function c13235258.activate(e,tp,eg,ep,ev,re,r,rp)
e5
:
SetCode
(
EVENT_CHAINING
)
e5
:
SetRange
(
LOCATION_SZONE
)
e5
:
SetOperation
(
aux
.
chainreg
)
e5
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e5
)
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
...
...
@@ -92,6 +93,7 @@ function c13235258.activate(e,tp,eg,ep,ev,re,r,rp)
e6
:
SetRange
(
LOCATION_SZONE
)
e6
:
SetCondition
(
c13235258
.
ctcon2
)
e6
:
SetOperation
(
c13235258
.
ctop
)
e6
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e6
)
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
@@ -100,6 +102,7 @@ function c13235258.activate(e,tp,eg,ep,ev,re,r,rp)
e7
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e7
:
SetCondition
(
c13235258
.
atkcon2
)
e7
:
SetValue
(
c13235258
.
atkval
)
e7
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e7
)
local
e8
=
e7
:
Clone
()
e8
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
...
...
c27354732.lua
View file @
14f46353
...
...
@@ -51,8 +51,8 @@ function c27354732.spfilter(c,e,tp)
and
not
c
:
IsCode
(
27354732
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c27354732
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsDestructable
()
and
Duel
.
GetLocationCountFromEx
(
tp
)
>
0
and
Duel
.
IsExisting
Target
(
c27354732
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsDestructable
()
and
Duel
.
GetLocationCountFromEx
(
tp
)
>
0
and
Duel
.
IsExisting
MatchingCard
(
c27354732
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
...
...
@@ -74,11 +74,9 @@ function c27354732.acop(e,tp,eg,ep,ev,re,r,rp)
end
function
c27354732
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
rc
=
re
:
GetHandler
()
return
rp
~=
tp
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
not
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
Duel
.
IsChainNegatable
(
ev
)
end
function
c27354732
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsCanRemoveCounter
(
tp
,
1
,
0
,
0x1
,
2
,
REASON_COST
)
end
Duel
.
RemoveCounter
(
tp
,
1
,
0
,
0x1
,
2
,
REASON_COST
)
end
...
...
c32472237.lua
View file @
14f46353
...
...
@@ -27,9 +27,6 @@ function c32472237.descon(e,tp,eg,ep,ev,re,r,rp)
if
not
g
or
not
g
:
IsContains
(
c
)
then
return
false
end
return
re
:
IsActiveType
(
TYPE_LINK
)
end
function
c32472237
.
desfilter
(
c
,
g
)
return
g
:
IsContains
(
c
)
end
function
c32472237
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
cg
=
c
:
GetColumnGroup
():
Filter
(
Card
.
IsControler
,
nil
,
1
-
tp
)
...
...
c38502358.lua
View file @
14f46353
...
...
@@ -12,6 +12,7 @@ function c38502358.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCondition
(
c38502358
.
indcon
)
e2
:
SetValue
(
1
)
...
...
c41456841.lua
View file @
14f46353
...
...
@@ -40,7 +40,7 @@ function c41456841.initial_effect(c)
c
:
RegisterEffect
(
e4
)
--spsummon
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetDescription
(
aux
.
Stringid
(
91512835
,
1
))
e5
:
SetDescription
(
aux
.
Stringid
(
41456841
,
1
))
e5
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOKEN
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e5
:
SetRange
(
LOCATION_MZONE
)
...
...
c53620899.lua
View file @
14f46353
...
...
@@ -19,9 +19,6 @@ function c53620899.initial_effect(c)
e2
:
SetOperation
(
c53620899
.
posop
)
c
:
RegisterEffect
(
e2
)
end
function
c53620899
.
tgfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0xed
)
and
c
:
IsDiscardable
()
end
function
c53620899
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
...
...
c62753201.lua
View file @
14f46353
...
...
@@ -78,7 +78,7 @@ function c62753201.activate(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e2
:
SetCountLimit
(
1
)
e2
:
SetTarget
(
c62753201
.
indtg
)
e2
:
SetOperation
(
c62753201
.
in
t
op
)
e2
:
SetOperation
(
c62753201
.
in
d
op
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_GRANT
)
e3
:
SetRange
(
LOCATION_SZONE
)
...
...
c879958.lua
View file @
14f46353
...
...
@@ -109,10 +109,10 @@ function c879958.atkfilter(c)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_LINK
)
and
not
c
:
IsHasEffect
(
EFFECT_EXTRA_ATTACK
)
end
function
c879958
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c879958
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c879958
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c879958
.
atk
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c879958
.
atk
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c879958
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c879958
.
atk
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
function
c879958
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
...
...
c89785779.lua
View file @
14f46353
...
...
@@ -58,7 +58,7 @@ function c89785779.eqop(e,tp,eg,ep,ev,re,r,rp)
m
.
equip_monster
(
tc2
,
tp
,
tc1
)
end
end
function
c89785779
.
thfilter
(
c
,
e
)
function
c89785779
.
thfilter
(
c
)
return
c
:
IsFaceup
()
and
((
c
:
IsSetCard
(
0x110
)
and
c
:
IsType
(
TYPE_FUSION
))
or
c
:
IsCode
(
64631466
))
end
function
c89785779
.
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