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
c95bbaad
Commit
c95bbaad
authored
Aug 13, 2024
by
wyykak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gugu pack
Signed-off-by:
wyykak
<
wyy_1414@126.com
>
parent
c0e32b5a
Pipeline
#29190
passed with stage
in 12 seconds
Changes
11
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
141 additions
and
128 deletions
+141
-128
script/c29053.lua
script/c29053.lua
+4
-4
script/c29056.lua
script/c29056.lua
+4
-4
script/c29059.lua
script/c29059.lua
+10
-5
script/c31081.lua
script/c31081.lua
+52
-49
script/c31084.lua
script/c31084.lua
+51
-50
script/c31093.lua
script/c31093.lua
+12
-8
script/c4114226.lua
script/c4114226.lua
+1
-1
script/c431404.lua
script/c431404.lua
+1
-1
script/c50252.lua
script/c50252.lua
+2
-2
script/c74561061.lua
script/c74561061.lua
+2
-2
script/c74563034.lua
script/c74563034.lua
+2
-2
No files found.
script/c29053.lua
View file @
c95bbaad
...
@@ -43,19 +43,19 @@ c29053.DescSetName=0x826
...
@@ -43,19 +43,19 @@ c29053.DescSetName=0x826
--效果条件:其它卡的效果将这张卡加入手卡
--效果条件:其它卡的效果将这张卡加入手卡
function
c29053
.
condition1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c29053
.
condition1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
IsReason
(
REASON_DRAW
)
return
not
e
:
GetHandler
():
IsReason
(
REASON_DRAW
)
and
re
:
GetHandler
()
~=
e
:
GetHandler
()
end
end
--效果对象:这张卡
--效果对象:这张卡
function
c29053
.
target1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c29053
.
target1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
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
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
--发动操作:特殊召唤这张卡
--发动操作:特殊召唤这张卡
function
c29053
.
operation1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c29053
.
operation1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
end
...
...
script/c29056.lua
View file @
c95bbaad
...
@@ -19,7 +19,7 @@ function c29056.initial_effect(c)
...
@@ -19,7 +19,7 @@ function c29056.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetCountLimit
(
1
,
2905
4
)
e2
:
SetCountLimit
(
1
,
2905
7
)
e2
:
SetCondition
(
c29056
.
condition2
)
e2
:
SetCondition
(
c29056
.
condition2
)
e2
:
SetTarget
(
c29056
.
target2
)
e2
:
SetTarget
(
c29056
.
target2
)
e2
:
SetOperation
(
c29056
.
operation2
)
e2
:
SetOperation
(
c29056
.
operation2
)
...
@@ -44,19 +44,19 @@ c29056.DescSetName=0x826
...
@@ -44,19 +44,19 @@ c29056.DescSetName=0x826
--效果条件:其它卡的效果将这张卡加入手卡
--效果条件:其它卡的效果将这张卡加入手卡
function
c29056
.
condition1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c29056
.
condition1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
IsReason
(
REASON_DRAW
)
return
not
e
:
GetHandler
():
IsReason
(
REASON_DRAW
)
and
re
:
GetHandler
()
~=
e
:
GetHandler
()
end
end
--效果对象:这张卡
--效果对象:这张卡
function
c29056
.
target1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c29056
.
target1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
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
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
--发动操作:特殊召唤这张卡
--发动操作:特殊召唤这张卡
function
c29056
.
operation1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c29056
.
operation1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
end
...
...
script/c29059.lua
View file @
c95bbaad
...
@@ -19,15 +19,20 @@ function c29059.initial_effect(c)
...
@@ -19,15 +19,20 @@ function c29059.initial_effect(c)
--Effect Negate
--Effect Negate
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCode
(
EVENT_DRAW
)
e2
:
SetCode
(
EVENT_DRAW
)
e2
:
SetRange
(
LOCATION_MZONE
+
LOCATION_GRAVE
)
e2
:
SetRange
(
LOCATION_MZONE
+
LOCATION_GRAVE
)
e2
:
SetCondition
(
c29059
.
condition2
)
e2
:
SetCondition
(
c29059
.
condition2
)
e2
:
SetOperation
(
c29059
.
operation2
)
e2
:
SetOperation
(
c29059
.
operation2
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c29059
.
sfilter
(
c
)
--
c29059
.
DescSetName
=
0x826
--
function
c29059
.
sfilter
(
c
)
return
c
:
GetAttack
()
<=
1000
and
c
:
IsSetCard
(
0x208
)
return
c
:
GetAttack
()
<=
1000
and
c
:
IsSetCard
(
0x208
)
end
end
--Effect 1
--Effect 1
...
@@ -66,7 +71,7 @@ end
...
@@ -66,7 +71,7 @@ end
--效果条件:这张卡在怪兽区域或墓地存在
--效果条件:这张卡在怪兽区域或墓地存在
function
c29059
.
condition2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c29059
.
condition2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DRAW
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DRAW
and
ep
~=
tp
end
end
--发动操作:对方不能从手卡发动效果
--发动操作:对方不能从手卡发动效果
...
...
script/c31081.lua
View file @
c95bbaad
...
@@ -21,33 +21,36 @@ function c31081.initial_effect(c)
...
@@ -21,33 +21,36 @@ function c31081.initial_effect(c)
e2
:
SetCost
(
c31081
.
cost2
)
e2
:
SetCost
(
c31081
.
cost2
)
e2
:
SetOperation
(
c31081
.
operation2
)
e2
:
SetOperation
(
c31081
.
operation2
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c31081
.
counterfilter
(
c
)
c31081
.
DescSetName
=
0x258
function
c31081
.
counterfilter
(
c
)
return
c
:
IsRace
(
RACE_BEAST
)
return
c
:
IsRace
(
RACE_BEAST
)
end
end
--Monster Effect 1
--Monster Effect 1
function
c31081
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c31081
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
31081
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
31081
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
and
e
:
GetHandler
():
IsAbleToHandAsCost
()
end
and
e
:
GetHandler
():
IsAbleToHandAsCost
()
end
Duel
.
SendtoHand
(
e
:
GetHandler
(),
nil
,
REASON_COST
)
Duel
.
SendtoHand
(
e
:
GetHandler
(),
nil
,
REASON_COST
)
end
end
function
c31081
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
function
c31081
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
c
:
IsRace
(
RACE_BEAST
)
return
c
:
IsRace
(
RACE_BEAST
)
end
end
--效果条件:自己墓地的兽族怪兽或者「0x258」怪兽
--效果条件:自己墓地的兽族怪兽或者「0x258」怪兽
function
c31081
.
filter1b
(
c
,
e
,
tp
)
function
c31081
.
filter1b
(
c
,
e
,
tp
)
return
(
c
:
IsRace
(
RACE_BEAST
)
or
c
:
IsSetCard
(
0x258
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
(
c
:
IsRace
(
RACE_BEAST
)
or
c
:
IsSetCard
(
0x258
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c31081
.
target1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c31081
.
target1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c31081
.
filter1b
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c31081
.
filter1b
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c31081
.
filter1b
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c31081
.
filter1b
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c31081
.
filter1b
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c31081
.
filter1b
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
end
function
c31081
.
operation1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c31081
.
operation1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
...
@@ -61,13 +64,13 @@ function c31081.initial_effect(c)
...
@@ -61,13 +64,13 @@ function c31081.initial_effect(c)
e1
:
SetTarget
(
c31081
.
splimit
)
e1
:
SetTarget
(
c31081
.
splimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
--Monster Effect 2
--Monster Effect 2
function
c31081
.
cost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c31081
.
cost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsAbleToDeckAsCost
()
end
if
chk
==
0
then
return
c
:
IsAbleToDeckAsCost
()
end
Duel
.
SendtoDeck
(
c
,
nil
,
0
,
REASON_COST
)
Duel
.
SendtoDeck
(
c
,
nil
,
0
,
REASON_COST
)
end
end
function
c31081
.
operation2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c31081
.
operation2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
token
=
Duel
.
CreateToken
(
tp
,
200112
)
local
token
=
Duel
.
CreateToken
(
tp
,
200112
)
Duel
.
MoveToField
(
token
,
tp
,
tp
,
LOCATION_FZONE
,
POS_FACEUP
,
true
)
Duel
.
MoveToField
(
token
,
tp
,
tp
,
LOCATION_FZONE
,
POS_FACEUP
,
true
)
...
...
script/c31084.lua
View file @
c95bbaad
...
@@ -21,33 +21,34 @@ function c31084.initial_effect(c)
...
@@ -21,33 +21,34 @@ function c31084.initial_effect(c)
e2
:
SetCost
(
c31084
.
cost2
)
e2
:
SetCost
(
c31084
.
cost2
)
e2
:
SetOperation
(
c31084
.
operation2
)
e2
:
SetOperation
(
c31084
.
operation2
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c31084
.
counterfilter
(
c
)
c31084
.
DescSetName
=
0x258
function
c31084
.
counterfilter
(
c
)
return
c
:
GetAttribute
()
==
ATTRIBUTE_EARTH
return
c
:
GetAttribute
()
==
ATTRIBUTE_EARTH
end
end
--Monster Effect 1
--Monster Effect 1
function
c31084
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c31084
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
31084
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
31084
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
and
e
:
GetHandler
():
IsAbleToHandAsCost
()
end
and
e
:
GetHandler
():
IsAbleToHandAsCost
()
end
Duel
.
SendtoHand
(
e
:
GetHandler
(),
nil
,
REASON_COST
)
Duel
.
SendtoHand
(
e
:
GetHandler
(),
nil
,
REASON_COST
)
end
end
function
c31084
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
function
c31084
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
c
:
GetAttribute
()
=
=
ATTRIBUTE_EARTH
return
c
:
GetAttribute
()
~
=
ATTRIBUTE_EARTH
end
end
--效果条件:自己墓地的地属性怪兽或者「0x258」怪兽
--效果条件:自己墓地的地属性怪兽或者「0x258」怪兽
function
c31084
.
filter1b
(
c
,
e
,
tp
)
function
c31084
.
filter1b
(
c
,
e
,
tp
)
return
(
c
:
IsAttribute
(
ATTRIBUTE_EARTH
)
or
c
:
IsSetCard
(
0x258
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
(
c
:
IsAttribute
(
ATTRIBUTE_EARTH
)
or
c
:
IsSetCard
(
0x258
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c31084
.
target1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c31084
.
target1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c31084
.
filter1b
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c31084
.
filter1b
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c31084
.
filter1b
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c31084
.
filter1b
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
and
Duel
.
GetMZoneCount
(
tp
,
e
:
GetHandler
()
)
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c31084
.
filter1b
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c31084
.
filter1b
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
end
function
c31084
.
operation1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c31084
.
operation1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
@@ -60,17 +61,17 @@ function c31084.initial_effect(c)
...
@@ -60,17 +61,17 @@ function c31084.initial_effect(c)
e1
:
SetTarget
(
c31084
.
splimit
)
e1
:
SetTarget
(
c31084
.
splimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
--Monster Effect 2
--Monster Effect 2
--效果条件:游戏中除外的这张卡
--效果条件:游戏中除外的这张卡
function
c31084
.
cost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c31084
.
cost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsAbleToDeckAsCost
()
end
if
chk
==
0
then
return
c
:
IsAbleToDeckAsCost
()
end
Duel
.
SendtoDeck
(
c
,
nil
,
0
,
REASON_COST
)
Duel
.
SendtoDeck
(
c
,
nil
,
0
,
REASON_COST
)
end
end
--发动操作:自己回复1000基本分。
--发动操作:自己回复1000基本分。
function
c31084
.
operation2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c31084
.
operation2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Recover
(
tp
,
1000
,
REASON_EFFECT
)
Duel
.
Recover
(
tp
,
1000
,
REASON_EFFECT
)
end
end
script/c31093.lua
View file @
c95bbaad
...
@@ -13,6 +13,7 @@ function s.initial_effect(c)
...
@@ -13,6 +13,7 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetTarget
(
aux
.
TRUE
)
e2
:
SetValue
(
100
)
e2
:
SetValue
(
100
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--②
--②
...
@@ -31,8 +32,11 @@ function s.initial_effect(c)
...
@@ -31,8 +32,11 @@ function s.initial_effect(c)
--③
--③
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e4
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e4
:
SetCode
(
EVENT_BATTLE_DESTROYED
)
e4
:
SetCode
(
EVENT_BATTLE_DESTROYED
)
e4
:
SetRange
(
LOCATION_HAND
)
e4
:
SetCondition
(
s
.
spcon
)
e4
:
SetCondition
(
s
.
spcon
)
e4
:
SetTarget
(
s
.
sptg
)
e4
:
SetTarget
(
s
.
sptg
)
e4
:
SetOperation
(
s
.
spop
)
e4
:
SetOperation
(
s
.
spop
)
...
@@ -40,7 +44,7 @@ function s.initial_effect(c)
...
@@ -40,7 +44,7 @@ function s.initial_effect(c)
end
end
function
s
.
thfilter
(
c
)
function
s
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x275
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x275
)
and
c
:
Is
Type
(
TYPE_MONSTER
)
and
c
:
Is
AbleToHand
()
end
end
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
@@ -56,21 +60,21 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -56,21 +60,21 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
end
end
function
s
.
spfilter
(
c
,
tp
)
return
c
:
IsPreviousControler
(
tp
)
end
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
not
eg
:
IsContains
(
e
:
GetHandler
())
and
eg
:
IsExists
(
s
.
spfilter
,
1
,
nil
,
tp
)
local
bc
=
c
:
GetBattleTarget
()
return
c
:
IsLocation
(
LOCATION_HAND
)
and
bc
and
bc
:
IsType
(
TYPE_MONSTER
)
end
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
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
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
end
script/c4114226.lua
View file @
c95bbaad
...
@@ -103,7 +103,7 @@ function c4114226.tg3(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -103,7 +103,7 @@ function c4114226.tg3(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
and
Duel
.
IsExistingMatchingCard
(
c4114226
.
filter3
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c4114226
.
filter3
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
)
end
end
function
c4114226
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c4114226
.
op3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c4114226
.
filter3
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c4114226
.
filter3
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
,
e
,
tp
)
...
...
script/c431404.lua
View file @
c95bbaad
...
@@ -30,7 +30,7 @@ function c431404.shtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -30,7 +30,7 @@ function c431404.shtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
end
end
function
c431404
.
shop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c431404
.
shop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
91400
,
0
,
0x4011
,
0
,
0
,
2
,
RACE_BEAST
,
ATTRIBUTE_EARTH
)
then
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
91400
,
0
,
0x4011
,
0
,
0
,
2
,
RACE_BEAST
,
ATTRIBUTE_EARTH
)
then
local
token
=
Duel
.
CreateToken
(
tp
,
91400
)
local
token
=
Duel
.
CreateToken
(
tp
,
91400
)
Duel
.
SpecialSummon
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
...
script/c50252.lua
View file @
c95bbaad
...
@@ -22,14 +22,14 @@ function c50252.bcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -22,14 +22,14 @@ function c50252.bcost(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
3
,
3
,
REASON_COST
)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
3
,
3
,
REASON_COST
)
end
end
function
c50252
.
btg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c50252
.
btg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>=
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
50652
,
0x250
,
0x4011
,
0
,
1600
,
1
,
RACE_PLANT
,
ATTRIBUTE_WIND
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
50652
,
0x250
,
0x4011
,
0
,
1600
,
1
,
RACE_PLANT
,
ATTRIBUTE_WIND
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
end
end
function
c50252
.
bop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c50252
.
bop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
Get
MZoneCount
(
tp
)
<
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
50652
,
0x250
,
0x4011
,
0
,
1600
,
1
,
RACE_PLANT
,
ATTRIBUTE_WIND
)
then
return
end
if
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
50652
,
0x250
,
0x4011
,
0
,
1600
,
1
,
RACE_PLANT
,
ATTRIBUTE_WIND
)
then
return
end
local
token
=
Duel
.
CreateToken
(
tp
,
50652
)
local
token
=
Duel
.
CreateToken
(
tp
,
50652
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
script/c74561061.lua
View file @
c95bbaad
...
@@ -32,8 +32,8 @@ function cCardno.rfilter(c)
...
@@ -32,8 +32,8 @@ function cCardno.rfilter(c)
return
c
:
IsLevel
(
2
)
and
c
:
IsSetCard
(
0x208
)
return
c
:
IsLevel
(
2
)
and
c
:
IsSetCard
(
0x208
)
end
end
function
cCardno
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cCardno
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroupEx
(
tp
,
cCardno
.
rfilter
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
CheckReleaseGroupEx
(
tp
,
cCardno
.
rfilter
,
1
,
REASON_COST
,
true
,
nil
)
end
local
g
=
Duel
.
SelectReleaseGroupEx
(
tp
,
cCardno
.
rfilter
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectReleaseGroupEx
(
tp
,
cCardno
.
rfilter
,
1
,
1
,
REASON_COST
,
true
,
nil
)
local
rc
=
g
:
GetFirst
()
local
rc
=
g
:
GetFirst
()
Duel
.
SetTargetCard
(
rc
)
Duel
.
SetTargetCard
(
rc
)
Duel
.
Release
(
rc
,
REASON_COST
)
Duel
.
Release
(
rc
,
REASON_COST
)
...
...
script/c74563034.lua
View file @
c95bbaad
...
@@ -31,7 +31,7 @@ function c74563034.initial_effect(c)
...
@@ -31,7 +31,7 @@ function c74563034.initial_effect(c)
--syn
--syn
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_SYNCHRO_MATERIAL
)
e2
:
SetCode
(
EFFECT_
EXTRA_
SYNCHRO_MATERIAL
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e2
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
...
@@ -72,7 +72,7 @@ function c74563034.slevel(e,c)
...
@@ -72,7 +72,7 @@ function c74563034.slevel(e,c)
end
end
function
c74563034
.
mtval
(
e
,
c
)
function
c74563034
.
mtval
(
e
,
c
)
if
not
c
then
return
false
end
if
not
c
then
return
false
end
return
c
:
IsRace
(
RACE_FAIRY
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
return
c
:
IsRace
(
RACE_FAIRY
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
IsControler
(
e
:
GetOwnerPlayer
())
end
end
function
c74563034
.
adjustop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c74563034
.
adjustop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
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