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
eefb6cfa
Commit
eefb6cfa
authored
May 20, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/master' into master
parents
ed2712c6
953be8ae
Changes
33
Hide whitespace changes
Inline
Side-by-side
Showing
33 changed files
with
70 additions
and
99 deletions
+70
-99
c15335853.lua
c15335853.lua
+1
-4
c16404809.lua
c16404809.lua
+1
-1
c16943770.lua
c16943770.lua
+1
-4
c17228908.lua
c17228908.lua
+2
-1
c1942635.lua
c1942635.lua
+1
-4
c20368763.lua
c20368763.lua
+1
-4
c22110647.lua
c22110647.lua
+1
-4
c26118970.lua
c26118970.lua
+2
-0
c2819435.lua
c2819435.lua
+4
-6
c30811116.lua
c30811116.lua
+1
-4
c31480215.lua
c31480215.lua
+1
-4
c31533704.lua
c31533704.lua
+1
-4
c32828635.lua
c32828635.lua
+1
-1
c38273745.lua
c38273745.lua
+9
-3
c41329458.lua
c41329458.lua
+1
-4
c41790641.lua
c41790641.lua
+10
-9
c44026393.lua
c44026393.lua
+1
-4
c4417407.lua
c4417407.lua
+1
-4
c55501446.lua
c55501446.lua
+1
-1
c57769391.lua
c57769391.lua
+1
-1
c66200210.lua
c66200210.lua
+1
-4
c67489919.lua
c67489919.lua
+1
-4
c67922702.lua
c67922702.lua
+1
-4
c72291078.lua
c72291078.lua
+1
-4
c76902476.lua
c76902476.lua
+1
-4
c87639778.lua
c87639778.lua
+5
-0
c89907227.lua
c89907227.lua
+1
-1
c91584698.lua
c91584698.lua
+1
-1
c91706817.lua
c91706817.lua
+5
-1
c94973028.lua
c94973028.lua
+1
-4
c95816395.lua
c95816395.lua
+1
-1
c97697678.lua
c97697678.lua
+1
-1
utility.lua
utility.lua
+8
-3
No files found.
c15335853.lua
View file @
eefb6cfa
...
...
@@ -14,7 +14,7 @@ function c15335853.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCondition
(
c15335853
.
ind
con
)
e2
:
SetCondition
(
aux
.
tkf
con
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
...
...
@@ -47,9 +47,6 @@ function c15335853.lvval(e,c)
local
tp
=
c
:
GetControler
()
return
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
31533705
):
GetSum
(
Card
.
GetLevel
)
end
function
c15335853
.
indcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
function
c15335853
.
rmcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsType
,
1
,
nil
,
TYPE_TOKEN
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
Card
.
IsType
,
1
,
1
,
nil
,
TYPE_TOKEN
)
...
...
c16404809.lua
View file @
eefb6cfa
...
...
@@ -9,7 +9,7 @@ function c16404809.initial_effect(c)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
16404809
,
0
))
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_DECKDES
)
e2
:
SetCategory
(
CATEGORY_
SEARCH
+
CATEGORY_
TOHAND
+
CATEGORY_DECKDES
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
...
...
c16943770.lua
View file @
eefb6cfa
...
...
@@ -14,7 +14,7 @@ function c16943770.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCondition
(
c16943770
.
ind
con
)
e2
:
SetCondition
(
aux
.
tkf
con
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
...
...
@@ -36,9 +36,6 @@ function c16943770.lvval(e,c)
local
tp
=
c
:
GetControler
()
return
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
31533705
):
GetSum
(
Card
.
GetLevel
)
end
function
c16943770
.
indcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
function
c16943770
.
cfilter
(
c
)
return
c
:
IsSetCard
(
0x101b
)
and
not
c
:
IsCode
(
16943770
)
and
c
:
IsAbleToRemoveAsCost
()
end
...
...
c17228908.lua
View file @
eefb6cfa
...
...
@@ -81,7 +81,8 @@ function c17228908.tkop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c17228908
.
tgcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
0
,
LOCATION_ONFIELD
,
1
,
nil
,
TYPE_TOKEN
)
local
tp
=
e
:
GetHandlerPlayer
()
return
aux
.
tkfcon
(
e
,
1
-
tp
)
end
function
c17228908
.
tglimit
(
e
,
c
)
return
not
c
:
IsType
(
TYPE_TOKEN
)
...
...
c1942635.lua
View file @
eefb6cfa
...
...
@@ -11,7 +11,7 @@ function c1942635.initial_effect(c)
e2
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e2
:
SetCondition
(
c1942635
.
atk
con
)
e2
:
SetCondition
(
aux
.
tkf
con
)
e2
:
SetValue
(
c1942635
.
atkval
)
c
:
RegisterEffect
(
e2
)
--draw
...
...
@@ -27,9 +27,6 @@ function c1942635.initial_effect(c)
e3
:
SetOperation
(
c1942635
.
drop
)
c
:
RegisterEffect
(
e3
)
end
function
c1942635
.
atkcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
function
c1942635
.
atkval
(
e
,
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x134
)
and
c
:
IsType
(
TYPE_EFFECT
)
end
...
...
c20368763.lua
View file @
eefb6cfa
...
...
@@ -14,7 +14,7 @@ function c20368763.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCondition
(
c20368763
.
ind
con
)
e2
:
SetCondition
(
aux
.
tkf
con
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
...
...
@@ -49,9 +49,6 @@ function c20368763.lvval(e,c)
local
tp
=
c
:
GetControler
()
return
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
31533705
):
GetSum
(
Card
.
GetLevel
)
end
function
c20368763
.
indcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
function
c20368763
.
cfilter
(
c
,
tp
)
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsPreviousControler
(
tp
)
and
c
:
IsReason
(
REASON_COST
)
end
...
...
c22110647.lua
View file @
eefb6cfa
...
...
@@ -9,7 +9,7 @@ function c22110647.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCondition
(
c22110647
.
ind
con
)
e2
:
SetCondition
(
aux
.
tkf
con
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
...
...
@@ -39,9 +39,6 @@ function c22110647.initial_effect(c)
e5
:
SetOperation
(
c22110647
.
desop
)
c
:
RegisterEffect
(
e5
)
end
function
c22110647
.
indcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
function
c22110647
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
...
...
c26118970.lua
View file @
eefb6cfa
...
...
@@ -26,8 +26,10 @@ function c26118970.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
)
local
rc
=
e
:
GetHandler
():
GetReasonCard
()
if
rc
and
(
rc
:
IsCode
(
73580471
)
or
(
rc
:
IsRace
(
RACE_PLANT
)
and
rc
:
IsType
(
TYPE_SYNCHRO
)))
then
e
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
e
:
SetLabel
(
1
)
else
e
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e
:
SetLabel
(
0
)
end
end
...
...
c2819435.lua
View file @
eefb6cfa
...
...
@@ -27,9 +27,10 @@ function c2819435.initial_effect(c)
e6
:
SetDescription
(
aux
.
Stringid
(
2819435
,
1
))
e6
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOKEN
)
e6
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e6
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e6
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_ACTIVATE_CONDITION
)
e6
:
SetCode
(
EVENT_CHAINING
)
e6
:
SetRange
(
LOCATION_FZONE
)
e6
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e6
:
SetCondition
(
c2819435
.
spcon
)
e6
:
SetCost
(
c2819435
.
cost
)
e6
:
SetTarget
(
c2819435
.
sptg
)
...
...
@@ -81,14 +82,11 @@ function c2819435.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c2819435
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
rp
==
1
-
tp
return
rp
==
1
-
tp
and
not
aux
.
tkfcon
(
e
,
tp
)
end
function
c2819435
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
2819436
,
0xfa
,
TYPES_TOKEN_MONSTER
,
2000
,
2000
,
6
,
RACE_WYRM
,
ATTRIBUTE_WATER
)
and
e
:
GetHandler
():
GetFlagEffect
(
2819435
)
==
0
and
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
e
:
GetHandler
():
RegisterFlagEffect
(
2819435
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_CHAIN
,
0
,
1
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
2819436
,
0xfa
,
TYPES_TOKEN_MONSTER
,
2000
,
2000
,
6
,
RACE_WYRM
,
ATTRIBUTE_WATER
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
...
...
c30811116.lua
View file @
eefb6cfa
...
...
@@ -14,7 +14,7 @@ function c30811116.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCondition
(
c30811116
.
ind
con
)
e2
:
SetCondition
(
aux
.
tkf
con
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
...
...
@@ -47,9 +47,6 @@ function c30811116.lvval(e,c)
local
tp
=
c
:
GetControler
()
return
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
31533705
):
GetSum
(
Card
.
GetLevel
)
end
function
c30811116
.
indcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
function
c30811116
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
end
...
...
c31480215.lua
View file @
eefb6cfa
...
...
@@ -6,7 +6,7 @@ function c31480215.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e1
:
SetCondition
(
c31480215
.
ind
con
)
e1
:
SetCondition
(
aux
.
tkf
con
)
e1
:
SetValue
(
1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
...
...
@@ -33,9 +33,6 @@ function c31480215.initial_effect(c)
e4
:
SetOperation
(
c31480215
.
lvop
)
c
:
RegisterEffect
(
e4
)
end
function
c31480215
.
indcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
function
c31480215
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
)
and
r
==
REASON_SYNCHRO
and
e
:
GetHandler
():
GetReasonCard
():
IsRace
(
RACE_MACHINE
)
...
...
c31533704.lua
View file @
eefb6cfa
...
...
@@ -14,7 +14,7 @@ function c31533704.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCondition
(
c31533704
.
ind
con
)
e2
:
SetCondition
(
aux
.
tkf
con
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
...
...
@@ -48,9 +48,6 @@ function c31533704.lvval(e,c)
local
tp
=
c
:
GetControler
()
return
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
31533705
):
GetSum
(
Card
.
GetLevel
)
end
function
c31533704
.
indcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
function
c31533704
.
spfilter
(
c
,
tp
)
return
c
:
IsControler
(
tp
)
and
c
:
IsType
(
TYPE_TOKEN
)
end
...
...
c32828635.lua
View file @
eefb6cfa
...
...
@@ -4,7 +4,7 @@ function c32828635.initial_effect(c)
--salvage
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
32828635
,
0
))
e2
:
SetCategory
(
CATEGORY_TOHAND
)
e2
:
SetCategory
(
CATEGORY_
SEARCH
+
CATEGORY_
TOHAND
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetCondition
(
aux
.
exccon
)
...
...
c38273745.lua
View file @
eefb6cfa
...
...
@@ -26,15 +26,21 @@ function c38273745.tg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsAbleToRemove
()
end
end
local
b1
=
Duel
.
IsExistingTarget
(
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
local
b2
=
Duel
.
GetFieldGroupCount
(
1
-
tp
,
LOCATION_HAND
,
0
)
~=
0
local
b3
=
Duel
.
IsExistingTarget
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
local
c
=
e
:
GetHandler
()
local
flag
=
c
:
GetFlagEffectLabel
(
38273745
)
or
0
local
b1
=
(
flag
&
2
==
0
)
and
Duel
.
IsExistingTarget
(
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
local
b2
=
(
flag
&
4
==
0
)
and
Duel
.
GetFieldGroupCount
(
1
-
tp
,
LOCATION_HAND
,
0
)
~=
0
local
b3
=
(
flag
&
8
==
0
)
and
Duel
.
IsExistingTarget
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
if
chk
==
0
then
return
b1
or
b2
or
b3
end
local
op
=
aux
.
SelectFromOptions
(
tp
,
{
b1
,
aux
.
Stringid
(
38273745
,
1
)},
{
b2
,
aux
.
Stringid
(
38273745
,
2
)},
{
b3
,
aux
.
Stringid
(
38273745
,
3
)})
e
:
SetLabel
(
op
)
if
flag
==
0
then
c
:
RegisterFlagEffect
(
38273745
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
end
c
:
SetFlagEffectLabel
(
38273745
,
flag
|
(
1
<<
op
))
if
op
==
1
then
e
:
SetCategory
(
CATEGORY_TOHAND
)
e
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
...
...
c41329458.lua
View file @
eefb6cfa
...
...
@@ -17,7 +17,7 @@ function c41329458.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCondition
(
c41329458
.
ind
con
)
e2
:
SetCondition
(
aux
.
tkf
con
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
...
...
@@ -35,9 +35,6 @@ function c41329458.initial_effect(c)
e4
:
SetOperation
(
c41329458
.
spop2
)
c
:
RegisterEffect
(
e4
)
end
function
c41329458
.
indcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
function
c41329458
.
rfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0x101b
)
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
...
...
c41790641.lua
View file @
eefb6cfa
...
...
@@ -57,6 +57,16 @@ function s.splim(e,c)
return
c
:
GetRace
()
~=
RACE_THUNDER
end
function
s
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sc
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
:
GetCode
()):
GetFirst
()
if
sc
and
Duel
.
SpecialSummon
(
sc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
and
aux
.
nzatk
(
sc
)
then
Duel
.
BreakEffect
()
local
lp
=
Duel
.
GetLP
(
tp
)
Duel
.
SetLP
(
tp
,
lp
-
sc
:
GetAttack
())
end
end
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
@@ -66,13 +76,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetTarget
(
s
.
splim
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
not
tc
:
IsRelateToEffect
(
e
)
or
tc
:
IsFacedown
()
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sc
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
:
GetCode
()):
GetFirst
()
if
sc
and
Duel
.
SpecialSummon
(
sc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
and
aux
.
nzatk
(
sc
)
then
Duel
.
BreakEffect
()
local
lp
=
Duel
.
GetLP
(
tp
)
Duel
.
SetLP
(
tp
,
lp
-
sc
:
GetAttack
())
end
end
c44026393.lua
View file @
eefb6cfa
...
...
@@ -14,7 +14,7 @@ function c44026393.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCondition
(
c44026393
.
ind
con
)
e2
:
SetCondition
(
aux
.
tkf
con
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
...
...
@@ -35,9 +35,6 @@ function c44026393.lvval(e,c)
local
tp
=
c
:
GetControler
()
return
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
31533705
):
GetSum
(
Card
.
GetLevel
)
end
function
c44026393
.
indcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
function
c44026393
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
...
...
c4417407.lua
View file @
eefb6cfa
...
...
@@ -14,7 +14,7 @@ function c4417407.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCondition
(
c4417407
.
ind
con
)
e2
:
SetCondition
(
aux
.
tkf
con
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
...
...
@@ -48,9 +48,6 @@ function c4417407.lvval(e,c)
local
tp
=
c
:
GetControler
()
return
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
31533705
):
GetSum
(
Card
.
GetLevel
)
end
function
c4417407
.
indcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
function
c4417407
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
...
...
c55501446.lua
View file @
eefb6cfa
...
...
@@ -23,7 +23,7 @@ function c55501446.spcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_HAND
)
end
function
c55501446
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsRelateToEffect
(
e
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
...
...
c57769391.lua
View file @
eefb6cfa
...
...
@@ -3,7 +3,7 @@ function c57769391.initial_effect(c)
--mill
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
57769391
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_DECKDES
)
e1
:
SetCategory
(
CATEGORY_
SEARCH
+
CATEGORY_
TOHAND
+
CATEGORY_DECKDES
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
,
57769391
)
...
...
c66200210.lua
View file @
eefb6cfa
...
...
@@ -14,7 +14,7 @@ function c66200210.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCondition
(
c66200210
.
ind
con
)
e2
:
SetCondition
(
aux
.
tkf
con
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
...
...
@@ -46,9 +46,6 @@ function c66200210.lvval(e,c)
local
tp
=
c
:
GetControler
()
return
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
31533705
):
GetSum
(
Card
.
GetLevel
)
end
function
c66200210
.
indcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
function
c66200210
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
2
,
0
,
0
)
...
...
c67489919.lua
View file @
eefb6cfa
...
...
@@ -6,7 +6,7 @@ function c67489919.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e1
:
SetCondition
(
c67489919
.
ind
con
)
e1
:
SetCondition
(
aux
.
tkf
con
)
e1
:
SetValue
(
1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
...
...
@@ -38,9 +38,6 @@ function c67489919.initial_effect(c)
e6
:
SetValue
(
LOCATION_MZONE
+
LOCATION_HAND
)
c
:
RegisterEffect
(
e6
)
end
function
c67489919
.
indcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
function
c67489919
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
0
and
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
>
0
...
...
c67922702.lua
View file @
eefb6cfa
...
...
@@ -14,7 +14,7 @@ function c67922702.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCondition
(
c67922702
.
ind
con
)
e2
:
SetCondition
(
aux
.
tkf
con
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
...
...
@@ -47,9 +47,6 @@ function c67922702.lvval(e,c)
local
tp
=
c
:
GetControler
()
return
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
31533705
):
GetSum
(
Card
.
GetLevel
)
end
function
c67922702
.
indcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
function
c67922702
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
...
...
c72291078.lua
View file @
eefb6cfa
...
...
@@ -6,7 +6,7 @@ function c72291078.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e1
:
SetCondition
(
c72291078
.
ind
con
)
e1
:
SetCondition
(
aux
.
tkf
con
)
e1
:
SetValue
(
1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
...
...
@@ -34,9 +34,6 @@ function c72291078.initial_effect(c)
e4
:
SetOperation
(
c72291078
.
spop
)
c
:
RegisterEffect
(
e4
)
end
function
c72291078
.
indcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
function
c72291078
.
filter
(
c
)
return
c
:
IsSetCard
(
0x101b
)
and
c
:
IsSummonable
(
true
,
nil
)
end
...
...
c76902476.lua
View file @
eefb6cfa
...
...
@@ -14,7 +14,7 @@ function c76902476.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCondition
(
c76902476
.
ind
con
)
e2
:
SetCondition
(
aux
.
tkf
con
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
...
...
@@ -35,9 +35,6 @@ function c76902476.lvval(e,c)
local
tp
=
c
:
GetControler
()
return
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
31533705
):
GetSum
(
Card
.
GetLevel
)
end
function
c76902476
.
indcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
function
c76902476
.
indtg
(
e
,
c
)
return
c
:
IsCode
(
31533705
)
end
...
...
c87639778.lua
View file @
eefb6cfa
...
...
@@ -5,6 +5,7 @@ function c87639778.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCondition
(
c87639778
.
condition
)
e1
:
SetTarget
(
c87639778
.
target
)
e1
:
SetOperation
(
c87639778
.
activate
)
c
:
RegisterEffect
(
e1
)
--act in hand
...
...
@@ -32,6 +33,9 @@ end
function
c87639778
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c87639778
.
disfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c87639778
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
87639778
)
==
0
end
end
function
c87639778
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
...
...
@@ -40,6 +44,7 @@ function c87639778.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetOperation
(
c87639778
.
disop
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterFlagEffect
(
tp
,
87639778
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
c87639778
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
rp
==
1
-
tp
...
...
c89907227.lua
View file @
eefb6cfa
...
...
@@ -56,7 +56,7 @@ function c89907227.tkop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c89907227
.
tkcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
~=
tp
and
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
return
Duel
.
IsTurnPlayer
(
1
-
tp
)
and
not
aux
.
tkfcon
(
e
,
tp
)
end
function
c89907227
.
tkop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
...
...
c91584698.lua
View file @
eefb6cfa
...
...
@@ -13,7 +13,7 @@ function c91584698.initial_effect(c)
c
:
RegisterEffect
(
e2
)
--tohand
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_TOHAND
)
e3
:
SetCategory
(
CATEGORY_
SEARCH
+
CATEGORY_
TOHAND
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCost
(
c91584698
.
thcost
)
...
...
c91706817.lua
View file @
eefb6cfa
--青い涙の天使
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
--same effect send this card to grave and summon another card check
local
e0
=
aux
.
AddThisCardInGraveAlreadyCheck
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
...
...
@@ -20,6 +22,7 @@ function s.initial_effect(c)
e2
:
SetCode
(
EVENT_DAMAGE
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCountLimit
(
1
,
id
)
e2
:
SetLabelObject
(
e0
)
e2
:
SetCondition
(
s
.
setcon
)
e2
:
SetCost
(
aux
.
bfgcost
)
e2
:
SetTarget
(
s
.
settg
)
...
...
@@ -67,7 +70,8 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
setcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
local
se
=
e
:
GetLabelObject
():
GetLabelObject
()
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
(
se
==
nil
or
e
:
GetHandler
():
GetReasonEffect
()
~=
se
)
end
function
s
.
setfilter
(
c
)
return
c
:
GetType
()
==
TYPE_TRAP
and
c
:
IsSSetable
()
...
...
c94973028.lua
View file @
eefb6cfa
...
...
@@ -14,7 +14,7 @@ function c94973028.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCondition
(
c94973028
.
ind
con
)
e2
:
SetCondition
(
aux
.
tkf
con
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
...
...
@@ -47,9 +47,6 @@ function c94973028.lvval(e,c)
local
tp
=
c
:
GetControler
()
return
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
31533705
):
GetSum
(
Card
.
GetLevel
)
end
function
c94973028
.
indcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
function
c94973028
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x101b
)
end
...
...
c95816395.lua
View file @
eefb6cfa
...
...
@@ -16,7 +16,7 @@ function c95816395.regop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
,
95816395
)
e1
:
SetRange
(
LOCATION_GRAVE
)
e1
:
SetTarget
(
c95816395
.
thtg
)
e1
:
SetOperation
(
c95816395
.
thop
)
...
...
c97697678.lua
View file @
eefb6cfa
...
...
@@ -2,7 +2,7 @@
function
c97697678
.
initial_effect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
97697678
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetCategory
(
CATEGORY_
SEARCH
+
CATEGORY_
TOHAND
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_PREDRAW
)
e1
:
SetRange
(
LOCATION_MZONE
)
...
...
utility.lua
View file @
eefb6cfa
...
...
@@ -147,7 +147,7 @@ end
---Return value starts from 1, different from Duel.SelectOption
---@param tp integer
---@param ... table {condition, option[, value]}
---@return integer
|nil
---@return integer
function
Auxiliary
.
SelectFromOptions
(
tp
,
...
)
local
options
=
{
...
}
local
ops
=
{}
...
...
@@ -729,6 +729,11 @@ function Auxiliary.MaterialReasonCardReg(e,tp,eg,ep,ev,re,r,rp)
local
te
=
e
:
GetLabelObject
()
c
:
GetReasonCard
():
CreateEffectRelation
(
te
)
end
--the player tp has token on the field
function
Auxiliary
.
tkfcon
(
e
,
tp
)
if
tp
==
nil
and
e
~=
nil
then
tp
=
e
:
GetHandlerPlayer
()
end
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
--effects inflicting damage to tp
function
Auxiliary
.
damcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DAMAGE
)
...
...
@@ -1105,7 +1110,7 @@ end
---@param min? integer
---@param max? integer
---@param ... any
---@return Group
|nil
---@return Group
function
Group
.
SelectSubGroup
(
g
,
tp
,
f
,
cancelable
,
min
,
max
,
...
)
Auxiliary
.
SubGroupCaptured
=
Group
.
CreateGroup
()
min
=
min
or
1
...
...
@@ -1203,7 +1208,7 @@ end
---@param cancelable? boolean
---@param f? function
---@param ... any
---@return Group
|nil
---@return Group
function
Group
.
SelectSubGroupEach
(
g
,
tp
,
checks
,
cancelable
,
f
,
...
)
if
cancelable
==
nil
then
cancelable
=
false
end
if
f
==
nil
then
f
=
Auxiliary
.
TRUE
end
...
...
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