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
f3c44a6b
Commit
f3c44a6b
authored
Dec 18, 2017
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
c7bd0810
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
7 deletions
+16
-7
c15854426.lua
c15854426.lua
+1
-1
c50078320.lua
c50078320.lua
+10
-2
c52860176.lua
c52860176.lua
+4
-4
c74003290.lua
c74003290.lua
+1
-0
No files found.
c15854426.lua
View file @
f3c44a6b
...
@@ -8,7 +8,7 @@ function c15854426.initial_effect(c)
...
@@ -8,7 +8,7 @@ function c15854426.initial_effect(c)
--special summon
--special summon
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
15854426
,
0
))
e2
:
SetDescription
(
aux
.
Stringid
(
15854426
,
0
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetRange
(
LOCATION_FZONE
)
...
...
c50078320.lua
View file @
f3c44a6b
...
@@ -32,12 +32,20 @@ function c50078320.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -32,12 +32,20 @@ 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
code
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_PARAM
)
local
ac
=
0
local
ac
=
0
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CODE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CODE
)
if
bit
.
band
(
cv
,
ANNOUNCE_CARD
)
~=
0
then
if
bit
.
band
(
cv
,
ANNOUNCE_CARD
)
~=
0
then
ac
=
Duel
.
AnnounceCard
(
tp
,
cv
)
--c:IsType(cv) and not c:IsCode(code)
ac
=
Duel
.
AnnounceCardFilter
(
tp
,
cv
,
OPCODE_ISTYPE
,
code
,
OPCODE_ISCODE
,
OPCODE_NOT
,
OPCODE_AND
)
else
else
ac
=
Duel
.
AnnounceCardFilter
(
tp
,
table.unpack
(
re
:
GetHandler
().
announce_filter
))
local
afilter
=
{
table.unpack
(
re
:
GetHandler
().
announce_filter
)}
--and not c:IsCode(code)
table.insert
(
afilter
,
code
)
table.insert
(
afilter
,
OPCODE_ISCODE
)
table.insert
(
afilter
,
OPCODE_NOT
)
table.insert
(
afilter
,
OPCODE_AND
)
ac
=
Duel
.
AnnounceCardFilter
(
tp
,
table.unpack
(
afilter
))
end
end
Duel
.
ChangeTargetParam
(
ev
,
ac
)
Duel
.
ChangeTargetParam
(
ev
,
ac
)
end
end
...
...
c52860176.lua
View file @
f3c44a6b
...
@@ -16,12 +16,12 @@ function c52860176.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -16,12 +16,12 @@ function c52860176.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
end
end
function
c52860176
.
filter
(
c
)
function
c52860176
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsLevelBelow
(
3
)
and
c
:
IsControlerCanBeChanged
()
return
c
:
IsFaceup
()
and
c
:
IsLevelBelow
(
3
)
and
c
:
IsControlerCanBeChanged
(
true
)
end
end
function
c52860176
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c52860176
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
local
g
=
Duel
.
GetMatchingGroup
(
c52860176
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c52860176
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
g
:
GetCount
()
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
1
-
tp
,
LOCATION_REASON_CONTROL
)
>=-
1
+
g
:
GetCount
(
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_CONTROL
,
nil
,
1
,
1
-
tp
,
LOCATION_MZONE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_CONTROL
,
g
,
g
:
GetCount
(),
0
,
0
)
end
end
function
c52860176
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c52860176
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c52860176
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c52860176
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
...
...
c74003290.lua
View file @
f3c44a6b
...
@@ -50,6 +50,7 @@ function c74003290.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -50,6 +50,7 @@ function c74003290.activate(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetValue
(
RESET_TURN_SET
)
e2
:
SetValue
(
RESET_TURN_SET
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
Duel
.
AdjustInstantly
(
tc
)
local
e3
=
e1
:
Clone
()
local
e3
=
e1
:
Clone
()
e3
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e3
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e3
:
SetValue
(
tc
:
GetBaseAttack
()
/
2
)
e3
:
SetValue
(
tc
:
GetBaseAttack
()
/
2
)
...
...
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