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
72806b1a
Commit
72806b1a
authored
Jul 02, 2017
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
1a2e492e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
49 deletions
+5
-49
c35371948.lua
c35371948.lua
+5
-49
No files found.
c35371948.lua
View file @
72806b1a
...
@@ -71,7 +71,7 @@ function c35371948.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -71,7 +71,7 @@ function c35371948.operation(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
--Activate or send
--Activate or send
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_
TRIGGER_F
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_
CONTINUOUS
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCountLimit
(
1
)
...
@@ -93,62 +93,18 @@ function c35371948.agop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -93,62 +93,18 @@ function c35371948.agop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
e
:
GetLabelObject
()
local
tc
=
e
:
GetLabelObject
()
if
not
tc
or
tc
:
IsFaceup
()
or
not
tc
:
IsLocation
(
LOCATION_SZONE
)
then
return
end
if
not
tc
or
tc
:
IsFaceup
()
or
not
tc
:
IsLocation
(
LOCATION_SZONE
)
then
return
end
tc
:
ResetFlagEffect
(
35371948
)
tc
:
ResetFlagEffect
(
35371948
)
local
act
=
false
local
te
=
tc
:
GetActivateEffect
()
local
te
=
tc
:
GetActivateEffect
()
local
tep
=
tc
:
GetControler
()
local
tep
=
tc
:
GetControler
()
local
condition
=
nil
local
cost
=
nil
local
target
=
nil
local
operation
=
nil
if
te
then
condition
=
te
:
GetCondition
()
cost
=
te
:
GetCost
()
target
=
te
:
GetTarget
()
operation
=
te
:
GetOperation
()
act
=
te
:
GetCode
()
==
EVENT_FREE_CHAIN
and
te
:
IsActivatable
(
tep
)
and
not
(
bit
.
band
(
tc
:
GetType
(),
TYPE_SPELL
)
~=
0
and
bit
.
band
(
tc
:
GetType
(),
TYPE_QUICKPLAY
)
==
0
)
and
(
not
condition
or
condition
(
te
,
tep
,
eg
,
ep
,
ev
,
re
,
r
,
rp
))
and
(
not
cost
or
cost
(
te
,
tep
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
0
))
and
(
not
target
or
target
(
te
,
tep
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
0
))
end
local
op
=
0
local
op
=
0
if
act
then
if
te
and
te
:
GetCode
()
==
EVENT_FREE_CHAIN
and
te
:
IsActivatable
(
tep
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPTION
)
Duel
.
Hint
(
HINT_SELECTMSG
,
t
e
p
,
HINTMSG_OPTION
)
op
=
Duel
.
SelectOption
(
tep
,
aux
.
Stringid
(
35371948
,
3
),
aux
.
Stringid
(
35371948
,
4
))
op
=
Duel
.
SelectOption
(
tep
,
aux
.
Stringid
(
35371948
,
3
),
aux
.
Stringid
(
35371948
,
4
))
else
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPTION
)
Duel
.
Hint
(
HINT_SELECTMSG
,
t
e
p
,
HINTMSG_OPTION
)
op
=
Duel
.
SelectOption
(
tep
,
aux
.
Stringid
(
35371948
,
4
))
+
1
op
=
Duel
.
SelectOption
(
tep
,
aux
.
Stringid
(
35371948
,
4
))
+
1
end
end
if
op
==
0
then
if
op
==
0
then
Duel
.
ClearTargetCard
()
Duel
.
Activate
(
te
)
e
:
SetProperty
(
te
:
GetProperty
())
Duel
.
ChangePosition
(
tc
,
POS_FACEUP
)
Duel
.
Hint
(
HINT_CARD
,
0
,
tc
:
GetOriginalCode
())
tc
:
CreateEffectRelation
(
te
)
if
cost
then
cost
(
te
,
tep
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
if
target
then
target
(
te
,
tep
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
tg
=
nil
if
g
then
tg
=
g
:
GetFirst
()
while
tg
do
tg
:
CreateEffectRelation
(
te
)
tg
=
g
:
GetNext
()
end
end
tc
:
SetStatus
(
STATUS_ACTIVATED
,
true
)
if
operation
then
operation
(
te
,
tep
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
tc
:
ReleaseEffectRelation
(
te
)
if
g
then
tg
=
g
:
GetFirst
()
while
tg
do
tg
:
ReleaseEffectRelation
(
te
)
tg
=
g
:
GetNext
()
end
end
if
bit
.
band
(
tc
:
GetType
(),
TYPE_CONTINUOUS
)
==
0
then
Duel
.
SendtoGrave
(
tc
,
REASON_RULE
)
end
else
else
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
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