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
e2506c91
Commit
e2506c91
authored
Aug 30, 2018
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
89a8c44a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
8 deletions
+16
-8
c15661378.lua
c15661378.lua
+5
-1
c17722185.lua
c17722185.lua
+9
-5
c80101899.lua
c80101899.lua
+2
-2
No files found.
c15661378.lua
View file @
e2506c91
...
@@ -8,7 +8,7 @@ function c15661378.initial_effect(c)
...
@@ -8,7 +8,7 @@ function c15661378.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
aux
.
fus
limit
)
e1
:
SetValue
(
c15661378
.
sp
limit
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--special summon rule
--special summon rule
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
@@ -35,6 +35,10 @@ end
...
@@ -35,6 +35,10 @@ end
function
c15661378
.
ffilter
(
c
,
fc
,
sub
,
mg
,
sg
)
function
c15661378
.
ffilter
(
c
,
fc
,
sub
,
mg
,
sg
)
return
c
:
IsControler
(
fc
:
GetControler
())
and
c
:
IsLocation
(
LOCATION_MZONE
+
LOCATION_HAND
)
and
(
not
sg
or
not
sg
:
IsExists
(
Card
.
IsFusionCode
,
1
,
c
,
c
:
GetFusionCode
()))
return
c
:
IsControler
(
fc
:
GetControler
())
and
c
:
IsLocation
(
LOCATION_MZONE
+
LOCATION_HAND
)
and
(
not
sg
or
not
sg
:
IsExists
(
Card
.
IsFusionCode
,
1
,
c
,
c
:
GetFusionCode
()))
end
end
function
c15661378
.
splimit
(
e
,
se
,
sp
,
st
)
return
not
e
:
GetHandler
():
IsLocation
(
LOCATION_EXTRA
)
or
st
&
SUMMON_TYPE_FUSION
==
SUMMON_TYPE_FUSION
end
function
c15661378
.
cfilter
(
c
,
fc
)
function
c15661378
.
cfilter
(
c
,
fc
)
return
c
:
IsAbleToRemoveAsCost
()
and
c
:
IsCanBeFusionMaterial
(
fc
)
return
c
:
IsAbleToRemoveAsCost
()
and
c
:
IsCanBeFusionMaterial
(
fc
)
end
end
...
...
c17722185.lua
View file @
e2506c91
...
@@ -37,17 +37,21 @@ end
...
@@ -37,17 +37,21 @@ end
function
c17722185
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c17722185
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
ct
=
e
:
GetLabel
()
c
:
RegisterFlagEffect
(
17722185
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
local
flag
=
e
:
GetLabel
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetRange
(
LOCATION_SZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e1
:
SetTarget
(
c17722185
.
distg
)
e1
:
SetTarget
(
c17722185
.
distg
)
e1
:
SetLabel
(
ct
)
e1
:
SetCondition
(
c17722185
.
discon
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetLabel
(
flag
)
c
:
RegisterEffect
(
e1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c17722185
.
distg
(
e
,
c
)
function
c17722185
.
distg
(
e
,
c
)
return
c
:
IsType
(
e
:
GetLabel
())
return
c
:
IsType
(
e
:
GetLabel
())
end
end
function
c17722185
.
discon
(
e
)
return
e
:
GetHandler
():
GetFlagEffect
(
17722185
)
~=
0
end
c80101899.lua
View file @
e2506c91
...
@@ -73,8 +73,8 @@ function c80101899.aclimit2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -73,8 +73,8 @@ function c80101899.aclimit2(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ResetFlagEffect
(
tp
,
80101899
)
Duel
.
ResetFlagEffect
(
tp
,
80101899
)
end
end
function
c80101899
.
actcon
(
e
)
function
c80101899
.
actcon
(
e
)
return
Duel
.
GetFlagEffect
(
tp
,
80101899
)
~=
0
return
Duel
.
GetFlagEffect
(
e
:
GetHandlerPlayer
()
,
80101899
)
~=
0
end
end
function
c80101899
.
aclimit3
(
e
,
re
,
tp
)
function
c80101899
.
aclimit3
(
e
,
re
,
tp
)
return
re
:
GetHandler
():
Is
Type
(
TYPE_TRAP
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
re
:
IsActive
Type
(
TYPE_TRAP
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
end
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