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
87fa54ee
Commit
87fa54ee
authored
Sep 25, 2016
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
7e465bd8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
5 deletions
+14
-5
c18486927.lua
c18486927.lua
+6
-3
c50078320.lua
c50078320.lua
+7
-2
constant.lua
constant.lua
+1
-0
No files found.
c18486927.lua
View file @
87fa54ee
...
@@ -11,7 +11,7 @@ function c18486927.initial_effect(c)
...
@@ -11,7 +11,7 @@ function c18486927.initial_effect(c)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--name change
(temp)
--name change
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
18486927
,
0
))
e3
:
SetDescription
(
aux
.
Stringid
(
18486927
,
0
))
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
...
@@ -61,9 +61,12 @@ function c18486927.actcon(e)
...
@@ -61,9 +61,12 @@ function c18486927.actcon(e)
end
end
function
c18486927
.
nametg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c18486927
.
nametg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
local
ac
=
Duel
.
AnnounceCardFilter
(
tp
,
0x51
,
OPCODE_ISSETCARD
,
18486927
,
OPCODE_ISCODE
,
OPCODE_NOT
,
OPCODE_AND
)
local
code
=
e
:
GetHandler
():
GetCode
()
--c:IsSetCard(0x51) and not c:IsCode(code)
c18486927
.
announce_filter
=
{
0x51
,
OPCODE_ISSETCARD
,
code
,
OPCODE_ISCODE
,
OPCODE_NOT
,
OPCODE_AND
}
local
ac
=
Duel
.
AnnounceCardFilter
(
tp
,
table.unpack
(
c18486927
.
announce_filter
))
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD
_FILTER
)
end
end
function
c18486927
.
nameop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c18486927
.
nameop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ac
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PARAM
)
local
ac
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PARAM
)
...
...
c50078320.lua
View file @
87fa54ee
...
@@ -24,7 +24,7 @@ function c50078320.initial_effect(c)
...
@@ -24,7 +24,7 @@ function c50078320.initial_effect(c)
end
end
function
c50078320
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c50078320
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ex
,
cg
,
ct
,
cp
,
cv
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_ANNOUNCE
)
local
ex
,
cg
,
ct
,
cp
,
cv
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_ANNOUNCE
)
return
rp
~=
tp
and
ex
and
bit
.
band
(
cv
,
ANNOUNCE_CARD
)
~=
0
return
rp
~=
tp
and
ex
and
bit
.
band
(
cv
,
ANNOUNCE_CARD
+
ANNOUNCE_CARD_FILTER
)
~=
0
end
end
function
c50078320
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c50078320
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
...
@@ -32,8 +32,13 @@ function c50078320.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -32,8 +32,13 @@ function c50078320.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c50078320
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c50078320
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ex
,
cg
,
ct
,
cp
,
cv
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_ANNOUNCE
)
local
ex
,
cg
,
ct
,
cp
,
cv
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_ANNOUNCE
)
local
ac
=
0
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
564
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
564
)
local
ac
=
Duel
.
AnnounceCard
(
tp
,
cv
)
if
bit
.
band
(
cv
,
ANNOUNCE_CARD
)
~=
0
then
ac
=
Duel
.
AnnounceCard
(
tp
,
cv
)
else
ac
=
Duel
.
AnnounceCardFilter
(
tp
,
table.unpack
(
re
:
GetHandler
().
announce_filter
))
end
Duel
.
ChangeTargetParam
(
ev
,
ac
)
Duel
.
ChangeTargetParam
(
ev
,
ac
)
end
end
function
c50078320
.
desfilter
(
c
)
function
c50078320
.
desfilter
(
c
)
...
...
constant.lua
View file @
87fa54ee
...
@@ -728,6 +728,7 @@ ACTIVITY_BATTLE_PHASE =6 -- not available in custom counter
...
@@ -728,6 +728,7 @@ ACTIVITY_BATTLE_PHASE =6 -- not available in custom counter
ACTIVITY_CHAIN
=
7
-- only available in custom counter
ACTIVITY_CHAIN
=
7
-- only available in custom counter
--announce type(宣言类型,CATEGORY_ANNOUNCE的OperationInfo的target_param)
--announce type(宣言类型,CATEGORY_ANNOUNCE的OperationInfo的target_param)
ANNOUNCE_CARD
=
0x7
--宣言卡片
ANNOUNCE_CARD
=
0x7
--宣言卡片
ANNOUNCE_CARD_FILTER
=
0x8
--
--cards with double names
--cards with double names
CARD_MARINE_DOLPHIN
=
78734254
--海洋海豚
CARD_MARINE_DOLPHIN
=
78734254
--海洋海豚
CARD_TWINKLE_MOSS
=
13857930
--光輝苔蘚
CARD_TWINKLE_MOSS
=
13857930
--光輝苔蘚
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