Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
3
Merge Requests
3
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
MyCard
ygopro-scripts-888
Commits
31f8f575
Commit
31f8f575
authored
Sep 13, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/MZMI' into master
parents
f0e3b600
446a5c85
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
c35697544.lua
c35697544.lua
+10
-11
No files found.
c35697544.lua
View file @
31f8f575
...
@@ -20,7 +20,7 @@ function s.initial_effect(c)
...
@@ -20,7 +20,7 @@ function s.initial_effect(c)
e2
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e2
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCountLimit
(
1
,
id
+
EFFECT_COUNT_CODE_OATH
)
e2
:
SetCountLimit
(
1
,
id
+
EFFECT_COUNT_CODE_OATH
)
e2
:
SetCondition
(
s
.
conditio2
)
e2
:
SetCondition
(
s
.
conditio
n
2
)
e2
:
SetTarget
(
s
.
target2
)
e2
:
SetTarget
(
s
.
target2
)
e2
:
SetOperation
(
s
.
activate2
)
e2
:
SetOperation
(
s
.
activate2
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
...
@@ -31,7 +31,7 @@ function s.initial_effect(c)
...
@@ -31,7 +31,7 @@ function s.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e3
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e3
:
SetCode
(
EVENT_CHAINING
)
e3
:
SetCode
(
EVENT_CHAINING
)
e3
:
SetCountLimit
(
1
,
id
+
EFFECT_COUNT_CODE_OATH
)
e3
:
SetCountLimit
(
1
,
id
+
EFFECT_COUNT_CODE_OATH
)
e3
:
SetCondition
(
s
.
conditio3
)
e3
:
SetCondition
(
s
.
conditio
n
3
)
e3
:
SetTarget
(
s
.
target3
)
e3
:
SetTarget
(
s
.
target3
)
e3
:
SetOperation
(
s
.
activate3
)
e3
:
SetOperation
(
s
.
activate3
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
...
@@ -52,18 +52,17 @@ function s.activate1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -52,18 +52,17 @@ function s.activate1(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
end
end
function
s
.
conditio2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
condition2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
Duel
.
GetAttacker
()
local
a
=
Duel
.
GetBattleMonster
(
tp
)
local
at
=
Duel
.
GetAttackTarget
()
return
a
and
a
:
IsFaceup
()
and
a
:
IsRace
(
RACE_WARRIOR
)
and
a
:
IsAttribute
(
ATTRIBUTE_FIRE
)
return
at
and
((
a
:
IsControler
(
tp
)
and
a
:
IsRace
(
RACE_WARRIOR
)
and
a
:
IsAttribute
(
ATTRIBUTE_FIRE
))
or
(
at
:
IsControler
(
tp
)
and
at
:
IsFaceup
()
and
at
:
IsRace
(
RACE_WARRIOR
)
and
at
:
IsAttribute
(
ATTRIBUTE_FIRE
)))
end
end
function
s
.
target2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
s
.
target2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
end
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
~=
c
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
c
)
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
c
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
end
function
s
.
activate2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
activate2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -73,7 +72,7 @@ end
...
@@ -73,7 +72,7 @@ end
function
s
.
dfilter
(
c
,
tp
)
function
s
.
dfilter
(
c
,
tp
)
return
c
:
IsOnField
()
and
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
(
c
:
IsCode
(
45231177
)
or
aux
.
IsCodeListed
(
c
,
45231177
))
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsOnField
()
and
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
(
c
:
IsCode
(
45231177
)
or
aux
.
IsCodeListed
(
c
,
45231177
))
and
c
:
IsType
(
TYPE_MONSTER
)
end
end
function
s
.
conditio3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
conditio
n
3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
rp
==
tp
or
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
if
rp
==
tp
or
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
return
g
and
g
:
IsExists
(
s
.
dfilter
,
1
,
nil
,
tp
)
and
Duel
.
IsChainDisablable
(
ev
)
return
g
and
g
:
IsExists
(
s
.
dfilter
,
1
,
nil
,
tp
)
and
Duel
.
IsChainDisablable
(
ev
)
...
...
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