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
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
Commits
43a6b6ea
Commit
43a6b6ea
authored
Nov 18, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
3368ff1b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
16 deletions
+14
-16
c36426778.lua
c36426778.lua
+2
-1
c59975920.lua
c59975920.lua
+3
-2
c77783947.lua
c77783947.lua
+8
-12
constant.lua
constant.lua
+1
-1
No files found.
c36426778.lua
View file @
43a6b6ea
...
...
@@ -2,6 +2,7 @@
function
c36426778
.
initial_effect
(
c
)
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
36426778
,
0
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
...
...
@@ -11,7 +12,7 @@ function c36426778.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--search
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
36426778
,
0
))
e2
:
SetDescription
(
aux
.
Stringid
(
36426778
,
1
))
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_GRAVE
)
...
...
c59975920.lua
View file @
43a6b6ea
...
...
@@ -2,6 +2,7 @@
function
c59975920
.
initial_effect
(
c
)
--spsummon proc
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
59975920
,
0
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
...
...
@@ -10,7 +11,7 @@ function c59975920.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--to hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
59975920
,
0
))
e2
:
SetDescription
(
aux
.
Stringid
(
59975920
,
1
))
e2
:
SetCategory
(
CATEGORY_TOHAND
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
...
...
@@ -24,7 +25,7 @@ function c59975920.initial_effect(c)
c
:
RegisterEffect
(
e3
)
--special summon
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
59975920
,
1
))
e4
:
SetDescription
(
aux
.
Stringid
(
59975920
,
2
))
e4
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetCode
(
EVENT_TO_GRAVE
)
...
...
c77783947.lua
View file @
43a6b6ea
...
...
@@ -44,10 +44,14 @@ function c77783947.mfilter(c)
return
c
:
IsSetCard
(
0x9e
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
function
c77783947
.
mfilter2
(
c
)
return
c
:
IsHasEffect
(
EFFECT_HAND_SYNCHRO
)
return
c
:
IsHasEffect
(
EFFECT_HAND_SYNCHRO
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
function
c77783947
.
cfilter
(
c
,
syn
)
return
syn
:
IsSynchroSummonable
(
c
)
local
b1
=
true
if
c
:
IsHasEffect
(
EFFECT_HAND_SYNCHRO
)
then
b1
=
Duel
.
CheckTunerMaterial
(
syn
,
c
,
nil
,
c77783947
.
mfilter
,
1
,
99
)
end
return
b1
and
syn
:
IsSynchroSummonable
(
c
)
end
function
c77783947
.
spfilter
(
c
,
mg
)
return
mg
:
IsExists
(
c77783947
.
cfilter
,
1
,
nil
,
c
)
...
...
@@ -60,11 +64,7 @@ function c77783947.sctg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
local
mg
=
Duel
.
GetMatchingGroup
(
c77783947
.
mfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
exg
=
Duel
.
GetMatchingGroup
(
c77783947
.
mfilter2
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
if
exg
:
GetCount
()
>
0
then
local
mg2
=
Duel
.
GetMatchingGroup
(
c77783947
.
mfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
)
mg
:
Merge
(
exg
)
mg
:
Merge
(
mg2
)
end
return
Duel
.
IsExistingMatchingCard
(
c77783947
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
mg
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
...
...
@@ -72,11 +72,7 @@ end
function
c77783947
.
scop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
mg
=
Duel
.
GetMatchingGroup
(
c77783947
.
mfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
exg
=
Duel
.
GetMatchingGroup
(
c77783947
.
mfilter2
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
if
exg
:
GetCount
()
>
0
then
local
mg2
=
Duel
.
GetMatchingGroup
(
c77783947
.
mfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
)
mg
:
Merge
(
exg
)
mg
:
Merge
(
mg2
)
end
local
g
=
Duel
.
GetMatchingGroup
(
c77783947
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
mg
)
if
g
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
...
...
constant.lua
View file @
43a6b6ea
...
...
@@ -485,7 +485,7 @@ EFFECT_NO_EFFECT_DAMAGE =335 --玩家已受到"效果傷害變成0"的效果
EFFECT_UNSUMMONABLE_CARD
=
336
--不能通常召唤的怪獸
EFFECT_DISABLE_CHAIN_FIELD
=
337
--連鎖串中場上發動的效果無效(Duel.NegateRelatedChain())
EFFECT_DISCARD_COST_CHANGE
=
338
--反制陷阱捨棄手牌的代價改變(解放之阿里阿德涅)
EFFECT_HAND_SYNCHRO
=
339
--用手牌的怪獸當作同步素材
(用於雙重協調判斷)
EFFECT_HAND_SYNCHRO
=
339
--用手牌的怪獸當作同步素材
--下面是诱发效果的诱发事件、时点 (如果是TYPE_SINGLE则自己发生以下事件后触发,如果TYPE_FIELD则场上任何卡发生以下事件都触发)
EVENT_STARTUP
=
1000
--游戏开始时
...
...
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