Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
4
Merge Requests
4
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
MyCard
ygopro-scripts-888
Commits
5442134c
Commit
5442134c
authored
Mar 26, 2017
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
fef1d631
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
c1861629.lua
c1861629.lua
+4
-1
utility.lua
utility.lua
+1
-1
No files found.
c1861629.lua
View file @
5442134c
...
@@ -28,11 +28,14 @@ end
...
@@ -28,11 +28,14 @@ end
function
c1861629
.
atkval
(
e
,
c
)
function
c1861629
.
atkval
(
e
,
c
)
return
c
:
GetLinkedGroupCount
()
*
500
return
c
:
GetLinkedGroupCount
()
*
500
end
end
function
c1861629
.
tfilter
(
c
,
tp
)
return
c
:
IsOnField
()
and
c
:
IsControler
(
tp
)
end
function
c1861629
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c1861629
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
rp
==
tp
or
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
return
false
end
if
rp
==
tp
or
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
return
false
end
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
local
tg
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
local
tg
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
return
tg
and
tg
:
IsExists
(
Card
.
IsOnField
,
1
,
nil
)
and
Duel
.
IsChainNegatable
(
ev
)
return
tg
and
tg
:
IsExists
(
c1861629
.
tfilter
,
1
,
nil
,
tp
)
and
Duel
.
IsChainNegatable
(
ev
)
end
end
function
c1861629
.
cfilter
(
c
,
g
)
function
c1861629
.
cfilter
(
c
,
g
)
return
g
:
IsContains
(
c
)
and
not
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
return
g
:
IsContains
(
c
)
and
not
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
...
...
utility.lua
View file @
5442134c
...
@@ -1656,8 +1656,8 @@ function Auxiliary.LinkOperation(f,minc,maxc)
...
@@ -1656,8 +1656,8 @@ function Auxiliary.LinkOperation(f,minc,maxc)
local g=mg:SelectWithSumEqual(tp,Auxiliary.GetLinkCount,c:GetLink(),minc,maxc)
local g=mg:SelectWithSumEqual(tp,Auxiliary.GetLinkCount,c:GetLink(),minc,maxc)
c:SetMaterial(g)
c:SetMaterial(g)
Duel.SendtoGrave(g,REASON_MATERIAL+REASON_LINK)
Duel.SendtoGrave(g,REASON_MATERIAL+REASON_LINK)
end
end
end
end
function Auxiliary.IsMaterialListCode(c,code)
function Auxiliary.IsMaterialListCode(c,code)
if not c.material then return false end
if not c.material then return false end
for i,mcode in ipairs(c.material) do
for i,mcode in ipairs(c.material) do
...
...
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