Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
Soulgamer
ygopro-222DIY-cards
Commits
62424159
Commit
62424159
authored
Oct 31, 2019
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua fix
parent
9d198d6d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
+7
-6
expansions/script/c14801725.lua
expansions/script/c14801725.lua
+1
-1
expansions/script/c81011015.lua
expansions/script/c81011015.lua
+3
-3
expansions/script/c81011403.lua
expansions/script/c81011403.lua
+1
-1
expansions/script/c81013024.lua
expansions/script/c81013024.lua
+2
-1
No files found.
expansions/script/c14801725.lua
View file @
62424159
...
@@ -56,7 +56,7 @@ function c14801725.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -56,7 +56,7 @@ function c14801725.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c14801725
.
dicost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c14801725
.
dicost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_
GRAVE
,
0
,
1
,
e
:
GetHandler
())
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_
HAND
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
end
end
function
c14801725
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c14801725
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
expansions/script/c81011015.lua
View file @
62424159
...
@@ -58,9 +58,9 @@ function c81011015.disop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -58,9 +58,9 @@ function c81011015.disop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
end
end
end
end
function
c81011015
.
tgfilter
(
e
,
c
)
function
c81011015
.
tgfilter
(
c
,
atk
)
return
c
:
GetAttack
()
<
e
:
GetHandler
():
GetAttack
()
and
c
:
IsRace
(
RACE_FAIRY
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
return
c
:
IsFaceup
()
and
c
:
GetAttack
()
<
atk
and
c
:
IsRace
(
RACE_FAIRY
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
end
end
function
c81011015
.
tgcon
(
e
)
function
c81011015
.
tgcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
c81011015
.
tgfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
)
and
e
:
GetHandler
():
GetAttack
()
<=
800
return
Duel
.
IsExistingMatchingCard
(
c81011015
.
tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
e
:
GetHandler
():
GetAttack
()
)
and
e
:
GetHandler
():
GetAttack
()
<=
800
end
end
expansions/script/c81011403.lua
View file @
62424159
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
function
c81011403
.
initial_effect
(
c
)
function
c81011403
.
initial_effect
(
c
)
--link summon
--link summon
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
aux
.
AddLinkProcedure
(
c
,
nil
,
3
,
3
)
aux
.
AddLinkProcedure
(
c
,
nil
,
2
,
2
)
--direct attack
--direct attack
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
expansions/script/c81013024.lua
View file @
62424159
...
@@ -22,7 +22,8 @@ function c81013024.initial_effect(c)
...
@@ -22,7 +22,8 @@ function c81013024.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c81013024
.
condition1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c81013024
.
condition1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
(
not
re
:
GetHandler
():
IsLocation
(
LOCATION_ONFIELD
)
and
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
))
and
Duel
.
IsChainNegatable
(
ev
)
local
loc
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
return
(
loc
&
LOCATION_ONFIELD
)
==
0
and
Duel
.
IsChainNegatable
(
ev
)
end
end
function
c81013024
.
cost1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c81013024
.
cost1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
2500
)
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
2500
)
...
...
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