Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
REIKAI
ygopro
Commits
9163afd2
Commit
9163afd2
authored
Apr 18, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EFFECT_CANNOT_SELECT_BATTLE_TARGET
parent
57ed46c3
Changes
63
Hide whitespace changes
Inline
Side-by-side
Showing
63 changed files
with
271 additions
and
398 deletions
+271
-398
ocgcore/card.cpp
ocgcore/card.cpp
+2
-0
ocgcore/effect.h
ocgcore/effect.h
+1
-0
ocgcore/field.cpp
ocgcore/field.cpp
+4
-0
script/c10979723.lua
script/c10979723.lua
+3
-5
script/c11475049.lua
script/c11475049.lua
+4
-6
script/c131182.lua
script/c131182.lua
+4
-6
script/c18013090.lua
script/c18013090.lua
+20
-14
script/c18027138.lua
script/c18027138.lua
+3
-5
script/c2250266.lua
script/c2250266.lua
+3
-5
script/c2333365.lua
script/c2333365.lua
+4
-6
script/c23782705.lua
script/c23782705.lua
+0
-1
script/c2460565.lua
script/c2460565.lua
+5
-7
script/c25034083.lua
script/c25034083.lua
+4
-6
script/c29400787.lua
script/c29400787.lua
+4
-6
script/c2986553.lua
script/c2986553.lua
+4
-6
script/c29947751.lua
script/c29947751.lua
+6
-15
script/c32491822.lua
script/c32491822.lua
+3
-5
script/c38369349.lua
script/c38369349.lua
+4
-11
script/c45298492.lua
script/c45298492.lua
+4
-6
script/c46239604.lua
script/c46239604.lua
+4
-6
script/c46502013.lua
script/c46502013.lua
+9
-11
script/c47737087.lua
script/c47737087.lua
+3
-10
script/c48179391.lua
script/c48179391.lua
+7
-9
script/c48582558.lua
script/c48582558.lua
+4
-6
script/c50449881.lua
script/c50449881.lua
+3
-5
script/c51085303.lua
script/c51085303.lua
+4
-6
script/c54635862.lua
script/c54635862.lua
+3
-5
script/c55401221.lua
script/c55401221.lua
+4
-6
script/c6330307.lua
script/c6330307.lua
+19
-14
script/c63730624.lua
script/c63730624.lua
+7
-9
script/c65458948.lua
script/c65458948.lua
+4
-11
script/c66865880.lua
script/c66865880.lua
+4
-6
script/c67511500.lua
script/c67511500.lua
+3
-5
script/c68170903.lua
script/c68170903.lua
+3
-6
script/c6924874.lua
script/c6924874.lua
+3
-5
script/c70458081.lua
script/c70458081.lua
+4
-6
script/c71411377.lua
script/c71411377.lua
+0
-1
script/c71519605.lua
script/c71519605.lua
+3
-5
script/c73219648.lua
script/c73219648.lua
+3
-5
script/c75162696.lua
script/c75162696.lua
+3
-5
script/c75292259.lua
script/c75292259.lua
+22
-15
script/c75363626.lua
script/c75363626.lua
+3
-5
script/c75367227.lua
script/c75367227.lua
+3
-5
script/c7617062.lua
script/c7617062.lua
+3
-5
script/c7625614.lua
script/c7625614.lua
+3
-5
script/c77084837.lua
script/c77084837.lua
+3
-9
script/c79636594.lua
script/c79636594.lua
+3
-5
script/c80304126.lua
script/c80304126.lua
+3
-5
script/c82260502.lua
script/c82260502.lua
+3
-5
script/c82670878.lua
script/c82670878.lua
+3
-5
script/c85446833.lua
script/c85446833.lua
+7
-9
script/c87294988.lua
script/c87294988.lua
+3
-5
script/c9024367.lua
script/c9024367.lua
+3
-10
script/c90640901.lua
script/c90640901.lua
+3
-6
script/c90960358.lua
script/c90960358.lua
+4
-11
script/c91420254.lua
script/c91420254.lua
+3
-5
script/c91559748.lua
script/c91559748.lua
+3
-5
script/c91842653.lua
script/c91842653.lua
+4
-11
script/c95466842.lua
script/c95466842.lua
+3
-5
script/c9666558.lua
script/c9666558.lua
+3
-5
script/c99348756.lua
script/c99348756.lua
+3
-5
script/c99795159.lua
script/c99795159.lua
+3
-5
script/constant.lua
script/constant.lua
+1
-0
No files found.
ocgcore/card.cpp
View file @
9163afd2
...
...
@@ -2367,6 +2367,8 @@ int32 card::is_control_can_be_changed() {
int32
card
::
is_capable_be_battle_target
(
card
*
pcard
)
{
if
(
is_affected_by_effect
(
EFFECT_CANNOT_BE_BATTLE_TARGET
,
pcard
))
return
FALSE
;
if
(
pcard
->
is_affected_by_effect
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
,
this
))
return
FALSE
;
if
(
is_affected_by_effect
(
EFFECT_IGNORE_BATTLE_TARGET
))
return
FALSE
;
return
TRUE
;
...
...
ocgcore/effect.h
View file @
9163afd2
...
...
@@ -374,6 +374,7 @@ public:
#define EFFECT_SPSUMMON_PROC_G 320
#define EFFECT_SPSUMMON_COUNT_LIMIT 330
#define EFFECT_LEFT_SPSUMMON_COUNT 331
#define EFFECT_CANNOT_SELECT_BATTLE_TARGET 332
#define EVENT_STARTUP 1000
#define EVENT_FLIP 1001
...
...
ocgcore/field.cpp
View file @
9163afd2
...
...
@@ -1612,6 +1612,8 @@ int32 field::get_attack_target(card* pcard, card_vector* v, uint8 chain_attack)
continue
;
if
(
atarget
->
is_affected_by_effect
(
EFFECT_CANNOT_BE_BATTLE_TARGET
,
pcard
))
continue
;
if
(
pcard
->
is_affected_by_effect
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
,
atarget
))
continue
;
pduel
->
lua
->
add_param
(
atarget
,
PARAM_TYPE_CARD
);
if
(
!
peffect
->
check_value_condition
(
1
))
continue
;
...
...
@@ -1640,6 +1642,8 @@ int32 field::get_attack_target(card* pcard, card_vector* v, uint8 chain_attack)
mcount
++
;
if
(
atarget
->
is_affected_by_effect
(
EFFECT_CANNOT_BE_BATTLE_TARGET
,
pcard
))
continue
;
if
(
pcard
->
is_affected_by_effect
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
,
atarget
))
continue
;
v
->
push_back
(
atarget
);
}
if
(
must_be_attack
.
size
())
...
...
script/c10979723.lua
View file @
9163afd2
...
...
@@ -13,11 +13,9 @@ function c10979723.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e2
:
SetTarget
(
c10979723
.
atlimit
)
e2
:
SetValue
(
aux
.
imval1
)
e2
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e2
:
SetValue
(
c10979723
.
atlimit
)
c
:
RegisterEffect
(
e2
)
end
function
c10979723
.
val
(
e
,
c
)
...
...
script/c11475049.lua
View file @
9163afd2
...
...
@@ -45,14 +45,12 @@ end
function
c11475049
.
atop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetTarget
(
c11475049
.
atktg
)
e1
:
SetValue
(
aux
.
imval1
)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetValue
(
c11475049
.
atlimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c11475049
.
at
ktg
(
e
,
c
)
function
c11475049
.
at
limit
(
e
,
c
)
return
c
:
IsSetCard
(
0x97
)
end
script/c131182.lua
View file @
9163afd2
...
...
@@ -19,11 +19,9 @@ function c131182.initial_effect(c)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e4
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e4
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e4
:
SetTarget
(
c131182
.
atktg
)
e4
:
SetValue
(
aux
.
imval1
)
e4
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e4
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e4
:
SetValue
(
c131182
.
atlimit
)
c
:
RegisterEffect
(
e4
)
--spsummon
local
e5
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -64,7 +62,7 @@ end
function
c131182
.
splimit
(
e
,
se
,
sp
,
st
,
spos
,
tgp
)
return
not
Duel
.
IsExistingMatchingCard
(
c131182
.
exfilter
,
tgp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
function
c131182
.
at
ktg
(
e
,
c
)
function
c131182
.
at
limit
(
e
,
c
)
return
c
:
IsFaceup
()
and
c
~=
e
:
GetHandler
()
end
function
c131182
.
battleop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c18013090.lua
View file @
9163afd2
...
...
@@ -77,31 +77,30 @@ function c18013090.caop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EFFECT_EXTRA_ATTACK
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_
BATTLE
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_
DAMAGE_CAL
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_CANNOT_DIRECT_ATTACK
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_
BATTLE
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_
DAMAGE_CAL
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
+
EFFECT_FLAG_SET_AVAILABLE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetLabelObject
(
tc
)
e3
:
SetTarget
(
c18013090
.
exttg
)
e3
:
SetValue
(
c18013090
.
extval
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_BATTLE
)
e3
:
SetValue
(
c18013090
.
exttg
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_DAMAGE_CAL
)
c
:
RegisterEffect
(
e3
)
e2
:
SetLabelObject
(
e3
)
e1
:
SetLabelObject
(
e2
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e4
:
SetLabelObject
(
e1
)
e4
:
SetOperation
(
aux
.
atrst
)
e4
:
SetReset
(
RESET_PHASE
+
PHASE_
BATTLE
)
e4
:
SetOperation
(
c18013090
.
atrst
)
e4
:
SetReset
(
RESET_PHASE
+
PHASE_
DAMAGE_CAL
)
Duel
.
RegisterEffect
(
e4
,
tp
)
end
end
...
...
@@ -109,6 +108,13 @@ function c18013090.exttg(e,c)
local
tc
=
e
:
GetLabelObject
()
return
c
~=
tc
end
function
c18013090
.
extval
(
e
,
c
)
return
c
==
e
:
GetHandler
()
function
c18013090
.
atrst
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
e
:
GetLabelObject
()
local
e2
=
e1
:
GetLabelObject
()
local
e3
=
e2
:
GetLabelObject
()
if
eg
:
GetFirst
()
~=
e1
:
GetHandler
()
then
e1
:
Reset
()
e2
:
Reset
()
e3
:
Reset
()
end
end
script/c18027138.lua
View file @
9163afd2
...
...
@@ -47,11 +47,9 @@ function c18027138.activate(e,tp,eg,ep,ev,re,r,rp)
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetTarget
(
c18027138
.
atlimit
)
e1
:
SetValue
(
aux
.
imval1
)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetValue
(
c18027138
.
atlimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
...
...
script/c2250266.lua
View file @
9163afd2
...
...
@@ -19,12 +19,10 @@ function c2250266.initial_effect(c)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e3
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e3
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e3
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e3
:
SetCondition
(
c2250266
.
cona2
)
e3
:
SetTarget
(
c2250266
.
atlimit
)
e3
:
SetValue
(
aux
.
imval1
)
e3
:
SetValue
(
c2250266
.
atlimit
)
c
:
RegisterEffect
(
e3
)
--def
local
e4
=
Effect
.
CreateEffect
(
c
)
...
...
script/c2333365.lua
View file @
9163afd2
...
...
@@ -12,11 +12,9 @@ function c2333365.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetTarget
(
c2333365
.
tg
)
e2
:
SetValue
(
aux
.
imval1
)
e2
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e2
:
SetValue
(
c2333365
.
atlimit
)
c
:
RegisterEffect
(
e2
)
end
function
c2333365
.
filter
(
c
)
...
...
@@ -25,6 +23,6 @@ end
function
c2333365
.
descon
(
e
)
return
not
Duel
.
IsExistingMatchingCard
(
c2333365
.
filter
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
e
:
GetHandler
())
end
function
c2333365
.
tg
(
e
,
c
)
function
c2333365
.
atlimit
(
e
,
c
)
return
c
:
GetCode
()
~=
2333365
and
c
:
IsSetCard
(
0x42
)
end
script/c23782705.lua
View file @
9163afd2
...
...
@@ -4,7 +4,6 @@ function c23782705.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e1
:
SetTarget
(
c23782705
.
tg
)
...
...
script/c2460565.lua
View file @
9163afd2
--切り込み隊長
function
c2460565
.
initial_effect
(
c
)
--cannot
be
battle target
--cannot
select
battle target
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e1
:
SetTarget
(
c2460565
.
tg
)
e1
:
SetValue
(
aux
.
imval1
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e1
:
SetValue
(
c2460565
.
atlimit
)
c
:
RegisterEffect
(
e1
)
--summon success
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -20,7 +18,7 @@ function c2460565.initial_effect(c)
e2
:
SetOperation
(
c2460565
.
sumop
)
c
:
RegisterEffect
(
e2
)
end
function
c2460565
.
tg
(
e
,
c
)
function
c2460565
.
atlimit
(
e
,
c
)
return
c
~=
e
:
GetHandler
()
and
c
:
IsRace
(
RACE_WARRIOR
)
end
function
c2460565
.
filter
(
c
,
e
,
tp
)
...
...
script/c25034083.lua
View file @
9163afd2
...
...
@@ -4,13 +4,11 @@ function c25034083.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e1
:
SetTarget
(
c25034083
.
attg
)
e1
:
SetValue
(
aux
.
imval1
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e1
:
SetValue
(
c25034083
.
atlimit
)
c
:
RegisterEffect
(
e1
)
end
function
c25034083
.
at
tg
(
e
,
c
)
function
c25034083
.
at
limit
(
e
,
c
)
return
not
c
:
IsCode
(
25034083
)
end
script/c29400787.lua
View file @
9163afd2
...
...
@@ -8,12 +8,10 @@ function c29400787.initial_effect(c)
--atklimit
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetTarget
(
c29400787
.
bttg
)
e2
:
SetValue
(
aux
.
imval1
)
e2
:
SetValue
(
c29400787
.
atlimit
)
c
:
RegisterEffect
(
e2
)
--direct attack
local
e3
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -44,7 +42,7 @@ function c29400787.initial_effect(c)
e5
:
SetValue
(
0
)
c
:
RegisterEffect
(
e5
)
end
function
c29400787
.
bttg
(
e
,
c
)
function
c29400787
.
atlimit
(
e
,
c
)
return
c
:
IsFacedown
()
end
function
c29400787
.
dirtg
(
e
,
c
)
...
...
script/c2986553.lua
View file @
9163afd2
...
...
@@ -4,11 +4,9 @@ function c2986553.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e1
:
SetTarget
(
c2986553
.
tg
)
e1
:
SetValue
(
aux
.
imval1
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e1
:
SetValue
(
c2986553
.
atlimit
)
c
:
RegisterEffect
(
e1
)
--summon success
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -20,7 +18,7 @@ function c2986553.initial_effect(c)
e2
:
SetOperation
(
c2986553
.
sumop
)
c
:
RegisterEffect
(
e2
)
end
function
c2986553
.
tg
(
e
,
c
)
function
c2986553
.
atlimit
(
e
,
c
)
return
c
:
IsRace
(
RACE_PLANT
)
end
function
c2986553
.
filter
(
c
,
e
,
tp
)
...
...
script/c29947751.lua
View file @
9163afd2
...
...
@@ -2,13 +2,9 @@
function
c29947751
.
initial_effect
(
c
)
--atk
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e1
:
SetCondition
(
c29947751
.
cona
)
e1
:
SetTarget
(
c29947751
.
tga
)
e1
:
SetValue
(
c29947751
.
vala
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -20,12 +16,10 @@ function c29947751.initial_effect(c)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e3
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e3
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e3
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e3
:
SetCondition
(
c29947751
.
cond
)
e3
:
SetTarget
(
c29947751
.
atlimit
)
e3
:
SetValue
(
aux
.
imval1
)
e3
:
SetValue
(
c29947751
.
atlimit
)
c
:
RegisterEffect
(
e3
)
end
function
c29947751
.
cona
(
e
)
...
...
@@ -35,14 +29,11 @@ end
function
c29947751
.
filter
(
c
,
atk
)
return
c
:
IsFaceup
()
and
c
:
GetAttack
()
>
atk
end
function
c29947751
.
tg
a
(
e
,
c
)
function
c29947751
.
val
a
(
e
,
c
)
if
c
:
IsFaceup
()
then
return
Duel
.
IsExistingMatchingCard
(
c29947751
.
filter
,
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
1
,
c
,
c
:
GetAttack
())
else
return
true
end
end
function
c29947751
.
vala
(
e
,
c
)
return
c
==
e
:
GetHandler
()
end
function
c29947751
.
cond
(
e
)
return
e
:
GetHandler
():
IsDefencePos
()
end
...
...
script/c32491822.lua
View file @
9163afd2
...
...
@@ -31,12 +31,10 @@ function c32491822.initial_effect(c)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e4
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e4
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e4
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e4
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e4
:
SetCondition
(
c32491822
.
atcon
)
e4
:
SetTarget
(
c32491822
.
atlimit
)
e4
:
SetValue
(
aux
.
imval1
)
e4
:
SetValue
(
c32491822
.
atlimit
)
c
:
RegisterEffect
(
e4
)
end
function
c32491822
.
spfilter
(
c
)
...
...
script/c38369349.lua
View file @
9163afd2
...
...
@@ -32,14 +32,10 @@ function c38369349.initial_effect(c)
e4
:
SetCondition
(
c38369349
.
dircon
)
c
:
RegisterEffect
(
e4
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e5
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e5
:
SetTarget
(
c38369349
.
attg
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
)
e5
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e5
:
SetCondition
(
c38369349
.
atcon
)
e5
:
SetValue
(
c38369349
.
at
val
)
e5
:
SetValue
(
c38369349
.
at
limit
)
c
:
RegisterEffect
(
e5
)
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -105,12 +101,9 @@ end
function
c38369349
.
atcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
c38369349
.
atkfilter
,
e
:
GetHandlerPlayer
(),
0
,
LOCATION_MZONE
,
1
,
nil
)
end
function
c38369349
.
at
tg
(
e
,
c
)
function
c38369349
.
at
limit
(
e
,
c
)
return
not
c
:
IsType
(
TYPE_TOON
)
end
function
c38369349
.
atval
(
e
,
c
)
return
c
==
e
:
GetHandler
()
end
function
c38369349
.
atklimit
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
script/c45298492.lua
View file @
9163afd2
...
...
@@ -6,12 +6,10 @@ function c45298492.initial_effect(c)
--cannot be battle target
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e1
:
SetTarget
(
c45298492
.
tg
)
e1
:
SetValue
(
aux
.
imval1
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetValue
(
c45298492
.
atlimit
)
c
:
RegisterEffect
(
e1
)
--battle indes
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -23,7 +21,7 @@ function c45298492.initial_effect(c)
e2
:
SetValue
(
c45298492
.
valcon
)
c
:
RegisterEffect
(
e2
)
end
function
c45298492
.
tg
(
e
,
c
)
function
c45298492
.
atlimit
(
e
,
c
)
return
c
~=
e
:
GetHandler
()
and
c
:
IsRace
(
RACE_WARRIOR
)
end
function
c45298492
.
valcon
(
e
,
re
,
r
,
rp
)
...
...
script/c46239604.lua
View file @
9163afd2
...
...
@@ -19,15 +19,13 @@ function c46239604.initial_effect(c)
e2
:
SetTarget
(
c46239604
.
target
)
e2
:
SetOperation
(
c46239604
.
operation
)
c
:
RegisterEffect
(
e2
)
--at
limit
--atlimit
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e3
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e3
:
SetTarget
(
c46239604
.
atlimit
)
e3
:
SetValue
(
aux
.
imval1
)
e3
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e3
:
SetValue
(
c46239604
.
atlimit
)
c
:
RegisterEffect
(
e3
)
end
function
c46239604
.
atlimit
(
e
,
c
)
...
...
script/c46502013.lua
View file @
9163afd2
...
...
@@ -5,16 +5,14 @@ function c46502013.initial_effect(c)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
c
:
RegisterEffect
(
e1
)
--cannot be battle target
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e1
:
SetRange
(
LOCATION_SZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCondition
(
c46502013
.
con
)
e1
:
SetTarget
(
c46502013
.
tg
)
e1
:
SetValue
(
aux
.
imval1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e2
:
SetCondition
(
c46502013
.
con
)
e2
:
SetValue
(
c46502013
.
atlimit
)
c
:
RegisterEffect
(
e2
)
end
function
c46502013
.
con
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsPosition
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
2
,
nil
,
POS_FACEUP_ATTACK
)
...
...
@@ -22,6 +20,6 @@ end
function
c46502013
.
tfilter
(
c
,
atk
)
return
c
:
IsFaceup
()
and
c
:
GetAttack
()
<
atk
end
function
c46502013
.
tg
(
e
,
c
)
function
c46502013
.
atlimit
(
e
,
c
)
return
c
:
IsFaceup
()
and
not
Duel
.
IsExistingMatchingCard
(
c46502013
.
tfilter
,
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
1
,
c
,
c
:
GetAttack
())
end
script/c47737087.lua
View file @
9163afd2
...
...
@@ -19,16 +19,12 @@ function c47737087.initial_effect(c)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_DEFENCE_ATTACK
)
e3
:
SetCondition
(
c47737087
.
dacon
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e4
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e4
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e4
:
SetCondition
(
c47737087
.
dacon
)
e4
:
SetValue
(
c47737087
.
val
)
e4
:
SetValue
(
1
)
c
:
RegisterEffect
(
e4
)
--atkdown
local
e5
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -44,9 +40,6 @@ end
function
c47737087
.
dacon
(
e
)
return
e
:
GetHandler
():
IsDefencePos
()
end
function
c47737087
.
val
(
e
,
c
)
return
c
==
e
:
GetHandler
()
end
function
c47737087
.
rdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsDefencePos
()
and
c
==
Duel
.
GetAttacker
()
and
Duel
.
GetAttackTarget
()
==
nil
and
c
:
GetEffectCount
(
EFFECT_DIRECT_ATTACK
)
==
1
...
...
script/c48179391.lua
View file @
9163afd2
...
...
@@ -35,16 +35,14 @@ function c48179391.initial_effect(c)
e4
:
SetCountLimit
(
1
)
e4
:
SetValue
(
c48179391
.
valcon
)
c
:
RegisterEffect
(
e4
)
--
--
atk limit
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetRange
(
LOCATION_SZONE
)
e5
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e5
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e5
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e1
:
SetRange
(
LOCATION_FZONE
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e5
:
SetCondition
(
c48179391
.
atkcon
)
e5
:
SetTarget
(
c48179391
.
atktg
)
e5
:
SetValue
(
aux
.
imval1
)
e5
:
SetValue
(
c48179391
.
atlimit
)
c
:
RegisterEffect
(
e5
)
end
function
c48179391
.
actcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
@@ -78,6 +76,6 @@ end
function
c48179391
.
atkfilter
(
c
,
atk
)
return
c
:
IsFaceup
()
and
c
:
GetAttack
()
<
atk
end
function
c48179391
.
at
ktg
(
e
,
c
)
function
c48179391
.
at
limit
(
e
,
c
)
return
not
Duel
.
IsExistingMatchingCard
(
c48179391
.
atkfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
c
,
c
:
GetAttack
())
end
script/c48582558.lua
View file @
9163afd2
...
...
@@ -35,12 +35,10 @@ function c48582558.activate(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e3
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e3
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e3
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e3
:
SetCondition
(
c48582558
.
atkcon
)
e3
:
SetTarget
(
c48582558
.
atktg
)
e3
:
SetValue
(
aux
.
imval1
)
e3
:
SetValue
(
c48582558
.
atlimit
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e3
:
SetLabelObject
(
tc
)
e3
:
SetLabel
(
tc
:
GetRealFieldID
())
...
...
@@ -50,6 +48,6 @@ end
function
c48582558
.
atkcon
(
e
)
return
e
:
GetLabelObject
():
GetRealFieldID
()
==
e
:
GetLabel
()
end
function
c48582558
.
at
ktg
(
e
,
c
)
function
c48582558
.
at
limit
(
e
,
c
)
return
c
:
GetRealFieldID
()
~=
e
:
GetLabel
()
end
script/c50449881.lua
View file @
9163afd2
...
...
@@ -18,12 +18,10 @@ function c50449881.initial_effect(c)
--atk limit
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e2
:
SetTarget
(
c50449881
.
atlimit
)
e2
:
SetValue
(
aux
.
imval1
)
e2
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e2
:
SetValue
(
c50449881
.
atlimit
)
c
:
RegisterEffect
(
e2
)
end
function
c50449881
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c51085303.lua
View file @
9163afd2
...
...
@@ -18,12 +18,10 @@ function c51085303.initial_effect(c)
--
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e3
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e3
:
SetTarget
(
c51085303
.
attg
)
e3
:
SetValue
(
aux
.
imval1
)
e3
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e3
:
SetValue
(
c51085303
.
atlimit
)
c
:
RegisterEffect
(
e3
)
end
function
c51085303
.
adcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -45,6 +43,6 @@ function c51085303.adop(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterEffect
(
e2
)
end
end
function
c51085303
.
at
tg
(
e
,
c
)
function
c51085303
.
at
limit
(
e
,
c
)
return
c
:
IsFacedown
()
or
not
c
:
IsCode
(
51085303
)
end
script/c54635862.lua
View file @
9163afd2
...
...
@@ -14,12 +14,10 @@ function c54635862.initial_effect(c)
--atk limit
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e2
:
SetTarget
(
c54635862
.
atlimit
)
e2
:
SetValue
(
aux
.
imval1
)
e2
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e2
:
SetValue
(
c54635862
.
atlimit
)
c
:
RegisterEffect
(
e2
)
end
function
c54635862
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c55401221.lua
View file @
9163afd2
...
...
@@ -3,14 +3,12 @@ function c55401221.initial_effect(c)
--cannot be battle target
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e1
:
SetTarget
(
c55401221
.
tg
)
e1
:
SetValue
(
aux
.
imval1
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetValue
(
c55401221
.
atlimit
)
c
:
RegisterEffect
(
e1
)
end
function
c55401221
.
tg
(
e
,
c
)
function
c55401221
.
atlimit
(
e
,
c
)
return
c
:
IsRace
(
RACE_THUNDER
)
and
c
:
GetCode
()
~=
55401221
end
script/c6330307.lua
View file @
9163afd2
...
...
@@ -79,30 +79,28 @@ function c6330307.atkop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_EXTRA_ATTACK
)
e2
:
SetValue
(
1
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_
BATTLE
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_
DAMAGE_CAL
)
ec
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_CANNOT_DIRECT_ATTACK
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_
BATTLE
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_
DAMAGE_CAL
)
ec
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e4
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
+
EFFECT_FLAG_SET_AVAILABLE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e4
:
SetLabelObject
(
at
)
e4
:
SetTarget
(
c6330307
.
exttg
)
e4
:
SetValue
(
c6330307
.
extval
)
e4
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_BATTLE
)
e4
:
SetValue
(
c6330307
.
exttg
)
e4
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_DAMAGE_CAL
)
ec
:
RegisterEffect
(
e4
)
e3
:
SetLabelObject
(
e4
)
e2
:
SetLabelObject
(
e3
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e5
:
SetLabelObject
(
e2
)
e5
:
SetOperation
(
aux
.
atrst
)
e5
:
SetReset
(
RESET_PHASE
+
PHASE_
BATTLE
)
e5
:
SetOperation
(
c6330307
.
atrst
)
e5
:
SetReset
(
RESET_PHASE
+
PHASE_
DAMAGE_CAL
)
Duel
.
RegisterEffect
(
e5
,
tp
)
end
end
...
...
@@ -110,6 +108,13 @@ function c6330307.exttg(e,c)
local
tc
=
e
:
GetLabelObject
()
return
c
~=
tc
end
function
c6330307
.
extval
(
e
,
c
)
return
c
==
e
:
GetHandler
()
function
c6330307
.
atrst
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e2
=
e
:
GetLabelObject
()
local
e3
=
e2
:
GetLabelObject
()
local
e4
=
e3
:
GetLabelObject
()
if
eg
:
GetFirst
()
~=
e2
:
GetHandler
()
then
e2
:
Reset
()
e3
:
Reset
()
e4
:
Reset
()
end
end
script/c63730624.lua
View file @
9163afd2
...
...
@@ -33,14 +33,12 @@ function c63730624.initial_effect(c)
c
:
RegisterEffect
(
e4
)
--atk
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e5
:
SetRange
(
LOCATION_SZONE
)
e5
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e5
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e1
:
SetRange
(
LOCATION_SZONE
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e5
:
SetCondition
(
c63730624
.
ocon1
)
e5
:
SetTarget
(
c63730624
.
otg1
)
e5
:
SetValue
(
aux
.
imval1
)
e5
:
SetValue
(
c63730624
.
atlimit
)
c
:
RegisterEffect
(
e5
)
--destroy
local
e6
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -77,7 +75,7 @@ function c63730624.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c63730624
.
scon1
(
e
)
return
Duel
.
GetTurnPlayer
()
==
e
:
GetHandler
():
GetControler
()
return
e
:
GetHandler
():
GetEquipTarget
()
and
Duel
.
GetTurnPlayer
()
==
e
:
GetHandler
():
GetControler
()
end
function
c63730624
.
scon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
and
Duel
.
GetAttacker
()
==
e
:
GetHandler
():
GetEquipTarget
()
...
...
@@ -99,7 +97,7 @@ end
function
c63730624
.
ocon1
(
e
)
return
Duel
.
GetTurnPlayer
()
~=
e
:
GetHandler
():
GetControler
()
end
function
c63730624
.
otg1
(
e
,
c
)
function
c63730624
.
atlimit
(
e
,
c
)
return
c
~=
e
:
GetHandler
():
GetEquipTarget
()
end
function
c63730624
.
ocon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c65458948.lua
View file @
9163afd2
...
...
@@ -32,14 +32,10 @@ function c65458948.initial_effect(c)
e4
:
SetCondition
(
c65458948
.
dircon
)
c
:
RegisterEffect
(
e4
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e5
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e5
:
SetTarget
(
c65458948
.
attg
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
)
e5
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e5
:
SetCondition
(
c65458948
.
atcon
)
e5
:
SetValue
(
c65458948
.
at
val
)
e5
:
SetValue
(
c65458948
.
at
limit
)
c
:
RegisterEffect
(
e5
)
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -105,12 +101,9 @@ end
function
c65458948
.
atcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
c65458948
.
atkfilter
,
e
:
GetHandlerPlayer
(),
0
,
LOCATION_MZONE
,
1
,
nil
)
end
function
c65458948
.
at
tg
(
e
,
c
)
function
c65458948
.
at
limit
(
e
,
c
)
return
not
c
:
IsType
(
TYPE_TOON
)
end
function
c65458948
.
atval
(
e
,
c
)
return
c
==
e
:
GetHandler
()
end
function
c65458948
.
atklimit
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
script/c66865880.lua
View file @
9163afd2
...
...
@@ -8,13 +8,11 @@ function c66865880.initial_effect(c)
--
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e2
:
SetCondition
(
c66865880
.
con
)
e2
:
SetTarget
(
c66865880
.
target
)
e2
:
SetValue
(
aux
.
imval1
)
e2
:
SetValue
(
c66865880
.
atlimit
)
c
:
RegisterEffect
(
e2
)
end
function
c66865880
.
cfilter
(
c
)
...
...
@@ -23,6 +21,6 @@ end
function
c66865880
.
con
(
e
)
return
Duel
.
IsExistingMatchingCard
(
c66865880
.
cfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c66865880
.
targe
t
(
e
,
c
)
function
c66865880
.
atlimi
t
(
e
,
c
)
return
c
:
IsFacedown
()
or
c
:
GetCode
()
~=
31305911
end
script/c67511500.lua
View file @
9163afd2
...
...
@@ -3,12 +3,10 @@ function c67511500.initial_effect(c)
--cannot be battle target
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e1
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsRace
,
RACE_DRAGON
))
e1
:
SetValue
(
aux
.
imval1
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetValue
(
aux
.
TargetBoolFunction
(
Card
.
IsRace
,
RACE_DRAGON
))
c
:
RegisterEffect
(
e1
)
--destroy replace
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
script/c68170903.lua
View file @
9163afd2
...
...
@@ -9,17 +9,14 @@ function c68170903.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c68170903
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
--
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_
BE
_BATTLE_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_
SELECT
_BATTLE_TARGET
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetTarget
(
c68170903
.
target
)
e1
:
SetValue
(
aux
.
imval1
)
e1
:
SetValue
(
c68170903
.
atlimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c68170903
.
targe
t
(
e
,
c
)
function
c68170903
.
atlimi
t
(
e
,
c
)
return
c
:
IsFacedown
()
end
script/c6924874.lua
View file @
9163afd2
...
...
@@ -3,12 +3,10 @@ function c6924874.initial_effect(c)
--at limit
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e1
:
SetTarget
(
c6924874
.
atlimit
)
e1
:
SetValue
(
aux
.
imval1
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetValue
(
c6924874
.
atlimit
)
c
:
RegisterEffect
(
e1
)
--atk/def
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
script/c70458081.lua
View file @
9163afd2
...
...
@@ -3,12 +3,10 @@ function c70458081.initial_effect(c)
--cannot be battle target
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e1
:
SetTarget
(
c70458081
.
bttg
)
e1
:
SetValue
(
aux
.
imval1
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetValue
(
c70458081
.
atlimit
)
c
:
RegisterEffect
(
e1
)
--destroy replace
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -20,7 +18,7 @@ function c70458081.initial_effect(c)
e2
:
SetOperation
(
c70458081
.
repop
)
c
:
RegisterEffect
(
e2
)
end
function
c70458081
.
bttg
(
e
,
c
)
function
c70458081
.
atlimit
(
e
,
c
)
return
c
:
IsSetCard
(
0x9f
)
and
c
~=
e
:
GetHandler
()
end
function
c70458081
.
repfilter
(
c
,
tp
)
...
...
script/c71411377.lua
View file @
9163afd2
...
...
@@ -5,7 +5,6 @@ function c71411377.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e1
:
SetTarget
(
c71411377
.
atlimit
)
e1
:
SetValue
(
aux
.
imval1
)
...
...
script/c71519605.lua
View file @
9163afd2
...
...
@@ -13,13 +13,11 @@ function c71519605.initial_effect(c)
--attack limit
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e2
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e2
:
SetCondition
(
c71519605
.
atcon
)
e2
:
SetTarget
(
c71519605
.
atlimit
)
e2
:
SetValue
(
aux
.
imval1
)
e2
:
SetValue
(
c71519605
.
atlimit
)
c
:
RegisterEffect
(
e2
)
end
function
c71519605
.
atcon
(
e
)
...
...
script/c73219648.lua
View file @
9163afd2
...
...
@@ -19,12 +19,10 @@ function c73219648.initial_effect(c)
--cannot be battle target
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e3
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e3
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e3
:
SetTarget
(
c73219648
.
atktg
)
e3
:
SetValue
(
aux
.
imval1
)
e3
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e3
:
SetValue
(
c73219648
.
atktg
)
c
:
RegisterEffect
(
e3
)
end
function
c73219648
.
mtop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c75162696.lua
View file @
9163afd2
...
...
@@ -14,12 +14,10 @@ function c75162696.initial_effect(c)
--cannot be battle target
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e2
:
SetTarget
(
c75162696
.
tg
)
e2
:
SetValue
(
aux
.
imval1
)
e2
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e2
:
SetValue
(
c75162696
.
tg
)
c
:
RegisterEffect
(
e2
)
end
function
c75162696
.
tg
(
e
,
c
)
...
...
script/c75292259.lua
View file @
9163afd2
...
...
@@ -19,36 +19,36 @@ function c75292259.atop(e,tp,eg,ep,ev,re,r,rp)
local
bc
=
c
:
GetBattleTarget
()
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
75292259
,
0
))
then
--Duel.ChainAttack(e:GetHandler():GetBattleTarget())
local
ct
=
c
:
GetAttackAnnouncedCount
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EFFECT_EXTRA_ATTACK
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_
BATTLE
)
e1
:
SetValue
(
ct
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_
DAMAGE_CAL
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_CANNOT_DIRECT_ATTACK
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_
BATTLE
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_
DAMAGE_CAL
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
+
EFFECT_FLAG_SET_AVAILABLE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetLabelObject
(
bc
)
e3
:
SetTarget
(
c75292259
.
exttg
)
e3
:
SetValue
(
c75292259
.
extval
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_BATTLE
)
e3
:
SetValue
(
c75292259
.
exttg
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_DAMAGE_CAL
)
c
:
RegisterEffect
(
e3
)
e2
:
SetLabelObject
(
e3
)
e1
:
SetLabelObject
(
e2
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e4
:
SetLabelObject
(
e1
)
e4
:
SetOperation
(
aux
.
atrst
)
e4
:
SetReset
(
RESET_PHASE
+
PHASE_
BATTLE
)
e4
:
SetOperation
(
c75292259
.
atrst
)
e4
:
SetReset
(
RESET_PHASE
+
PHASE_
DAMAGE_CAL
)
Duel
.
RegisterEffect
(
e4
,
tp
)
end
end
...
...
@@ -56,6 +56,13 @@ function c75292259.exttg(e,c)
local
tc
=
e
:
GetLabelObject
()
return
c
~=
tc
end
function
c75292259
.
extval
(
e
,
c
)
return
c
==
e
:
GetHandler
()
function
c75292259
.
atrst
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
e
:
GetLabelObject
()
local
e2
=
e1
:
GetLabelObject
()
local
e3
=
e2
:
GetLabelObject
()
if
eg
:
GetFirst
()
~=
e1
:
GetHandler
()
then
e1
:
Reset
()
e2
:
Reset
()
e3
:
Reset
()
end
end
script/c75363626.lua
View file @
9163afd2
...
...
@@ -13,12 +13,10 @@ function c75363626.initial_effect(c)
--cannot be battle target
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e2
:
SetTarget
(
c75363626
.
atktg
)
e2
:
SetValue
(
aux
.
imval1
)
e2
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e2
:
SetValue
(
c75363626
.
atktg
)
c
:
RegisterEffect
(
e2
)
end
function
c75363626
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c75367227.lua
View file @
9163afd2
...
...
@@ -6,12 +6,10 @@ function c75367227.initial_effect(c)
--cannot be battle target
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetTarget
(
c75367227
.
tg
)
e1
:
SetValue
(
aux
.
imval1
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetValue
(
c75367227
.
tg
)
c
:
RegisterEffect
(
e1
)
--destroy
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
script/c7617062.lua
View file @
9163afd2
...
...
@@ -16,12 +16,10 @@ function c7617062.initial_effect(c)
--atklimit
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e3
:
SetRange
(
LOCATION_FZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e3
:
SetTarget
(
c7617062
.
bttg
)
e3
:
SetValue
(
aux
.
imval1
)
e3
:
SetValue
(
c7617062
.
bttg
)
c
:
RegisterEffect
(
e3
)
--direct attack
local
e4
=
Effect
.
CreateEffect
(
c
)
...
...
script/c7625614.lua
View file @
9163afd2
...
...
@@ -12,13 +12,11 @@ function c7625614.initial_effect(c)
--atk target
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e2
:
SetCondition
(
c7625614
.
atkcon
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTarget
(
c7625614
.
atktg
)
e2
:
SetValue
(
aux
.
imval1
)
e2
:
SetValue
(
c7625614
.
atktg
)
c
:
RegisterEffect
(
e2
)
--Equip limit
local
e4
=
Effect
.
CreateEffect
(
c
)
...
...
script/c77084837.lua
View file @
9163afd2
...
...
@@ -23,17 +23,11 @@ function c77084837.initial_effect(c)
e4
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
c
:
RegisterEffect
(
e4
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e5
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e5
:
SetValue
(
c77084837
.
vala
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
)
e5
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e5
:
SetValue
(
1
)
c
:
RegisterEffect
(
e5
)
end
function
c77084837
.
vala
(
e
,
c
)
return
c
==
e
:
GetHandler
()
end
function
c77084837
.
retreg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
--to hand
...
...
script/c79636594.lua
View file @
9163afd2
...
...
@@ -3,12 +3,10 @@ function c79636594.initial_effect(c)
--cannot be battle target
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e1
:
SetTarget
(
c79636594
.
bttg
)
e1
:
SetValue
(
aux
.
imval1
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetValue
(
c79636594
.
bttg
)
c
:
RegisterEffect
(
e1
)
--spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
script/c80304126.lua
View file @
9163afd2
...
...
@@ -3,12 +3,10 @@ function c80304126.initial_effect(c)
--cannot be battle target
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e1
:
SetTarget
(
c80304126
.
tg
)
e1
:
SetValue
(
aux
.
imval1
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetValue
(
c80304126
.
tg
)
c
:
RegisterEffect
(
e1
)
end
function
c80304126
.
tg
(
e
,
c
)
...
...
script/c82260502.lua
View file @
9163afd2
...
...
@@ -3,12 +3,10 @@ function c82260502.initial_effect(c)
--at limit
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e1
:
SetTarget
(
c82260502
.
atlimit
)
e1
:
SetValue
(
aux
.
imval1
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetValue
(
c82260502
.
atlimit
)
c
:
RegisterEffect
(
e1
)
end
function
c82260502
.
atlimit
(
e
,
c
)
...
...
script/c82670878.lua
View file @
9163afd2
...
...
@@ -100,12 +100,10 @@ function c82670878.adop(e,tp,eg,ep,ev,re,r,rp)
--at limit
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e3
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e3
:
SetTarget
(
c82670878
.
atlimit
)
e3
:
SetValue
(
aux
.
imval1
)
e3
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e3
:
SetValue
(
c82670878
.
atlimit
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e3
)
end
...
...
script/c85446833.lua
View file @
9163afd2
...
...
@@ -6,15 +6,13 @@ function c85446833.initial_effect(c)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
c
:
RegisterEffect
(
e1
)
--atklimit
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetRange
(
LOCATION_SZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetTarget
(
c85446833
.
target
)
e1
:
SetValue
(
aux
.
imval1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e2
:
SetValue
(
c85446833
.
target
)
c
:
RegisterEffect
(
e2
)
end
function
c85446833
.
target
(
e
,
c
)
return
c
:
IsPosition
(
POS_FACEUP_ATTACK
)
and
c
:
GetAttack
()
==
0
...
...
script/c87294988.lua
View file @
9163afd2
...
...
@@ -3,12 +3,10 @@ function c87294988.initial_effect(c)
--cannot be battle target
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e1
:
SetTarget
(
c87294988
.
bttg
)
e1
:
SetValue
(
aux
.
imval1
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetValue
(
c87294988
.
bttg
)
c
:
RegisterEffect
(
e1
)
--summon success
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
script/c9024367.lua
View file @
9163afd2
...
...
@@ -2,13 +2,9 @@
function
c9024367
.
initial_effect
(
c
)
--atklimit
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetTarget
(
c9024367
.
bttg
)
e1
:
SetValue
(
c9024367
.
btval
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e1
:
SetValue
(
c9024367
.
bttg
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -36,9 +32,6 @@ end
function
c9024367
.
bttg
(
e
,
c
)
return
c
:
IsFacedown
()
or
not
c
:
IsRace
(
RACE_DRAGON
)
end
function
c9024367
.
btval
(
e
,
c
)
return
c
==
e
:
GetHandler
()
end
function
c9024367
.
atkcon
(
e
)
local
ph
=
Duel
.
GetCurrentPhase
()
local
bc
=
e
:
GetHandler
():
GetBattleTarget
()
...
...
script/c90640901.lua
View file @
9163afd2
--リバース・バスター
function
c90640901
.
initial_effect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e1
:
SetValue
(
c90640901
.
vala
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -30,7 +27,7 @@ function c90640901.initial_effect(c)
c
:
RegisterEffect
(
e4
)
end
function
c90640901
.
vala
(
e
,
c
)
return
c
==
e
:
GetHandler
()
return
not
c
:
IsFacedown
()
end
function
c90640901
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
script/c90960358.lua
View file @
9163afd2
...
...
@@ -32,14 +32,10 @@ function c90960358.initial_effect(c)
e4
:
SetCondition
(
c90960358
.
dircon
)
c
:
RegisterEffect
(
e4
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e5
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e5
:
SetTarget
(
c90960358
.
attg
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
)
e5
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e5
:
SetCondition
(
c90960358
.
atcon
)
e5
:
SetValue
(
c90960358
.
at
val
)
e5
:
SetValue
(
c90960358
.
at
limit
)
c
:
RegisterEffect
(
e5
)
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -106,12 +102,9 @@ end
function
c90960358
.
atcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
c90960358
.
atkfilter
,
e
:
GetHandlerPlayer
(),
0
,
LOCATION_MZONE
,
1
,
nil
)
end
function
c90960358
.
at
tg
(
e
,
c
)
function
c90960358
.
at
limit
(
e
,
c
)
return
not
c
:
IsType
(
TYPE_TOON
)
end
function
c90960358
.
atval
(
e
,
c
)
return
c
==
e
:
GetHandler
()
end
function
c90960358
.
atklimit
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
script/c91420254.lua
View file @
9163afd2
...
...
@@ -28,12 +28,10 @@ function c91420254.initial_effect(c)
--cannot be battle target
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e4
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e4
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e4
:
SetTarget
(
c91420254
.
bttg
)
e4
:
SetValue
(
aux
.
imval1
)
e4
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e4
:
SetValue
(
c91420254
.
bttg
)
c
:
RegisterEffect
(
e4
)
end
function
c91420254
.
sccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c91559748.lua
View file @
9163afd2
...
...
@@ -13,12 +13,10 @@ function c91559748.initial_effect(c)
--cannot be battle target
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e2
:
SetTarget
(
c91559748
.
tg
)
e2
:
SetValue
(
aux
.
imval1
)
e2
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e2
:
SetValue
(
c91559748
.
tg
)
c
:
RegisterEffect
(
e2
)
end
function
c91559748
.
tg
(
e
,
c
)
...
...
script/c91842653.lua
View file @
9163afd2
...
...
@@ -32,14 +32,10 @@ function c91842653.initial_effect(c)
e4
:
SetCondition
(
c91842653
.
dircon
)
c
:
RegisterEffect
(
e4
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e5
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e5
:
SetTarget
(
c91842653
.
attg
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
)
e5
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e5
:
SetCondition
(
c91842653
.
atcon
)
e5
:
SetValue
(
c91842653
.
at
val
)
e5
:
SetValue
(
c91842653
.
at
limit
)
c
:
RegisterEffect
(
e5
)
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -105,12 +101,9 @@ end
function
c91842653
.
atcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
c91842653
.
atkfilter
,
e
:
GetHandlerPlayer
(),
0
,
LOCATION_MZONE
,
1
,
nil
)
end
function
c91842653
.
at
tg
(
e
,
c
)
function
c91842653
.
at
limit
(
e
,
c
)
return
not
c
:
IsType
(
TYPE_TOON
)
end
function
c91842653
.
atval
(
e
,
c
)
return
c
==
e
:
GetHandler
()
end
function
c91842653
.
atklimit
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
script/c95466842.lua
View file @
9163afd2
...
...
@@ -3,12 +3,10 @@ function c95466842.initial_effect(c)
--at limit
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e1
:
SetTarget
(
c95466842
.
atlimit
)
e1
:
SetValue
(
aux
.
imval1
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetValue
(
c95466842
.
atlimit
)
c
:
RegisterEffect
(
e1
)
--atkup
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
script/c9666558.lua
View file @
9163afd2
...
...
@@ -3,12 +3,10 @@ function c9666558.initial_effect(c)
--cannot be battle target
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e1
:
SetTarget
(
c9666558
.
tg
)
e1
:
SetValue
(
aux
.
imval1
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetValue
(
c9666558
.
tg
)
c
:
RegisterEffect
(
e1
)
end
function
c9666558
.
tg
(
e
,
c
)
...
...
script/c99348756.lua
View file @
9163afd2
...
...
@@ -3,12 +3,10 @@ function c99348756.initial_effect(c)
--cannot be battle target
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e1
:
SetTarget
(
c99348756
.
atktg
)
e1
:
SetValue
(
aux
.
imval1
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetValue
(
c99348756
.
atktg
)
c
:
RegisterEffect
(
e1
)
--spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
script/c99795159.lua
View file @
9163afd2
...
...
@@ -8,12 +8,10 @@ function c99795159.initial_effect(c)
--atklimit
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetTarget
(
c99795159
.
bttg
)
e2
:
SetValue
(
aux
.
imval1
)
e2
:
SetValue
(
c99795159
.
atlimit
)
c
:
RegisterEffect
(
e2
)
--direct attack
local
e3
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -33,7 +31,7 @@ function c99795159.initial_effect(c)
e4
:
SetValue
(
c99795159
.
val
)
c
:
RegisterEffect
(
e4
)
end
function
c99795159
.
bttg
(
e
,
c
)
function
c99795159
.
atlimit
(
e
,
c
)
return
c
:
IsFacedown
()
end
function
c99795159
.
dirtg
(
e
,
c
)
...
...
script/constant.lua
View file @
9163afd2
...
...
@@ -469,6 +469,7 @@ EFFECT_CHANGE_RANK_FINAL =315 --
EFFECT_SPSUMMON_PROC_G
=
320
--P召唤规则
EFFECT_SPSUMMON_COUNT_LIMIT
=
330
--特殊召唤次数限制
EFFECT_LEFT_SPSUMMON_COUNT
=
331
--
EFFECT_CANNOT_SELECT_BATTLE_TARGET
=
332
--下面是诱发效果的诱发事件、时点 (如果是TYPE_SINGLE则自己发生以下事件后触发,如果TYPE_FIELD则场上任何卡发生以下事件都触发)
EVENT_STARTUP
=
1000
--游戏开始时
...
...
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