Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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-2pick
Commits
185e3e06
Commit
185e3e06
authored
Sep 23, 2017
by
Momobako
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Push by Appveyor
parent
e7e46a84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
31 deletions
+31
-31
expansions/script/c37564030.lua
expansions/script/c37564030.lua
+31
-31
No files found.
expansions/script/c37564030.lua
View file @
185e3e06
...
...
@@ -94,41 +94,41 @@ function cm.atkop(e,tp,eg,ep,ev,re,r,rp)
if
ct
==
0
then
return
end
local
dr
=
Duel
.
GetOperatedGroup
():
GetFirst
()
Duel
.
ConfirmCards
(
1
-
tp
,
dr
)
if
not
(
dr
:
IsSetCard
(
0x770
)
and
dr
:
IsType
(
TYPE_MONSTER
))
then
return
Duel
.
ShuffleHand
(
tp
)
end
Duel
.
Hint
(
HINT_CARD
,
0
,
dr
:
GetOriginalCode
())
if
dr
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
then
c
:
RegisterFlagEffect
(
375640302
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
if
dr
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
bc
)
then
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
37564030
,
3
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
bc
)
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
if
not
(
Senya
.
check_set_elem
(
dr
)
and
dr
:
IsType
(
TYPE_MONSTER
))
then
return
Duel
.
ShuffleHand
(
tp
)
end
Duel
.
Hint
(
HINT_CARD
,
0
,
dr
:
GetOriginalCode
())
if
dr
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
then
c
:
RegisterFlagEffect
(
375640302
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
if
dr
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
bc
)
then
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
37564030
,
3
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
bc
)
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
end
end
if
dr
:
IsAttribute
(
ATTRIBUTE_WATER
)
then
Duel
.
Recover
(
tp
,
2500
,
REASON_EFFECT
)
end
if
dr
:
IsAttribute
(
ATTRIBUTE_FIRE
)
then
Duel
.
Damage
(
1
-
tp
,
2000
,
REASON_EFFECT
)
end
if
dr
:
IsAttribute
(
ATTRIBUTE_WIND
)
then
Duel
.
Draw
(
tp
,
2
,
REASON_EFFECT
)
end
if
dr
:
IsAttribute
(
ATTRIBUTE_EARTH
)
and
Duel
.
GetLocationCountFromEx
(
tp
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
then
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
37564030
,
4
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
local
tc
=
g
:
GetFirst
(
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
if
dr
:
IsAttribute
(
ATTRIBUTE_WATER
)
then
Duel
.
Recover
(
tp
,
2500
,
REASON_EFFECT
)
end
if
dr
:
IsAttribute
(
ATTRIBUTE_FIRE
)
then
Duel
.
Damage
(
1
-
tp
,
2000
,
REASON_EFFECT
)
end
if
dr
:
IsAttribute
(
ATTRIBUTE_WIND
)
then
Duel
.
Draw
(
tp
,
2
,
REASON_EFFECT
)
end
if
dr
:
IsAttribute
(
ATTRIBUTE_EARTH
)
and
Duel
.
GetLocationCountFromEx
(
tp
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
then
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
37564030
,
4
)
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
local
tc
=
g
:
GetFirst
()
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
end
local
val
=
dr
:
GetTextAttack
()
+
dr
:
GetTextDefense
()
local
val
=
dr
:
GetTextAttack
()
+
dr
:
GetTextDefense
()
if
val
>
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
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