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
fcbaa7ea
Commit
fcbaa7ea
authored
Dec 24, 2015
by
salix5
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #197 from DailyShana/patch-6
fix Raidraptor - Last Strix
parents
9c484ddb
5cdd1578
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
c97219708.lua
c97219708.lua
+7
-3
No files found.
c97219708.lua
View file @
fcbaa7ea
...
...
@@ -4,7 +4,7 @@ function c97219708.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
97219708
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_RECOVER
)
e1
:
SetType
(
EFFECT_TYPE_
FIELD
+
EFFECT_TYPE_
QUICK_O
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_PRE_DAMAGE_CALCULATE
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCondition
(
c97219708
.
reccon
)
...
...
@@ -29,7 +29,8 @@ function c97219708.reccon(e,tp,eg,ep,ev,re,r,rp)
return
(
tc
:
IsControler
(
tp
)
and
tc
:
IsSetCard
(
0xba
))
or
(
at
and
at
:
IsControler
(
tp
)
and
at
:
IsSetCard
(
0xba
))
end
function
c97219708
.
rectg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
end
local
ct
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsType
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
...
...
@@ -37,12 +38,15 @@ function c97219708.rectg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c97219708
.
recop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
then
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
then
local
ct
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsType
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
if
ct
>
0
then
Duel
.
BreakEffect
()
Duel
.
Recover
(
tp
,
ct
*
100
,
REASON_EFFECT
)
end
elseif
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
end
end
function
c97219708
.
spfilter
(
c
,
e
,
tp
)
...
...
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