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
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
MyCard
ygopro-scripts
Commits
92d06db3
Commit
92d06db3
authored
Jul 08, 2018
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
d618bc03
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
7 deletions
+38
-7
c23434538.lua
c23434538.lua
+2
-2
c2948263.lua
c2948263.lua
+1
-1
c35199656.lua
c35199656.lua
+35
-4
No files found.
c23434538.lua
View file @
92d06db3
...
...
@@ -47,14 +47,14 @@ function c23434538.filter(c,sp)
return
c
:
GetSummonPlayer
()
==
sp
end
function
c23434538
.
drcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c23434538
.
filter
,
1
,
nil
,
1
-
tp
)
return
eg
:
IsExists
(
c23434538
.
filter
,
1
,
nil
,
1
-
tp
)
and
(
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIONS
)
or
re
:
IsHasType
(
EFFECT_TYPE_CONTINUOUS
))
end
function
c23434538
.
drop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
function
c23434538
.
regcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c23434538
.
filter
,
1
,
nil
,
1
-
tp
)
return
eg
:
IsExists
(
c23434538
.
filter
,
1
,
nil
,
1
-
tp
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIONS
)
and
not
re
:
IsHasType
(
EFFECT_TYPE_CONTINUOUS
)
end
function
c23434538
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c2948263.lua
View file @
92d06db3
...
...
@@ -55,7 +55,7 @@ function c2948263.spop(e,tp,eg,ep,ev,re,r,rp,c)
if
atk
<
0
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_
UPDATE
_ATTACK
)
e1
:
SetCode
(
EFFECT_
SET
_ATTACK
)
e1
:
SetValue
(
atk
*
2
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
c
:
RegisterEffect
(
e1
)
...
...
c35199656.lua
View file @
92d06db3
...
...
@@ -19,9 +19,23 @@ function c35199656.initial_effect(c)
e2
:
SetCode
(
EVENT_TO_HAND
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCondition
(
c35199656
.
damcon
)
e2
:
SetOperation
(
c35199656
.
damop
)
e2
:
SetCondition
(
c35199656
.
damcon
1
)
e2
:
SetOperation
(
c35199656
.
damop
1
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EVENT_TO_HAND
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCondition
(
c35199656
.
regcon
)
e3
:
SetOperation
(
c35199656
.
regop
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCondition
(
c35199656
.
damcon2
)
e4
:
SetOperation
(
c35199656
.
damop2
)
c
:
RegisterEffect
(
e4
)
end
function
c35199656
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
@@ -52,11 +66,28 @@ function c35199656.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function
c35199656
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c35199656
.
damcon
1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
Card
.
IsControler
,
1
,
nil
,
1
-
tp
)
and
(
not
re
or
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIONS
)
or
re
:
IsHasType
(
EFFECT_TYPE_CONTINUOUS
))
end
function
c35199656
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c35199656
.
damop
1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_CARD
,
0
,
35199656
)
local
ct
=
eg
:
FilterCount
(
Card
.
IsControler
,
nil
,
1
-
tp
)
Duel
.
Damage
(
1
-
tp
,
ct
*
200
,
REASON_EFFECT
)
end
function
c35199656
.
regcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
Card
.
IsControler
,
1
,
nil
,
1
-
tp
)
and
re
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIONS
)
and
not
re
:
IsHasType
(
EFFECT_TYPE_CONTINUOUS
)
end
function
c35199656
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
RegisterFlagEffect
(
35199656
,
RESET_CHAIN
,
0
,
1
)
end
function
c35199656
.
damcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
35199656
)
>
0
end
function
c35199656
.
damop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_CARD
,
0
,
35199656
)
local
ct
=
e
:
GetHandler
():
GetFlagEffect
(
35199656
)
e
:
GetHandler
():
ResetFlagEffect
(
35199656
)
Duel
.
Damage
(
1
-
tp
,
ct
*
200
,
REASON_EFFECT
)
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