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
Reinen
ygopro-scripts
Commits
96b64de0
Commit
96b64de0
authored
Oct 28, 2017
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
b482a3d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
c21501505.lua
c21501505.lua
+17
-5
No files found.
c21501505.lua
View file @
96b64de0
...
@@ -32,12 +32,24 @@ function c21501505.filter(c,re,rp,tf,ceg,cep,cev,cre,cr,crp)
...
@@ -32,12 +32,24 @@ function c21501505.filter(c,re,rp,tf,ceg,cep,cev,cre,cr,crp)
return
tf
(
re
,
rp
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
,
0
,
c
)
return
tf
(
re
,
rp
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
,
0
,
c
)
end
end
function
c21501505
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c21501505
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
tf
=
re
:
GetTarget
()
local
ct
=
ev
local
res
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
=
Duel
.
CheckEvent
(
re
:
GetCode
(),
true
)
local
label
=
Duel
.
GetFlagEffectLabel
(
0
,
21501505
)
if
chkc
then
return
chkc
:
IsOnField
()
and
c21501505
.
filter
(
chkc
,
re
,
rp
,
tf
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
)
end
if
label
then
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c21501505
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
e
:
GetLabelObject
(),
re
,
rp
,
tf
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
)
end
if
ev
==
bit
.
rshift
(
label
,
16
)
then
ct
=
bit
.
band
(
label
,
0xffff
)
end
end
local
ce
,
cp
=
Duel
.
GetChainInfo
(
ct
,
CHAININFO_TRIGGERING_EFFECT
,
CHAININFO_TRIGGERING_PLAYER
)
local
tf
=
ce
:
GetTarget
()
local
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
=
Duel
.
GetChainEvent
(
ct
)
if
chkc
then
return
chkc
:
IsOnField
()
and
c21501505
.
filter
(
chkc
,
ce
,
cp
,
tf
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c21501505
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
e
:
GetLabelObject
(),
ce
,
cp
,
tf
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
c21501505
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
e
:
GetLabelObject
(),
re
,
rp
,
tf
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
)
Duel
.
SelectTarget
(
tp
,
c21501505
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
e
:
GetLabelObject
(),
ce
,
cp
,
tf
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
)
local
val
=
ct
+
bit
.
lshift
(
ev
+
1
,
16
)
if
label
then
Duel
.
SetFlagEffectLabel
(
0
,
21501505
,
val
)
else
Duel
.
RegisterFlagEffect
(
0
,
21501505
,
RESET_CHAIN
,
0
,
1
,
val
)
end
end
end
function
c21501505
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c21501505
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
...
...
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