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
fcc3fea6
Commit
fcc3fea6
authored
Jun 12, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
c340569b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
c53199020.lua
c53199020.lua
+11
-4
No files found.
c53199020.lua
View file @
fcc3fea6
...
...
@@ -44,17 +44,24 @@ function c53199020.otop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
Release
(
sg
,
REASON_SUMMON
+
REASON_MATERIAL
)
end
function
c53199020
.
chcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
and
re
:
GetHandler
():
GetType
()
==
TYPE_SPELL
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
ep
==
1
-
tp
and
re
:
GetHandler
():
GetType
()
==
TYPE_SPELL
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
function
c53199020
.
chop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
re
turn
e
:
GetHandler
():
RegisterFlagEffect
(
53199020
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
re
:
GetHandler
():
RegisterFlagEffect
(
53199020
,
RESET_CHAIN
,
0
,
1
)
end
function
c53199020
.
chcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ev
==
1
and
e
:
GetHandler
():
GetFlagEffect
(
53199020
)
>
0
return
r
e
:
GetHandler
():
GetFlagEffect
(
53199020
)
>
0
end
function
c53199020
.
chop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
ChangeChainOperation
(
1
,
c53199020
.
rep_op
)
local
g
=
Group
.
CreateGroup
()
Duel
.
ChangeTargetCard
(
ev
,
g
)
Duel
.
ChangeChainOperation
(
ev
,
c53199020
.
rep_op
)
end
function
c53199020
.
rep_op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
GetType
()
==
TYPE_SPELL
or
c
:
GetType
()
==
TYPE_TRAP
then
c
:
CancelToGrave
(
false
)
end
Duel
.
Hint
(
HINT_CARD
,
0
,
53199020
)
Duel
.
DiscardHand
(
1
-
tp
,
aux
.
TRUE
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
)
end
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