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
0170f1ea
Commit
0170f1ea
authored
Jan 24, 2017
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix #766
parent
cf7a9b72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
c78274190.lua
c78274190.lua
+9
-11
No files found.
c78274190.lua
View file @
0170f1ea
...
@@ -21,7 +21,7 @@ function c78274190.initial_effect(c)
...
@@ -21,7 +21,7 @@ function c78274190.initial_effect(c)
e4
:
SetCode
(
EVENT_BATTLE_DESTROYING
)
e4
:
SetCode
(
EVENT_BATTLE_DESTROYING
)
e4
:
SetRange
(
LOCATION_PZONE
)
e4
:
SetRange
(
LOCATION_PZONE
)
e4
:
SetCountLimit
(
1
)
e4
:
SetCountLimit
(
1
)
e4
:
Set
Condition
(
c78274190
.
cacon
)
e4
:
Set
Target
(
c78274190
.
catg
)
e4
:
SetOperation
(
c78274190
.
caop
)
e4
:
SetOperation
(
c78274190
.
caop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
--draw
--draw
...
@@ -41,19 +41,17 @@ function c78274190.sccon(e)
...
@@ -41,19 +41,17 @@ function c78274190.sccon(e)
local
tp
=
e
:
GetHandlerPlayer
()
local
tp
=
e
:
GetHandlerPlayer
()
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
end
end
function
c78274190
.
cacon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c78274190
.
afilter
(
c
,
tp
)
local
a
=
Duel
.
GetAttacker
()
return
c
:
IsControler
(
tp
)
and
c
:
IsSetCard
(
0x9a
)
and
c
:
IsChainAttackable
()
local
d
=
Duel
.
GetAttackTarget
()
end
if
not
d
then
return
false
end
function
c78274190
.
catg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
a
:
IsStatus
(
STATUS_OPPO_BATTLE
)
and
d
:
IsControler
(
tp
)
then
a
,
d
=
d
,
a
end
if
chk
==
0
then
return
eg
:
IsExists
(
c78274190
.
afilter
,
1
,
nil
,
tp
)
end
if
a
:
IsSetCard
(
0x9a
)
and
a
:
IsChainAttackable
()
then
local
a
=
eg
:
Filter
(
c78274190
.
afilter
,
nil
,
tp
):
GetFirst
()
e
:
SetLabelObject
(
a
)
Duel
.
SetTargetCard
(
a
)
return
true
else
return
false
end
end
end
function
c78274190
.
caop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c78274190
.
caop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
tc
=
e
:
GetLabelObjec
t
()
local
tc
=
Duel
.
GetFirstTarge
t
()
if
tc
:
IsFaceup
()
and
tc
:
IsControler
(
tp
)
and
tc
:
IsRelateToBattle
()
then
if
tc
:
IsFaceup
()
and
tc
:
IsControler
(
tp
)
and
tc
:
IsRelateToBattle
()
then
Duel
.
ChainAttack
()
Duel
.
ChainAttack
()
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