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
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
八宫一月
ygopro-scripts
Commits
70f58abc
Commit
70f58abc
authored
Jun 25, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix cannot be target 2
parent
1d73a2b0
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
125 additions
and
121 deletions
+125
-121
c13756293.lua
c13756293.lua
+5
-7
c14541657.lua
c14541657.lua
+10
-7
c24573625.lua
c24573625.lua
+11
-10
c33655493.lua
c33655493.lua
+10
-8
c34822850.lua
c34822850.lua
+10
-7
c42237854.lua
c42237854.lua
+7
-6
c43175858.lua
c43175858.lua
+4
-7
c53550467.lua
c53550467.lua
+7
-7
c61380658.lua
c61380658.lua
+10
-7
c65025250.lua
c65025250.lua
+7
-6
c80208158.lua
c80208158.lua
+10
-7
c8102334.lua
c8102334.lua
+7
-6
c81471108.lua
c81471108.lua
+4
-13
c85909450.lua
c85909450.lua
+9
-8
c91718579.lua
c91718579.lua
+9
-8
c9264485.lua
c9264485.lua
+5
-7
No files found.
c13756293.lua
View file @
70f58abc
...
@@ -6,11 +6,12 @@ function c13756293.initial_effect(c)
...
@@ -6,11 +6,12 @@ function c13756293.initial_effect(c)
--cannot be target
--cannot be target
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_
SELECT
_EFFECT_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_
BE
_EFFECT_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_
SET_AVAILABL
E
)
e1
:
SetProperty
(
EFFECT_FLAG_
IGNORE_IMMUN
E
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0
,
0xff
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e1
:
SetValue
(
c13756293
.
etarget
)
e1
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsRace
,
RACE_DRAGON
))
e1
:
SetValue
(
aux
.
tgoval
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--spsummon
--spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
@@ -23,9 +24,6 @@ function c13756293.initial_effect(c)
...
@@ -23,9 +24,6 @@ function c13756293.initial_effect(c)
e2
:
SetOperation
(
c13756293
.
spop
)
e2
:
SetOperation
(
c13756293
.
spop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c13756293
.
etarget
(
e
,
re
,
c
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_DRAGON
)
end
function
c13756293
.
filter
(
c
,
e
,
tp
)
function
c13756293
.
filter
(
c
,
e
,
tp
)
return
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
...
...
c14541657.lua
View file @
70f58abc
...
@@ -8,11 +8,14 @@ function c14541657.initial_effect(c)
...
@@ -8,11 +8,14 @@ function c14541657.initial_effect(c)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetValue
(
c14541657
.
atlimit
)
e1
:
SetValue
(
c14541657
.
atlimit
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCode
(
EFFECT_CANNOT_SELECT_EFFECT_TARGET
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e2
:
SetTargetRange
(
0
,
0xff
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetValue
(
c14541657
.
tglimit
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetTarget
(
c14541657
.
tglimit
)
e2
:
SetValue
(
aux
.
tgoval
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--tohand
--tohand
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
...
@@ -29,8 +32,8 @@ end
...
@@ -29,8 +32,8 @@ end
function
c14541657
.
atlimit
(
e
,
c
)
function
c14541657
.
atlimit
(
e
,
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x2b
)
and
c
~=
e
:
GetHandler
()
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x2b
)
and
c
~=
e
:
GetHandler
()
end
end
function
c14541657
.
tglimit
(
e
,
re
,
c
)
function
c14541657
.
tglimit
(
e
,
c
)
return
c
:
Is
Location
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
and
c
:
Is
SetCard
(
0x2b
)
and
c
~=
e
:
GetHandler
()
return
c
:
IsSetCard
(
0x2b
)
and
c
~=
e
:
GetHandler
()
end
end
function
c14541657
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c14541657
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c24573625.lua
View file @
70f58abc
...
@@ -29,14 +29,15 @@ function c24573625.initial_effect(c)
...
@@ -29,14 +29,15 @@ function c24573625.initial_effect(c)
e4
:
SetValue
(
1
)
e4
:
SetValue
(
1
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
--cannot be target
--cannot be target
local
e7
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e7
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e7
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e7
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e5
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e7
:
SetTargetRange
(
0
,
0xff
)
e5
:
SetRange
(
LOCATION_MZONE
)
e7
:
SetCode
(
EFFECT_CANNOT_SELECT_EFFECT_TARGET
)
e5
:
SetTargetRange
(
LOCATION_ONFIELD
,
LOCATION_ONFIELD
)
e7
:
SetValue
(
c24573625
.
tglimit
)
e5
:
SetTarget
(
c24573625
.
tglimit
)
c
:
RegisterEffect
(
e7
)
e5
:
SetValue
(
aux
.
tgoval
)
c
:
RegisterEffect
(
e5
)
end
end
function
c24573625
.
splimcon
(
e
)
function
c24573625
.
splimcon
(
e
)
return
not
e
:
GetHandler
():
IsForbidden
()
return
not
e
:
GetHandler
():
IsForbidden
()
...
@@ -47,6 +48,6 @@ end
...
@@ -47,6 +48,6 @@ end
function
c24573625
.
value
(
e
,
c
)
function
c24573625
.
value
(
e
,
c
)
return
Duel
.
GetMatchingGroupCount
(
Card
.
IsSetCard
,
c
:
GetControler
(),
LOCATION_GRAVE
,
0
,
nil
,
0xab
)
*
500
return
Duel
.
GetMatchingGroupCount
(
Card
.
IsSetCard
,
c
:
GetControler
(),
LOCATION_GRAVE
,
0
,
nil
,
0xab
)
*
500
end
end
function
c24573625
.
tglimit
(
e
,
re
,
c
)
function
c24573625
.
tglimit
(
e
,
c
)
return
c
:
Is
Faceup
()
and
c
:
IsSetCard
(
0xab
)
and
c
~=
e
:
GetHandler
()
and
c
:
IsLocation
(
LOCATION_ONFIELD
)
return
c
:
Is
SetCard
(
0xab
)
and
c
~=
e
:
GetHandler
()
end
end
c33655493.lua
View file @
70f58abc
...
@@ -8,17 +8,19 @@ function c33655493.initial_effect(c)
...
@@ -8,17 +8,19 @@ function c33655493.initial_effect(c)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e1
:
SetValue
(
c33655493
.
tg
)
e1
:
SetValue
(
c33655493
.
tg
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCode
(
EFFECT_CANNOT_SELECT_EFFECT_TARGET
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e2
:
SetTargetRange
(
0
,
0xff
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetValue
(
c33655493
.
tglimit
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTarget
(
c33655493
.
tg
)
e2
:
SetValue
(
c33655493
.
tgval
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c33655493
.
tg
(
e
,
c
)
function
c33655493
.
tg
(
e
,
c
)
return
c
:
IsFaceup
()
and
c
:
GetCode
()
~=
33655493
return
c
:
IsFaceup
()
and
c
:
GetCode
()
~=
33655493
end
end
function
c33655493
.
tglimit
(
e
,
re
,
c
)
function
c33655493
.
tgval
(
e
,
re
,
rp
)
return
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsLocation
(
LOCATION_MZONE
)
return
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
rp
~=
e
:
GetHandlerPlayer
()
and
c
:
IsFaceup
()
and
c
:
GetCode
()
~=
33655493
end
end
c34822850.lua
View file @
70f58abc
...
@@ -32,11 +32,14 @@ function c34822850.initial_effect(c)
...
@@ -32,11 +32,14 @@ function c34822850.initial_effect(c)
e4
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e4
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e4
:
SetValue
(
c34822850
.
atlimit
)
e4
:
SetValue
(
c34822850
.
atlimit
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
local
e5
=
e4
:
Clone
()
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetCode
(
EFFECT_CANNOT_SELECT_EFFECT_TARGET
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e5
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e5
:
SetTargetRange
(
0
,
0xff
)
e5
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e5
:
SetValue
(
c34822850
.
tglimit
)
e5
:
SetRange
(
LOCATION_FZONE
)
e5
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e5
:
SetTarget
(
c34822850
.
tglimit
)
e5
:
SetValue
(
aux
.
tgoval
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
function
c34822850
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c34822850
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -64,7 +67,7 @@ end
...
@@ -64,7 +67,7 @@ end
function
c34822850
.
atlimit
(
e
,
c
)
function
c34822850
.
atlimit
(
e
,
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xbb
)
and
Duel
.
IsExistingMatchingCard
(
c34822850
.
filter
,
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
c
:
GetLevel
())
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xbb
)
and
Duel
.
IsExistingMatchingCard
(
c34822850
.
filter
,
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
c
:
GetLevel
())
end
end
function
c34822850
.
tglimit
(
e
,
re
,
c
)
function
c34822850
.
tglimit
(
e
,
c
)
return
c
:
Is
Controler
(
e
:
GetHandlerPlayer
())
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
and
c
:
Is
SetCard
(
0xbb
)
return
c
:
IsSetCard
(
0xbb
)
and
Duel
.
IsExistingMatchingCard
(
c34822850
.
filter
,
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
c
:
GetLevel
())
and
Duel
.
IsExistingMatchingCard
(
c34822850
.
filter
,
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
c
:
GetLevel
())
end
end
c42237854.lua
View file @
70f58abc
...
@@ -20,11 +20,12 @@ function c42237854.initial_effect(c)
...
@@ -20,11 +20,12 @@ function c42237854.initial_effect(c)
--cannot be target
--cannot be target
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_CANNOT_
SELECT
_EFFECT_TARGET
)
e3
:
SetCode
(
EFFECT_CANNOT_
BE
_EFFECT_TARGET
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e3
:
SetProperty
(
EFFECT_FLAG_
IGNORE_IMMUNE
+
EFFECT_FLAG_
SET_AVAILABLE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
0
,
0xff
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e3
:
SetValue
(
c42237854
.
tgtg
)
e3
:
SetTarget
(
c42237854
.
tgtg
)
e3
:
SetValue
(
aux
.
tgoval
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c42237854
.
filter
(
c
)
function
c42237854
.
filter
(
c
)
...
@@ -109,6 +110,6 @@ end
...
@@ -109,6 +110,6 @@ end
function
c42237854
.
atlimit
(
e
,
c
)
function
c42237854
.
atlimit
(
e
,
c
)
return
c
~=
e
:
GetHandler
()
return
c
~=
e
:
GetHandler
()
end
end
function
c42237854
.
tgtg
(
e
,
re
,
c
)
function
c42237854
.
tgtg
(
e
,
c
)
return
c
~=
e
:
GetHandler
()
and
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
return
c
~=
e
:
GetHandler
()
end
end
c43175858.lua
View file @
70f58abc
...
@@ -19,11 +19,11 @@ function c43175858.initial_effect(c)
...
@@ -19,11 +19,11 @@ function c43175858.initial_effect(c)
--cannot be target
--cannot be target
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_CANNOT_SELECT_EFFECT_TARGET
)
e3
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IMMEDIATELY_APPLY
)
e3
:
SetRange
(
LOCATION_FZONE
)
e3
:
SetRange
(
LOCATION_FZONE
)
e3
:
SetTargetRange
(
0
,
0xff
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e3
:
SetValue
(
c43175858
.
etarget
)
e3
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsType
,
TYPE_TOON
))
e3
:
SetValue
(
aux
.
tgoval
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--destroy replace
--destroy replace
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
...
@@ -48,9 +48,6 @@ function c43175858.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -48,9 +48,6 @@ function c43175858.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
DisableShuffleCheck
()
Duel
.
DisableShuffleCheck
()
Duel
.
Remove
(
g
,
POS_FACEDOWN
,
REASON_EFFECT
)
Duel
.
Remove
(
g
,
POS_FACEDOWN
,
REASON_EFFECT
)
end
end
function
c43175858
.
etarget
(
e
,
re
,
c
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsType
(
TYPE_TOON
)
end
function
c43175858
.
repfilter
(
c
,
tp
)
function
c43175858
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsType
(
TYPE_TOON
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
c
:
IsType
(
TYPE_TOON
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
...
...
c53550467.lua
View file @
70f58abc
...
@@ -12,12 +12,12 @@ function c53550467.initial_effect(c)
...
@@ -12,12 +12,12 @@ function c53550467.initial_effect(c)
--cannot be effect target
--cannot be effect target
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
0
,
0xff
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetCode
(
EFFECT_CANNOT_SELECT_EFFECT_TARGET
)
e2
:
SetTarget
(
c53550467
.
tglimit
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e2
:
SetValue
(
aux
.
tgoval
)
e2
:
SetCondition
(
c53550467
.
con
)
e2
:
SetValue
(
c53550467
.
tglimit
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--destroy
--destroy
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
...
@@ -41,8 +41,8 @@ end
...
@@ -41,8 +41,8 @@ end
function
c53550467
.
atlimit
(
e
,
c
)
function
c53550467
.
atlimit
(
e
,
c
)
return
c
~=
e
:
GetHandler
()
and
c
:
IsFaceup
()
and
c
:
GetAttack
()
<
1800
return
c
~=
e
:
GetHandler
()
and
c
:
IsFaceup
()
and
c
:
GetAttack
()
<
1800
end
end
function
c53550467
.
tglimit
(
e
,
re
,
c
)
function
c53550467
.
tglimit
(
e
,
c
)
return
c
~=
e
:
GetHandler
()
and
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
and
c
:
GetAttack
()
<
1800
return
c
~=
e
:
GetHandler
()
and
c
:
GetAttack
()
<
1800
end
end
function
c53550467
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c53550467
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
Card
.
IsSetCard
,
1
,
nil
,
0x207a
)
return
eg
:
IsExists
(
Card
.
IsSetCard
,
1
,
nil
,
0x207a
)
...
...
c61380658.lua
View file @
70f58abc
...
@@ -8,16 +8,19 @@ function c61380658.initial_effect(c)
...
@@ -8,16 +8,19 @@ function c61380658.initial_effect(c)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetValue
(
c61380658
.
atlimit
)
e1
:
SetValue
(
c61380658
.
atlimit
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCode
(
EFFECT_CANNOT_SELECT_EFFECT_TARGET
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e2
:
SetTargetRange
(
0
,
0xff
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetValue
(
c61380658
.
tglimit
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetTarget
(
c61380658
.
tglimit
)
e2
:
SetValue
(
aux
.
tgoval
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c61380658
.
atlimit
(
e
,
c
)
function
c61380658
.
atlimit
(
e
,
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xe
)
and
c
~=
e
:
GetHandler
()
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xe
)
and
c
~=
e
:
GetHandler
()
end
end
function
c61380658
.
tglimit
(
e
,
re
,
c
)
function
c61380658
.
tglimit
(
e
,
c
)
return
c
:
Is
Controler
(
e
:
GetHandlerPlayer
())
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
and
c
:
Is
SetCard
(
0xe
)
and
c
~=
e
:
GetHandler
()
return
c
:
IsSetCard
(
0xe
)
and
c
~=
e
:
GetHandler
()
end
end
c65025250.lua
View file @
70f58abc
...
@@ -23,11 +23,12 @@ function c65025250.initial_effect(c)
...
@@ -23,11 +23,12 @@ function c65025250.initial_effect(c)
--cannot be target
--cannot be target
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EFFECT_CANNOT_
SELECT
_EFFECT_TARGET
)
e4
:
SetCode
(
EFFECT_CANNOT_
BE
_EFFECT_TARGET
)
e4
:
SetProperty
(
EFFECT_FLAG_
SET_AVAILABL
E
)
e4
:
SetProperty
(
EFFECT_FLAG_
IGNORE_IMMUN
E
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetTargetRange
(
0
,
0xff
)
e4
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e4
:
SetValue
(
c65025250
.
tgtg
)
e4
:
SetTarget
(
c65025250
.
tgtg
)
e4
:
SetValue
(
aux
.
tgoval
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c65025250
.
filter
(
c
,
tp
)
function
c65025250
.
filter
(
c
,
tp
)
...
@@ -54,6 +55,6 @@ function c65025250.posop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -54,6 +55,6 @@ function c65025250.posop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ChangePosition
(
c
,
POS_FACEUP_DEFENSE
)
Duel
.
ChangePosition
(
c
,
POS_FACEUP_DEFENSE
)
end
end
end
end
function
c65025250
.
tgtg
(
e
,
re
,
c
)
function
c65025250
.
tgtg
(
e
,
c
)
return
c
~=
e
:
GetHandler
()
and
c
:
Is
Controler
(
e
:
GetHandlerPlayer
())
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
and
c
:
Is
SetCard
(
0xb3
)
return
c
~=
e
:
GetHandler
()
and
c
:
IsSetCard
(
0xb3
)
end
end
c80208158.lua
View file @
70f58abc
...
@@ -9,11 +9,14 @@ function c80208158.initial_effect(c)
...
@@ -9,11 +9,14 @@ function c80208158.initial_effect(c)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e1
:
SetValue
(
c80208158
.
atlimit
)
e1
:
SetValue
(
c80208158
.
atlimit
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCode
(
EFFECT_CANNOT_SELECT_EFFECT_TARGET
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e2
:
SetTargetRange
(
0
,
0xff
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
+
EFFECT_FLAG_SET_AVAILABLE
)
e2
:
SetValue
(
c80208158
.
tglimit
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTarget
(
c80208158
.
tglimit
)
e2
:
SetValue
(
aux
.
tgoval
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--spsummon
--spsummon
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
...
@@ -30,8 +33,8 @@ end
...
@@ -30,8 +33,8 @@ end
function
c80208158
.
atlimit
(
e
,
c
)
function
c80208158
.
atlimit
(
e
,
c
)
return
c
~=
e
:
GetHandler
()
return
c
~=
e
:
GetHandler
()
end
end
function
c80208158
.
tglimit
(
e
,
re
,
c
)
function
c80208158
.
tglimit
(
e
,
c
)
return
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
~=
e
:
GetHandler
()
return
c
~=
e
:
GetHandler
()
end
end
function
c80208158
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c80208158
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
and
Duel
.
GetAttackTarget
()
==
nil
return
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
and
Duel
.
GetAttackTarget
()
==
nil
...
...
c8102334.lua
View file @
70f58abc
...
@@ -26,11 +26,12 @@ function c8102334.initial_effect(c)
...
@@ -26,11 +26,12 @@ function c8102334.initial_effect(c)
--target
--target
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e4
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
+
EFFECT_FLAG_SET_AVAILABLE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetTargetRange
(
0
,
0xff
)
e4
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e4
:
SetCode
(
EFFECT_CANNOT_SELECT_EFFECT_TARGET
)
e4
:
SetTarget
(
c8102334
.
tglimit
)
e4
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e4
:
SetValue
(
aux
.
tgoval
)
e4
:
SetValue
(
c8102334
.
tglimit
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c8102334
.
distg
(
e
,
c
)
function
c8102334
.
distg
(
e
,
c
)
...
@@ -42,6 +43,6 @@ function c8102334.disop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -42,6 +43,6 @@ function c8102334.disop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
NegateEffect
(
ev
)
Duel
.
NegateEffect
(
ev
)
end
end
end
end
function
c8102334
.
tglimit
(
e
,
re
,
c
)
function
c8102334
.
tglimit
(
e
,
c
)
return
c
~=
e
:
GetHandler
()
and
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsLocation
(
LOCATION_MZONE
)
return
c
~=
e
:
GetHandler
()
end
end
c81471108.lua
View file @
70f58abc
...
@@ -14,13 +14,10 @@ function c81471108.initial_effect(c)
...
@@ -14,13 +14,10 @@ function c81471108.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--cannot be target
--cannot be target
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_EQUIP
)
e2
:
SetCode
(
EFFECT_CANNOT_SELECT_EFFECT_TARGET
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetValue
(
aux
.
tgoval
)
e2
:
SetTargetRange
(
0
,
0xff
)
e2
:
SetCondition
(
c81471108
.
tgcon
)
e2
:
SetValue
(
c81471108
.
tglimit
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--destroy sub
--destroy sub
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
...
@@ -71,12 +68,6 @@ end
...
@@ -71,12 +68,6 @@ end
function
c81471108
.
eqlimit
(
e
,
c
)
function
c81471108
.
eqlimit
(
e
,
c
)
return
c
==
e
:
GetLabelObject
()
return
c
==
e
:
GetLabelObject
()
end
end
function
c81471108
.
tgcon
(
e
)
return
e
:
GetHandler
():
GetEquipTarget
()
~=
nil
end
function
c81471108
.
tglimit
(
e
,
re
,
c
)
return
c
==
e
:
GetHandler
():
GetEquipTarget
()
end
function
c81471108
.
repval
(
e
,
re
,
r
,
rp
)
function
c81471108
.
repval
(
e
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_BATTLE
)
~=
0
return
bit
.
band
(
r
,
REASON_BATTLE
)
~=
0
end
end
c85909450.lua
View file @
70f58abc
...
@@ -18,11 +18,15 @@ function c85909450.initial_effect(c)
...
@@ -18,11 +18,15 @@ function c85909450.initial_effect(c)
e2
:
SetCondition
(
c85909450
.
effcon
)
e2
:
SetCondition
(
c85909450
.
effcon
)
e2
:
SetValue
(
c85909450
.
atlimit
)
e2
:
SetValue
(
c85909450
.
atlimit
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCode
(
EFFECT_CANNOT_SELECT_EFFECT_TARGET
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e3
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e3
:
SetTargetRange
(
0
,
0xff
)
e3
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e3
:
SetValue
(
c85909450
.
tglimit
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e3
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x64
))
e3
:
SetCondition
(
c85909450
.
effcon
)
e3
:
SetValue
(
aux
.
tgoval
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--remove material
--remove material
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
...
@@ -41,9 +45,6 @@ end
...
@@ -41,9 +45,6 @@ end
function
c85909450
.
atlimit
(
e
,
c
)
function
c85909450
.
atlimit
(
e
,
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x64
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x64
)
end
end
function
c85909450
.
tglimit
(
e
,
re
,
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x64
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
function
c85909450
.
rmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c85909450
.
rmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
return
Duel
.
GetTurnPlayer
()
==
tp
end
end
...
...
c91718579.lua
View file @
70f58abc
...
@@ -9,11 +9,15 @@ function c91718579.initial_effect(c)
...
@@ -9,11 +9,15 @@ function c91718579.initial_effect(c)
e1
:
SetCondition
(
c91718579
.
tgcon
)
e1
:
SetCondition
(
c91718579
.
tgcon
)
e1
:
SetValue
(
c91718579
.
atlimit
)
e1
:
SetValue
(
c91718579
.
atlimit
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCode
(
EFFECT_CANNOT_SELECT_EFFECT_TARGET
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e2
:
SetTargetRange
(
0
,
0xff
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetValue
(
c91718579
.
tglimit
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x59
))
e2
:
SetCondition
(
c91718579
.
tgcon
)
e2
:
SetValue
(
aux
.
tgoval
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--effect gain
--effect gain
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
...
@@ -32,9 +36,6 @@ end
...
@@ -32,9 +36,6 @@ end
function
c91718579
.
atlimit
(
e
,
c
)
function
c91718579
.
atlimit
(
e
,
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x59
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x59
)
end
end
function
c91718579
.
tglimit
(
e
,
re
,
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x59
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
function
c91718579
.
effcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c91718579
.
effcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
mg
=
e
:
GetHandler
():
GetReasonCard
():
GetMaterial
()
local
mg
=
e
:
GetHandler
():
GetReasonCard
():
GetMaterial
()
return
r
==
REASON_XYZ
and
mg
:
IsExists
(
Card
.
IsSetCard
,
mg
:
GetCount
(),
nil
,
0x59
)
return
r
==
REASON_XYZ
and
mg
:
IsExists
(
Card
.
IsSetCard
,
mg
:
GetCount
(),
nil
,
0x59
)
...
...
c9264485.lua
View file @
70f58abc
...
@@ -3,13 +3,11 @@ function c9264485.initial_effect(c)
...
@@ -3,13 +3,11 @@ function c9264485.initial_effect(c)
--cannot be target
--cannot be target
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_
SELECT
_EFFECT_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_
BE
_EFFECT_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_
SET_AVAILABL
E
)
e1
:
SetProperty
(
EFFECT_FLAG_
IGNORE_IMMUN
E
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0
,
0xff
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e1
:
SetValue
(
c9264485
.
etarget
)
e1
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsCode
,
75830094
,
11224103
,
48229808
))
e1
:
SetValue
(
aux
.
tgoval
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c9264485
.
etarget
(
e
,
re
,
c
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
and
c
:
IsCode
(
75830094
,
11224103
,
48229808
)
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