Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
Commits
a448120e
Commit
a448120e
authored
Sep 19, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
64aa0dad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
15 deletions
+25
-15
script/c7617062.lua
script/c7617062.lua
+25
-15
No files found.
script/c7617062.lua
View file @
a448120e
...
@@ -9,7 +9,7 @@ function c7617062.initial_effect(c)
...
@@ -9,7 +9,7 @@ function c7617062.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e2
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e2
:
SetRange
(
LOCATION_
S
ZONE
)
e2
:
SetRange
(
LOCATION_
F
ZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTarget
(
c7617062
.
ftarget
)
e2
:
SetTarget
(
c7617062
.
ftarget
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
...
@@ -25,17 +25,25 @@ function c7617062.initial_effect(c)
...
@@ -25,17 +25,25 @@ function c7617062.initial_effect(c)
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
e4
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
e4
:
SetRange
(
LOCATION_
S
ZONE
)
e4
:
SetRange
(
LOCATION_
F
ZONE
)
e4
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e4
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e4
:
SetTarget
(
c7617062
.
dirtg
)
e4
:
SetTarget
(
c7617062
.
dirtg
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
--pos
--pos
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetRange
(
LOCATION_
S
ZONE
)
e5
:
SetRange
(
LOCATION_
F
ZONE
)
e5
:
SetCode
(
EVENT_BATTLE_DAMAGE
)
e5
:
SetCode
(
EVENT_BATTLE_DAMAGE
)
e5
:
SetOperation
(
c7617062
.
operation
)
e5
:
SetOperation
(
c7617062
.
regop
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e6
:
SetRange
(
LOCATION_FZONE
)
e6
:
SetCode
(
EVENT_DAMAGE_STEP_END
)
e6
:
SetCondition
(
c7617062
.
poscon
)
e6
:
SetOperation
(
c7617062
.
posop
)
e6
:
SetLabelObject
(
e5
)
c
:
RegisterEffect
(
e6
)
end
end
function
c7617062
.
bttg
(
e
,
c
)
function
c7617062
.
bttg
(
e
,
c
)
return
c
:
IsFacedown
()
return
c
:
IsFacedown
()
...
@@ -46,18 +54,20 @@ end
...
@@ -46,18 +54,20 @@ end
function
c7617062
.
ftarget
(
e
,
c
)
function
c7617062
.
ftarget
(
e
,
c
)
return
not
c
:
IsSetCard
(
0x8d
)
return
not
c
:
IsSetCard
(
0x8d
)
end
end
function
c7617062
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c7617062
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
eg
:
GetFirst
()
c
:
RegisterFlagEffect
(
7617062
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_DAMAGE
,
0
,
1
)
if
tc
:
IsRelateToBattle
()
and
tc
:
IsFaceup
()
and
tc
:
IsCanTurnSet
()
then
eg
:
GetFirst
():
RegisterFlagEffect
(
7617063
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_DAMAGE
,
0
,
1
)
local
e1
=
Effect
.
CreateEffect
(
c
)
end
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
function
c7617062
.
poscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e1
:
SetCode
(
EVENT_DAMAGE_STEP_END
)
return
e
:
GetHandler
():
GetFlagEffect
(
7617062
)
>
0
e1
:
SetOperation
(
c7617062
.
posop
)
end
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_DAMAGE
)
function
c7617062
.
filter
(
c
)
tc
:
RegisterEffect
(
e1
)
return
c
:
GetFlagEffect
(
7617063
)
>
0
end
end
end
function
c7617062
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c7617062
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangePosition
(
e
:
GetHandler
(),
POS_FACEDOWN_DEFENCE
)
local
g
=
Duel
.
GetMatchingGroup
(
c7617062
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
Duel
.
ChangePosition
(
g
,
POS_FACEDOWN_DEFENCE
)
end
end
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