Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-pre-data
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
MyCard
ygopro-pre-data
Commits
7dd42e36
Commit
7dd42e36
authored
Jun 18, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
419d3540
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
5 deletions
+22
-5
script/c100334001.lua
script/c100334001.lua
+1
-1
script/c100334002.lua
script/c100334002.lua
+14
-2
script/c100334003.lua
script/c100334003.lua
+7
-2
No files found.
script/c100334001.lua
View file @
7dd42e36
...
@@ -38,7 +38,7 @@ function c100334001.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -38,7 +38,7 @@ function c100334001.spop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCondition
(
c100334001
.
drcon
)
e1
:
SetCondition
(
c100334001
.
drcon
)
e1
:
SetTarget
(
c100334001
.
drtg
)
e1
:
SetTarget
(
c100334001
.
drtg
)
e1
:
SetOperation
(
c100334001
.
drop
)
e1
:
SetOperation
(
c100334001
.
drop
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TOGRAVE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_
LEAVE
-
RESET_
TOGRAVE
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
end
end
...
...
script/c100334002.lua
View file @
7dd42e36
...
@@ -14,18 +14,26 @@ function c100334002.initial_effect(c)
...
@@ -14,18 +14,26 @@ function c100334002.initial_effect(c)
e1
:
SetTarget
(
c100334002
.
drtg
)
e1
:
SetTarget
(
c100334002
.
drtg
)
e1
:
SetOperation
(
c100334002
.
drop
)
e1
:
SetOperation
(
c100334002
.
drop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--reg
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_BE_MATERIAL
)
e2
:
SetCondition
(
c100334002
.
drcon
)
e2
:
SetOperation
(
c100334002
.
regop
)
c
:
RegisterEffect
(
e2
)
end
end
function
c100334002
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100334002
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
)
and
r
==
REASON_LINK
return
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
)
and
r
==
REASON_LINK
end
end
function
c100334002
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c100334002
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
e
:
GetHandler
():
GetReasonCard
():
IsAttackAbove
(
500
)
end
local
rc
=
e
:
GetHandler
():
GetReasonCard
()
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
rc
:
IsAttackAbove
(
500
)
and
rc
:
GetFlagEffect
(
100334002
)
~=
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
end
function
c100334002
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100334002
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
rc
=
c
:
GetReasonCard
()
local
rc
=
c
:
GetReasonCard
()
if
rc
:
GetAttack
()
<
500
or
rc
:
IsFacedown
()
or
rc
:
IsImmuneToEffect
(
e
)
or
not
rc
:
IsRelateToEffect
(
e
)
then
return
end
if
not
rc
:
IsAttackAbove
(
500
)
or
rc
:
IsImmuneToEffect
(
e
)
or
rc
:
GetFlagEffect
(
100334002
)
==
0
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
...
@@ -37,3 +45,7 @@ function c100334002.drop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -37,3 +45,7 @@ function c100334002.drop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
end
end
end
function
c100334002
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
e
:
GetHandler
():
GetReasonCard
()
rc
:
RegisterFlagEffect
(
100334002
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
end
script/c100334003.lua
View file @
7dd42e36
...
@@ -22,6 +22,7 @@ function c100334003.initial_effect(c)
...
@@ -22,6 +22,7 @@ function c100334003.initial_effect(c)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCondition
(
c100334003
.
condition
)
e2
:
SetCondition
(
c100334003
.
condition
)
e2
:
SetTarget
(
c100334003
.
target
)
e2
:
SetOperation
(
c100334003
.
activate
)
e2
:
SetOperation
(
c100334003
.
activate
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
...
@@ -46,18 +47,22 @@ function c100334003.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -46,18 +47,22 @@ function c100334003.condition(e,tp,eg,ep,ev,re,r,rp)
local
at
=
Duel
.
GetAttackTarget
()
local
at
=
Duel
.
GetAttackTarget
()
return
at
and
at
:
IsControler
(
tp
)
and
at
:
IsRace
(
RACE_CYBERSE
)
return
at
and
at
:
IsControler
(
tp
)
and
at
:
IsRace
(
RACE_CYBERSE
)
end
end
function
c100334003
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
GetAttackTarget
():
CreateEffectRelation
(
e
)
end
function
c100334003
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100334003
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
at
=
Duel
.
GetAttackTarget
()
local
at
=
Duel
.
GetAttackTarget
()
if
at
:
IsRelateToEffect
(
e
)
and
at
:
IsFaceup
()
then
if
at
:
IsRelateToEffect
(
e
)
and
at
:
IsFaceup
()
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e1
:
SetValue
(
tc
:
GetBaseAttack
()
*
2
)
e1
:
SetValue
(
at
:
GetBaseAttack
()
*
2
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_DAMAGE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_DAMAGE
)
at
:
RegisterEffect
(
e1
)
at
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_SET_DEFENSE_FINAL
)
e2
:
SetCode
(
EFFECT_SET_DEFENSE_FINAL
)
e2
:
SetValue
(
tc
:
GetBaseDefense
()
*
2
)
e2
:
SetValue
(
at
:
GetBaseAttack
()
*
2
)
at
:
RegisterEffect
(
e2
)
at
:
RegisterEffect
(
e2
)
if
at
:
IsAttackPos
()
and
at
:
IsCanChangePosition
()
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
100334003
,
2
))
then
if
at
:
IsAttackPos
()
and
at
:
IsCanChangePosition
()
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
100334003
,
2
))
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
...
...
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