Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-THC-cards
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
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
HiiragiGuardians
ygopro-THC-cards
Commits
f6911e7c
Commit
f6911e7c
authored
May 27, 2024
by
GuGu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c27038.lua 对象问题
parent
062481f4
Pipeline
#27323
passed with stage
in 26 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
script/c27038.lua
script/c27038.lua
+8
-6
No files found.
script/c27038.lua
View file @
f6911e7c
...
@@ -76,7 +76,7 @@ function c27038.cofilter(c)
...
@@ -76,7 +76,7 @@ function c27038.cofilter(c)
return
c
:
GetCode
()
==
27039
and
c
:
IsFaceup
()
and
not
c
:
IsDisabled
()
and
not
c
:
IsStatus
(
STATUS_CHAINING
)
return
c
:
GetCode
()
==
27039
and
c
:
IsFaceup
()
and
not
c
:
IsDisabled
()
and
not
c
:
IsStatus
(
STATUS_CHAINING
)
end
end
function
c27038
.
cfilter
(
c
)
function
c27038
.
cfilter
(
c
)
return
c
:
IsSetCard
(
0x242
)
return
c
:
IsSetCard
(
0x242
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
end
function
c27038
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c27038
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c27038
.
cofilter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
nil
)
or
Duel
.
CheckReleaseGroupEx
(
tp
,
c27038
.
cfilter
,
1
,
REASON_COST
,
true
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c27038
.
cofilter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
nil
)
or
Duel
.
CheckReleaseGroupEx
(
tp
,
c27038
.
cfilter
,
1
,
REASON_COST
,
true
,
nil
)
end
...
@@ -85,10 +85,11 @@ function c27038.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -85,10 +85,11 @@ function c27038.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Release
(
g
,
REASON_COST
)
Duel
.
Release
(
g
,
REASON_COST
)
end
end
function
c27038
.
dfilter
(
c
)
function
c27038
.
dfilter
(
c
)
return
c
:
Is
Location
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x242
)
return
c
:
Is
Faceup
()
and
c
:
IsSetCard
(
0x242
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
end
function
c27038
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c27038
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
end
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
end
if
ep
==
tp
then
return
end
local
tg
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
local
tg
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
return
tg
and
tg
:
IsExists
(
c27038
.
dfilter
,
1
,
nil
)
and
Duel
.
IsChainDisablable
(
ev
)
return
tg
and
tg
:
IsExists
(
c27038
.
dfilter
,
1
,
nil
)
and
Duel
.
IsChainDisablable
(
ev
)
end
end
...
@@ -103,7 +104,7 @@ function c27038.dmop1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -103,7 +104,7 @@ function c27038.dmop1(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c27038
.
check
(
c
,
tp
)
function
c27038
.
check
(
c
,
tp
)
return
c
and
c
:
Is
Controler
(
tp
)
and
c
:
IsSetCard
(
0x242
)
return
c
and
c
:
Is
SetCard
(
0x242
)
and
c
:
IsType
(
TYPE_MONSTER
)
-- and c:IsControler(tp
)
end
end
function
c27038
.
dmtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c27038
.
dmtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
(
c27038
.
check
(
Duel
.
GetAttacker
(),
tp
)
or
c27038
.
check
(
Duel
.
GetAttackTarget
(),
tp
))
end
if
chk
==
0
then
return
(
c27038
.
check
(
Duel
.
GetAttacker
(),
tp
)
or
c27038
.
check
(
Duel
.
GetAttackTarget
(),
tp
))
end
...
@@ -121,8 +122,9 @@ function c27038.dmop3(e,tp,eg,ep,ev,re,r,rp)
...
@@ -121,8 +122,9 @@ function c27038.dmop3(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c27038
.
dmcon4
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c27038
.
dmcon4
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
end
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
end
if
ep
==
tp
then
return
end
local
tg
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
local
tg
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
return
tg
and
tg
:
IsExists
(
c27038
.
dfilter
,
1
,
nil
)
and
Duel
.
IsChainDisablable
(
ev
)
return
tg
and
tg
:
IsExists
(
c27038
.
dfilter
,
1
,
nil
)
and
(
Duel
.
GetTurnCount
()
~=
e
:
GetHandler
():
GetTurnID
()
or
e
:
GetHandler
():
IsReason
(
REASON_RETURN
))
and
(
Duel
.
GetTurnCount
()
~=
e
:
GetHandler
():
GetTurnID
()
or
e
:
GetHandler
():
IsReason
(
REASON_RETURN
))
end
end
function
c27038
.
dmtg4
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c27038
.
dmtg4
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
@@ -145,11 +147,11 @@ function c27038.dmop6(e,tp,eg,ep,ev,re,r,rp)
...
@@ -145,11 +147,11 @@ function c27038.dmop6(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c27038
.
bdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c27038
.
bdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ec
=
eg
:
GetFirst
()
local
ec
=
eg
:
GetFirst
()
return
ec
:
IsFaceup
()
and
ec
:
Is
Controler
(
tp
)
and
ec
:
IsSetCard
(
0x242
)
return
ec
:
IsFaceup
()
and
ec
:
Is
SetCard
(
0x242
)
and
ec
:
IsType
(
TYPE_MONSTER
)
-- and ec:IsControler(tp
)
end
end
function
c27038
.
bdcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c27038
.
bdcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ec
=
eg
:
GetFirst
()
local
ec
=
eg
:
GetFirst
()
return
ec
:
IsFaceup
()
and
ec
:
Is
Controler
(
tp
)
and
ec
:
IsSetCard
(
0x242
)
return
ec
:
IsFaceup
()
and
ec
:
Is
SetCard
(
0x242
)
and
ec
:
IsType
(
TYPE_MONSTER
)
-- and ec:IsControler(tp
)
and
(
Duel
.
GetTurnCount
()
~=
e
:
GetHandler
():
GetTurnID
()
or
e
:
GetHandler
():
IsReason
(
REASON_RETURN
))
and
(
Duel
.
GetTurnCount
()
~=
e
:
GetHandler
():
GetTurnID
()
or
e
:
GetHandler
():
IsReason
(
REASON_RETURN
))
end
end
function
c27038
.
bdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c27038
.
bdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
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