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
ee4c0f90
Commit
ee4c0f90
authored
Apr 23, 2016
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
80c5f2d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
c78625592.lua
c78625592.lua
+6
-9
No files found.
c78625592.lua
View file @
ee4c0f90
...
@@ -4,7 +4,7 @@ function c78625592.initial_effect(c)
...
@@ -4,7 +4,7 @@ function c78625592.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetTarget
(
c78625592
.
target
1
)
e1
:
SetTarget
(
c78625592
.
target
)
e1
:
SetOperation
(
c78625592
.
operation
)
e1
:
SetOperation
(
c78625592
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--disable attack
--disable attack
...
@@ -15,7 +15,6 @@ function c78625592.initial_effect(c)
...
@@ -15,7 +15,6 @@ function c78625592.initial_effect(c)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCondition
(
c78625592
.
condition
)
e2
:
SetCondition
(
c78625592
.
condition
)
e2
:
SetCost
(
c78625592
.
cost
)
e2
:
SetCost
(
c78625592
.
cost
)
e2
:
SetTarget
(
c78625592
.
target2
)
e2
:
SetOperation
(
c78625592
.
operation
)
e2
:
SetOperation
(
c78625592
.
operation
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--cannot direct attack
--cannot direct attack
...
@@ -36,22 +35,20 @@ end
...
@@ -36,22 +35,20 @@ end
function
c78625592
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c78625592
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
1000
)
end
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
1000
)
end
Duel
.
PayLPCost
(
tp
,
1000
)
Duel
.
PayLPCost
(
tp
,
1000
)
e
:
SetLabel
(
1
)
end
end
function
c78625592
.
target
1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c78625592
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
e
:
SetLabel
(
0
)
if
Duel
.
CheckEvent
(
EVENT_ATTACK_ANNOUNCE
)
and
tp
~=
Duel
.
GetTurnPlayer
()
if
Duel
.
CheckEvent
(
EVENT_ATTACK_ANNOUNCE
)
and
tp
~=
Duel
.
GetTurnPlayer
()
and
Duel
.
CheckLPCost
(
tp
,
1000
)
and
Duel
.
SelectYesNo
(
tp
,
94
)
then
and
Duel
.
CheckLPCost
(
tp
,
1000
)
and
Duel
.
SelectYesNo
(
tp
,
94
)
then
Duel
.
PayLPCost
(
tp
,
1000
)
Duel
.
PayLPCost
(
tp
,
1000
)
e
:
GetHandler
():
RegisterFlagEffect
(
78625592
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
e
:
SetLabel
(
1
)
e
:
GetHandler
():
RegisterFlagEffect
(
0
,
RESET_CHAIN
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
65
)
e
:
GetHandler
():
RegisterFlagEffect
(
0
,
RESET_CHAIN
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
65
)
end
end
end
end
function
c78625592
.
target2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
78625592
)
==
0
end
e
:
GetHandler
():
RegisterFlagEffect
(
78625592
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
c78625592
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c78625592
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
Get
Handler
():
GetFlagEffect
(
78625592
)
==
0
or
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
e
:
Get
Label
(
)
==
0
or
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
Duel
.
NegateAttack
()
Duel
.
NegateAttack
()
end
end
function
c78625592
.
grcondition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c78625592
.
grcondition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
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