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
796caffe
Commit
796caffe
authored
May 09, 2016
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
8a0f882e
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
22 additions
and
22 deletions
+22
-22
c10875327.lua
c10875327.lua
+1
-1
c23639291.lua
c23639291.lua
+1
-1
c31111109.lua
c31111109.lua
+1
-1
c47121070.lua
c47121070.lua
+9
-9
c48770333.lua
c48770333.lua
+4
-4
c48948935.lua
c48948935.lua
+1
-1
c60668166.lua
c60668166.lua
+1
-1
c66127916.lua
c66127916.lua
+1
-1
c67987302.lua
c67987302.lua
+1
-1
c75198893.lua
c75198893.lua
+1
-1
c84451804.lua
c84451804.lua
+1
-1
No files found.
c10875327.lua
View file @
796caffe
...
...
@@ -43,7 +43,7 @@ end
function
c10875327
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
not
c
:
IsLocation
(
LOCATION_DECK
)
and
(
not
re
or
re
:
Get
Handl
er
()
~=
c
)
and
(
not
re
or
re
:
Get
Own
er
()
~=
c
)
end
function
c10875327
.
desfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsDestructable
()
...
...
c23639291.lua
View file @
796caffe
...
...
@@ -13,7 +13,7 @@ end
function
c23639291
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
return
eg
:
GetCount
()
==
1
and
tc
:
IsControler
(
tp
)
and
tc
:
GetPreviousControler
()
==
tp
and
tc
:
IsReason
(
REASON_DESTROY
)
and
tc
:
GetReasonEffect
()
and
tc
:
GetReasonEffect
():
Get
Handl
er
()
==
tc
and
tc
:
GetReasonEffect
()
and
tc
:
GetReasonEffect
():
Get
Own
er
()
==
tc
end
function
c23639291
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
==
eg
:
GetFirst
()
end
...
...
c31111109.lua
View file @
796caffe
...
...
@@ -81,7 +81,7 @@ function c31111109.fusop(e,tp,eg,ep,ev,re,r,rp,gc,chkf)
end
function
c31111109
.
filter
(
c
)
return
(
c
:
IsSetCard
(
0x9
)
or
c
:
IsSetCard
(
0x1f
)
or
c
:
IsSetCard
(
0x8
))
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
Is
HasEffect
(
EFFECT_FORBIDDEN
)
and
c
:
IsAbleToRemove
()
and
not
c
:
Is
Forbidden
(
)
and
c
:
IsAbleToRemove
()
end
function
c31111109
.
copytg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c31111109
.
filter
(
chkc
)
end
...
...
c47121070.lua
View file @
796caffe
...
...
@@ -20,8 +20,16 @@ function c47121070.tftg(e,tp,eg,ep,ev,re,r,rp,chk)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsSetCard
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
0x1034
)
end
end
function
c47121070
.
tfop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
end
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_AVOID_BATTLE_DAMAGE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsSetCard
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
0x1034
)
if
g
:
GetCount
()
>
0
then
...
...
@@ -36,12 +44,4 @@ function c47121070.tfop(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterEffect
(
e1
)
Duel
.
RaiseEvent
(
tc
,
EVENT_CUSTOM
+
47408488
,
e
,
0
,
tp
,
0
,
0
)
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_AVOID_BATTLE_DAMAGE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
c48770333.lua
View file @
796caffe
...
...
@@ -86,10 +86,10 @@ function c48770333.atkop(e,tp,eg,ep,ev,re,r,rp)
e3
:
SetCondition
(
c48770333
.
dircon
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e3
)
local
e
3
=
e2
:
Clone
()
e
3
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e
3
:
SetCondition
(
c48770333
.
atkcon2
)
c
:
RegisterEffect
(
e
3
)
local
e
4
=
e3
:
Clone
()
e
4
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e
4
:
SetCondition
(
c48770333
.
atkcon2
)
c
:
RegisterEffect
(
e
4
)
end
end
function
c48770333
.
aclimit
(
e
,
re
,
tp
)
...
...
c48948935.lua
View file @
796caffe
...
...
@@ -49,7 +49,7 @@ function c48948935.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c48948935
.
filter
(
c
)
return
c
:
IsCode
(
22610082
)
and
not
c
:
Is
HasEffect
(
EFFECT_FORBIDDEN
)
return
c
:
IsCode
(
22610082
)
and
not
c
:
Is
Forbidden
(
)
end
function
c48948935
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
end
...
...
c60668166.lua
View file @
796caffe
...
...
@@ -26,7 +26,7 @@ function c60668166.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c60668166
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
ct
=
=
0
then
return
end
if
ct
<
=
0
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
c60668166
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
local
t1
=
g
:
GetFirst
()
...
...
c66127916.lua
View file @
796caffe
...
...
@@ -14,7 +14,7 @@ function c66127916.filter1(c,tp)
return
c
.
material
and
Duel
.
IsExistingMatchingCard
(
c66127916
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
)
end
function
c66127916
.
filter2
(
c
,
fc
)
if
c
:
Is
HasEffect
(
EFFECT_FORBIDDEN
)
or
not
c
:
IsAbleToHand
()
then
return
false
end
if
c
:
Is
Forbidden
(
)
or
not
c
:
IsAbleToHand
()
then
return
false
end
return
c
:
IsCode
(
table.unpack
(
fc
.
material
))
end
function
c66127916
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c67987302.lua
View file @
796caffe
...
...
@@ -11,5 +11,5 @@ function c67987302.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c67987302
.
efilter
(
e
,
re
,
rp
,
c
)
return
re
:
Get
Handl
er
()
==
c
return
re
:
Get
Own
er
()
==
c
end
c75198893.lua
View file @
796caffe
...
...
@@ -13,7 +13,7 @@ function c75198893.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c75198893
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsType
(
TYPE_XYZ
)
and
not
c
:
Is
HasEffect
(
EFFECT_FORBIDDEN
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsType
(
TYPE_XYZ
)
and
not
c
:
Is
Forbidden
(
)
end
function
c75198893
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c75198893
.
filter
(
chkc
)
end
...
...
c84451804.lua
View file @
796caffe
...
...
@@ -27,7 +27,7 @@ function c84451804.operation(e,tp,eg,ep,ev,re,r,rp)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsCode
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
10456559
)
if
ft
<
ct
then
ct
=
ft
end
if
ct
=
=
0
then
return
end
if
ct
<
=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c84451804
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
ct
,
nil
,
e
,
tp
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
...
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