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
c25e39ec
Commit
c25e39ec
authored
May 15, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix dice effects
parent
3c53add8
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
21 additions
and
12 deletions
+21
-12
c16135253.lua
c16135253.lua
+1
-1
c32015116.lua
c32015116.lua
+1
-1
c3493058.lua
c3493058.lua
+1
-1
c3549275.lua
c3549275.lua
+10
-2
c35606858.lua
c35606858.lua
+1
-1
c36708764.lua
c36708764.lua
+1
-1
c38299233.lua
c38299233.lua
+1
-0
c42421606.lua
c42421606.lua
+1
-1
c62893810.lua
c62893810.lua
+1
-1
c76895648.lua
c76895648.lua
+1
-1
c84397023.lua
c84397023.lua
+1
-1
c97642679.lua
c97642679.lua
+1
-1
No files found.
c16135253.lua
View file @
c25e39ec
...
...
@@ -15,7 +15,7 @@ function c16135253.condition(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
)
and
e
:
GetHandler
():
IsReason
(
REASON_BATTLE
)
end
function
c16135253
.
filter
(
c
,
e
,
tp
,
lv
)
if
(
lv
<
6
and
c
:
GetLevel
()
~=
lv
)
or
(
lv
==
6
and
c
:
GetLevel
()
<
6
)
then
return
false
end
if
(
lv
~=
6
and
c
:
GetLevel
()
~=
lv
)
or
(
lv
==
6
and
c
:
GetLevel
()
<
6
)
then
return
false
end
return
c
:
IsRace
(
RACE_FAIRY
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c16135253
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c32015116.lua
View file @
c25e39ec
...
...
@@ -27,7 +27,7 @@ function c32015116.rdtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DICE
,
nil
,
0
,
tp
,
1
)
end
function
c32015116
.
rdfilter
(
c
,
lv
)
if
lv
<
6
then
if
lv
~=
6
then
return
c
:
IsFaceup
()
and
c
:
GetLevel
()
==
lv
else
return
c
:
IsFaceup
()
and
c
:
GetLevel
()
>=
6
end
...
...
c3493058.lua
View file @
c25e39ec
...
...
@@ -27,7 +27,7 @@ function c3493058.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
dg
=
g
:
Select
(
tp
,
2
,
2
,
nil
)
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
else
else
if
dc
>=
2
and
dc
<=
4
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c3493058
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
aux
.
ExceptThisCard
(
e
))
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
...
...
c3549275.lua
View file @
c25e39ec
...
...
@@ -19,8 +19,16 @@ function c3549275.operation(e,tp,eg,ep,ev,re,r,rp)
d1
,
d2
=
Duel
.
TossDice
(
tp
,
1
,
1
)
end
if
d1
<
d2
then
if
d2
==
6
then
Duel
.
Damage
(
tp
,
6000
,
REASON_EFFECT
)
else
Duel
.
Damage
(
tp
,
d2
*
500
,
REASON_EFFECT
)
end
if
d2
==
6
then
Duel
.
Damage
(
tp
,
6000
,
REASON_EFFECT
)
elseif
d2
>=
2
and
d2
<=
5
then
Duel
.
Damage
(
tp
,
d2
*
500
,
REASON_EFFECT
)
end
else
if
d1
==
6
then
Duel
.
Damage
(
1
-
tp
,
6000
,
REASON_EFFECT
)
else
Duel
.
Damage
(
1
-
tp
,
d1
*
500
,
REASON_EFFECT
)
end
if
d1
==
6
then
Duel
.
Damage
(
1
-
tp
,
6000
,
REASON_EFFECT
)
elseif
d1
>=
2
and
d1
<=
5
then
Duel
.
Damage
(
1
-
tp
,
d1
*
500
,
REASON_EFFECT
)
end
end
end
c35606858.lua
View file @
c25e39ec
...
...
@@ -99,7 +99,7 @@ function c35606858.dcop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
elseif
d
==
6
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
else
else
if
d
>=
2
and
d
<=
5
then
Duel
.
SendtoDeck
(
tc
,
nil
,
2
,
REASON_EFFECT
)
end
end
c36708764.lua
View file @
c25e39ec
...
...
@@ -58,7 +58,7 @@ function c36708764.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Damage
(
1
-
tp
,
at
:
GetAttack
(),
REASON_EFFECT
)
end
return
else
else
if
dc
==
6
then
local
at
=
Duel
.
GetFirstTarget
()
if
at
:
IsRelateToEffect
(
e
)
and
at
:
IsControler
(
1
-
tp
)
and
at
:
IsType
(
TYPE_MONSTER
)
then
Duel
.
Destroy
(
at
,
REASON_EFFECT
)
...
...
c38299233.lua
View file @
c25e39ec
...
...
@@ -32,6 +32,7 @@ function c38299233.rdop(e,tp,eg,ep,ev,re,r,rp)
while
d1
==
6
do
d1
=
Duel
.
TossDice
(
tp
,
1
)
end
if
d1
>
5
then
return
end
local
tc
=
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_MZONE
,
d1
-
1
)
if
tc
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
...
...
c42421606.lua
View file @
c25e39ec
...
...
@@ -66,7 +66,7 @@ function c42421606.efop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
HintSelection
(
g
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
else
else
if
dc
==
6
then
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
end
...
...
c62893810.lua
View file @
c25e39ec
...
...
@@ -30,7 +30,7 @@ function c62893810.operation(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_HAND
,
0
)
if
g
:
GetCount
()
==
0
then
return
end
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
+
REASON_DISCARD
)
else
else
if
d
>=
2
and
d
<=
5
then
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_HAND
,
0
)
if
g
:
GetCount
()
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISCARD
)
...
...
c76895648.lua
View file @
c25e39ec
...
...
@@ -40,7 +40,7 @@ function c76895648.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
else
else
if
dice
==
6
then
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
end
end
c84397023.lua
View file @
c25e39ec
...
...
@@ -18,7 +18,7 @@ function c84397023.op(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
local
ct
=
Duel
.
TossDice
(
tp
,
1
)
if
ct
==
1
then
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
else
else
if
ct
>=
2
and
ct
<=
6
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_LEVEL
)
...
...
c97642679.lua
View file @
c25e39ec
...
...
@@ -30,7 +30,7 @@ function c97642679.operation(e,tp,eg,ep,ev,re,r,rp)
elseif
d
==
6
then
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
else
else
if
d
>=
3
and
d
<=
5
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
...
...
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