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
YGOPRO-520DIY
ygopro
Commits
15322377
Commit
15322377
authored
Apr 19, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EFFECT_CANNOT_SELECT_EFFECT_TARGET
parent
9163afd2
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
108 additions
and
98 deletions
+108
-98
ocgcore/card.cpp
ocgcore/card.cpp
+7
-1
ocgcore/effect.h
ocgcore/effect.h
+1
-0
script/c13756293.lua
script/c13756293.lua
+5
-7
script/c33655493.lua
script/c33655493.lua
+8
-8
script/c34822850.lua
script/c34822850.lua
+12
-9
script/c40583194.lua
script/c40583194.lua
+4
-9
script/c53550467.lua
script/c53550467.lua
+11
-12
script/c61380658.lua
script/c61380658.lua
+11
-9
script/c65025250.lua
script/c65025250.lua
+5
-7
script/c80208158.lua
script/c80208158.lua
+10
-8
script/c8102334.lua
script/c8102334.lua
+5
-7
script/c81471108.lua
script/c81471108.lua
+12
-4
script/c85909450.lua
script/c85909450.lua
+11
-10
script/c9264485.lua
script/c9264485.lua
+5
-7
script/constant.lua
script/constant.lua
+1
-0
No files found.
ocgcore/card.cpp
View file @
15322377
...
@@ -2376,13 +2376,19 @@ int32 card::is_capable_be_battle_target(card* pcard) {
...
@@ -2376,13 +2376,19 @@ int32 card::is_capable_be_battle_target(card* pcard) {
int32
card
::
is_capable_be_effect_target
(
effect
*
peffect
,
uint8
playerid
)
{
int32
card
::
is_capable_be_effect_target
(
effect
*
peffect
,
uint8
playerid
)
{
if
(
is_status
(
STATUS_SUMMONING
)
||
is_status
(
STATUS_BATTLE_DESTROYED
))
if
(
is_status
(
STATUS_SUMMONING
)
||
is_status
(
STATUS_BATTLE_DESTROYED
))
return
FALSE
;
return
FALSE
;
effect_set
eset
;
effect_set
eset
,
eset2
;
filter_effect
(
EFFECT_CANNOT_BE_EFFECT_TARGET
,
&
eset
);
filter_effect
(
EFFECT_CANNOT_BE_EFFECT_TARGET
,
&
eset
);
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
pduel
->
lua
->
add_param
(
playerid
,
PARAM_TYPE_INT
);
pduel
->
lua
->
add_param
(
playerid
,
PARAM_TYPE_INT
);
if
(
eset
[
i
]
->
get_value
(
peffect
,
1
))
if
(
eset
[
i
]
->
get_value
(
peffect
,
1
))
return
FALSE
;
return
FALSE
;
}
}
peffect
->
handler
->
filter_effect
(
EFFECT_CANNOT_SELECT_EFFECT_TARGET
,
&
eset2
);
for
(
int32
i
=
0
;
i
<
eset2
.
size
();
++
i
)
{
pduel
->
lua
->
add_param
(
this
,
PARAM_TYPE_CARD
);
if
(
eset2
[
i
]
->
get_value
(
peffect
,
1
))
return
FALSE
;
}
return
TRUE
;
return
TRUE
;
}
}
int32
card
::
is_can_be_fusion_material
(
uint8
ignore_mon
)
{
int32
card
::
is_can_be_fusion_material
(
uint8
ignore_mon
)
{
...
...
ocgcore/effect.h
View file @
15322377
...
@@ -375,6 +375,7 @@ public:
...
@@ -375,6 +375,7 @@ public:
#define EFFECT_SPSUMMON_COUNT_LIMIT 330
#define EFFECT_SPSUMMON_COUNT_LIMIT 330
#define EFFECT_LEFT_SPSUMMON_COUNT 331
#define EFFECT_LEFT_SPSUMMON_COUNT 331
#define EFFECT_CANNOT_SELECT_BATTLE_TARGET 332
#define EFFECT_CANNOT_SELECT_BATTLE_TARGET 332
#define EFFECT_CANNOT_SELECT_EFFECT_TARGET 333
#define EVENT_STARTUP 1000
#define EVENT_STARTUP 1000
#define EVENT_FLIP 1001
#define EVENT_FLIP 1001
...
...
script/c13756293.lua
View file @
15322377
...
@@ -6,12 +6,10 @@ function c13756293.initial_effect(c)
...
@@ -6,12 +6,10 @@ 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_
BE
_EFFECT_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_
SELECT
_EFFECT_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0
,
0xff
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetValue
(
c13756293
.
etarget
)
e1
:
SetTarget
(
c13756293
.
etarget
)
e1
:
SetValue
(
aux
.
tgoval
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--spsummon
--spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
@@ -24,8 +22,8 @@ function c13756293.initial_effect(c)
...
@@ -24,8 +22,8 @@ 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
,
c
)
function
c13756293
.
etarget
(
e
,
re
,
c
)
return
c
:
IsRace
(
RACE_DRAGON
)
return
c
:
Is
Location
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
and
c
:
Is
Race
(
RACE_DRAGON
)
end
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
)
...
...
script/c33655493.lua
View file @
15322377
...
@@ -4,20 +4,20 @@ function c33655493.initial_effect(c)
...
@@ -4,20 +4,20 @@ function c33655493.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetValue
(
c33655493
.
tg
)
e1
:
SetTarget
(
c33655493
.
tg
)
e1
:
SetValue
(
aux
.
imval1
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e2
:
SetCode
(
EFFECT_CANNOT_SELECT_EFFECT_TARGET
)
e2
:
SetTargetRange
(
0
,
0xff
)
e2
:
SetValue
(
c33655493
.
tglimit
)
e2
:
SetValue
(
c33655493
.
tglimit
)
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
,
rp
)
function
c33655493
.
tglimit
(
e
,
re
,
c
)
return
aux
.
tgoval
(
e
,
re
,
rp
)
and
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
return
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
and
c
:
GetCode
()
~=
33655493
end
end
script/c34822850.lua
View file @
15322377
...
@@ -27,16 +27,15 @@ function c34822850.initial_effect(c)
...
@@ -27,16 +27,15 @@ function c34822850.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_
BE
_BATTLE_TARGET
)
e4
:
SetCode
(
EFFECT_CANNOT_
SELECT
_BATTLE_TARGET
)
e4
:
SetRange
(
LOCATION_FZONE
)
e4
:
SetRange
(
LOCATION_FZONE
)
e4
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e4
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e4
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e4
:
SetValue
(
c34822850
.
atlimit
)
e4
:
SetTarget
(
c34822850
.
tgtg
)
e4
:
SetValue
(
aux
.
imval1
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
local
e5
=
e4
:
Clone
()
local
e5
=
e4
:
Clone
()
e5
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e5
:
SetCode
(
EFFECT_CANNOT_SELECT_EFFECT_TARGET
)
e5
:
SetValue
(
aux
.
tgoval
)
e5
:
SetTargetRange
(
0
,
0xff
)
e5
:
SetValue
(
c34822850
.
tglimit
)
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
)
...
@@ -61,6 +60,10 @@ end
...
@@ -61,6 +60,10 @@ end
function
c34822850
.
filter
(
c
,
lv
)
function
c34822850
.
filter
(
c
,
lv
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xbb
)
and
c
:
GetLevel
()
>
lv
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xbb
)
and
c
:
GetLevel
()
>
lv
end
end
function
c34822850
.
tgtg
(
e
,
c
)
function
c34822850
.
atlimit
(
e
,
c
)
return
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
function
c34822850
.
tglimit
(
e
,
re
,
c
)
return
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xbb
)
and
Duel
.
IsExistingMatchingCard
(
c34822850
.
filter
,
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
c
:
GetLevel
())
end
end
script/c40583194.lua
View file @
15322377
...
@@ -36,17 +36,12 @@ end
...
@@ -36,17 +36,12 @@ end
function
c40583194
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c40583194
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetOwner
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetOwner
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_EFFECT_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
+
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetTargetRange
(
0
,
0xff
)
e1
:
SetTarget
(
c40583194
.
etarget
)
e1
:
SetValue
(
c40583194
.
etarget
)
e1
:
SetValue
(
c40583194
.
evalue
)
e1
:
SetLabel
(
tp
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c40583194
.
etarget
(
e
,
c
)
function
c40583194
.
etarget
(
e
,
re
,
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsType
(
TYPE_MONSTER
)
end
end
function
c40583194
.
evalue
(
e
,
re
,
rp
)
return
rp
~=
e
:
GetLabel
()
and
aux
.
tgval
(
e
,
re
,
rp
)
end
script/c53550467.lua
View file @
15322377
...
@@ -4,23 +4,19 @@ function c53550467.initial_effect(c)
...
@@ -4,23 +4,19 @@ function c53550467.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCondition
(
c53550467
.
con
)
e1
:
SetCondition
(
c53550467
.
con
)
e1
:
SetTarget
(
c53550467
.
tg
)
e1
:
SetValue
(
c53550467
.
atlimit
)
e1
:
SetValue
(
aux
.
imval1
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--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
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTargetRange
(
0
,
0xff
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e2
:
SetCode
(
EFFECT_CANNOT_SELECT_EFFECT_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetCondition
(
c53550467
.
con
)
e2
:
SetCondition
(
c53550467
.
con
)
e2
:
SetTarget
(
c53550467
.
tg
)
e2
:
SetValue
(
c53550467
.
tglimit
)
e2
:
SetValue
(
aux
.
tgoval
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--destroy
--destroy
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
...
@@ -41,8 +37,11 @@ end
...
@@ -41,8 +37,11 @@ end
function
c53550467
.
con
(
e
)
function
c53550467
.
con
(
e
)
return
Duel
.
IsExistingMatchingCard
(
c53550467
.
cfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
())
return
Duel
.
IsExistingMatchingCard
(
c53550467
.
cfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
())
end
end
function
c53550467
.
tg
(
e
,
c
)
function
c53550467
.
atlimit
(
e
,
c
)
return
c
~=
e
:
GetHandler
()
and
c
:
GetAttack
()
<
1800
return
c
~=
e
:
GetHandler
()
and
c
:
IsFaceup
()
and
c
:
GetAttack
()
<
1800
end
function
c53550467
.
tglimit
(
e
,
re
,
c
)
return
c
~=
e
:
GetHandler
()
and
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
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
)
...
...
script/c61380658.lua
View file @
15322377
...
@@ -3,18 +3,20 @@ function c61380658.initial_effect(c)
...
@@ -3,18 +3,20 @@ function c61380658.initial_effect(c)
--untargetable
--untargetable
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_
BE
_BATTLE_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_
SELECT
_BATTLE_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetValue
(
c61380658
.
atlimit
)
e1
:
SetTarget
(
c61380658
.
target
)
e1
:
SetValue
(
aux
.
imval1
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e2
:
SetCode
(
EFFECT_CANNOT_SELECT_EFFECT_TARGET
)
e2
:
SetValue
(
aux
.
tgoval
)
e2
:
SetTargetRange
(
0
,
0xff
)
e2
:
SetValue
(
c61380658
.
tglimit
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c61380658
.
target
(
e
,
c
)
function
c61380658
.
atlimit
(
e
,
c
)
return
c
:
IsSetCard
(
0xe
)
and
c
~=
e
:
GetHandler
()
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xe
)
and
c
~=
e
:
GetHandler
()
end
function
c61380658
.
tglimit
(
e
,
re
,
c
)
return
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xe
)
and
c
~=
e
:
GetHandler
()
end
end
script/c65025250.lua
View file @
15322377
...
@@ -28,12 +28,10 @@ function c65025250.initial_effect(c)
...
@@ -28,12 +28,10 @@ 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_
BE
_EFFECT_TARGET
)
e4
:
SetCode
(
EFFECT_CANNOT_
SELECT
_EFFECT_TARGET
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e4
:
SetTargetRange
(
0
,
0xff
)
e4
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
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
)
...
@@ -60,6 +58,6 @@ function c65025250.posop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -60,6 +58,6 @@ function c65025250.posop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ChangePosition
(
c
,
POS_FACEUP_DEFENCE
)
Duel
.
ChangePosition
(
c
,
POS_FACEUP_DEFENCE
)
end
end
end
end
function
c65025250
.
tgtg
(
e
,
c
)
function
c65025250
.
tgtg
(
e
,
re
,
c
)
return
c
:
IsSetCard
(
0xb3
)
and
c
~=
e
:
GetHandler
(
)
return
c
~=
e
:
GetHandler
()
and
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xb3
)
end
end
script/c80208158.lua
View file @
15322377
...
@@ -5,15 +5,14 @@ function c80208158.initial_effect(c)
...
@@ -5,15 +5,14 @@ function c80208158.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e1
:
SetValue
(
c80208158
.
atlimit
)
e1
:
SetTarget
(
c80208158
.
tglimit
)
e1
:
SetValue
(
aux
.
imval1
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e2
:
SetCode
(
EFFECT_CANNOT_SELECT_EFFECT_TARGET
)
e2
:
SetValue
(
aux
.
tgoval
)
e2
:
SetTargetRange
(
0
,
0xff
)
e2
:
SetValue
(
c80208158
.
tglimit
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--spsummon
--spsummon
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
...
@@ -27,9 +26,12 @@ function c80208158.initial_effect(c)
...
@@ -27,9 +26,12 @@ function c80208158.initial_effect(c)
e3
:
SetOperation
(
c80208158
.
spop
)
e3
:
SetOperation
(
c80208158
.
spop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c80208158
.
tg
limit
(
e
,
c
)
function
c80208158
.
at
limit
(
e
,
c
)
return
c
~=
e
:
GetHandler
()
return
c
~=
e
:
GetHandler
()
end
end
function
c80208158
.
tglimit
(
e
,
re
,
c
)
return
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
~=
e
:
GetHandler
()
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
end
end
...
...
script/c8102334.lua
View file @
15322377
...
@@ -27,11 +27,9 @@ function c8102334.initial_effect(c)
...
@@ -27,11 +27,9 @@ function c8102334.initial_effect(c)
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e4
:
SetTargetRange
(
0
,
0xff
)
e4
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e4
:
SetCode
(
EFFECT_CANNOT_SELECT_EFFECT_TARGET
)
e4
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e4
:
SetValue
(
c8102334
.
tglimit
)
e4
:
SetTarget
(
c8102334
.
tglimit
)
e4
:
SetValue
(
aux
.
tgoval
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c8102334
.
distg
(
e
,
c
)
function
c8102334
.
distg
(
e
,
c
)
...
@@ -43,6 +41,6 @@ function c8102334.disop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -43,6 +41,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
,
c
)
function
c8102334
.
tglimit
(
e
,
re
,
c
)
return
c
~=
e
:
GetHandler
()
return
c
~=
e
:
GetHandler
()
and
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsLocation
(
LOCATION_MZONE
)
end
end
script/c81471108.lua
View file @
15322377
...
@@ -14,10 +14,12 @@ function c81471108.initial_effect(c)
...
@@ -14,10 +14,12 @@ 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_EQUIP
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e2
:
SetCode
(
EFFECT_CANNOT_SELECT_EFFECT_TARGET
)
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
)
...
@@ -68,6 +70,12 @@ end
...
@@ -68,6 +70,12 @@ 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
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
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
script/c85909450.lua
View file @
15322377
...
@@ -12,18 +12,16 @@ function c85909450.initial_effect(c)
...
@@ -12,18 +12,16 @@ function c85909450.initial_effect(c)
--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_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_
BE
_BATTLE_TARGET
)
e2
:
SetCode
(
EFFECT_CANNOT_
SELECT
_BATTLE_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetCondition
(
c85909450
.
effcon
)
e2
:
SetCondition
(
c85909450
.
effcon
)
e2
:
SetTarget
(
c85909450
.
target
)
e2
:
SetValue
(
c85909450
.
atlimit
)
e2
:
SetValue
(
aux
.
imval1
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_CANNOT_
BE
_EFFECT_TARGET
)
e3
:
SetCode
(
EFFECT_CANNOT_
SELECT
_EFFECT_TARGET
)
e3
:
Set
Property
(
EFFECT_FLAG_IGNORE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e3
:
Set
TargetRange
(
0
,
0xff
)
e3
:
SetValue
(
aux
.
tgoval
)
e3
:
SetValue
(
c85909450
.
tglimit
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--remove material
--remove material
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
...
@@ -39,8 +37,11 @@ end
...
@@ -39,8 +37,11 @@ end
function
c85909450
.
effcon
(
e
)
function
c85909450
.
effcon
(
e
)
return
e
:
GetHandler
():
GetOverlayCount
()
>
0
return
e
:
GetHandler
():
GetOverlayCount
()
>
0
end
end
function
c85909450
.
target
(
e
,
c
)
function
c85909450
.
atlimit
(
e
,
c
)
return
c
:
IsSetCard
(
0x64
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x64
)
end
function
c85909450
.
tglimit
(
e
,
re
,
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x64
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
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
...
...
script/c9264485.lua
View file @
15322377
...
@@ -3,15 +3,13 @@ function c9264485.initial_effect(c)
...
@@ -3,15 +3,13 @@ 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_
BE
_EFFECT_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_
SELECT
_EFFECT_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0
,
0xff
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetValue
(
c9264485
.
etarget
)
e1
:
SetTarget
(
c9264485
.
etarget
)
e1
:
SetValue
(
aux
.
tgoval
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c9264485
.
etarget
(
e
,
c
)
function
c9264485
.
etarget
(
e
,
re
,
c
)
local
code
=
c
:
GetCode
()
local
code
=
c
:
GetCode
()
return
c
ode
==
75830094
or
code
==
11224103
or
code
==
48229808
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
(
code
==
75830094
or
code
==
11224103
or
code
==
48229808
)
end
end
script/constant.lua
View file @
15322377
...
@@ -470,6 +470,7 @@ EFFECT_SPSUMMON_PROC_G =320 --P召唤规则
...
@@ -470,6 +470,7 @@ EFFECT_SPSUMMON_PROC_G =320 --P召唤规则
EFFECT_SPSUMMON_COUNT_LIMIT
=
330
--特殊召唤次数限制
EFFECT_SPSUMMON_COUNT_LIMIT
=
330
--特殊召唤次数限制
EFFECT_LEFT_SPSUMMON_COUNT
=
331
--
EFFECT_LEFT_SPSUMMON_COUNT
=
331
--
EFFECT_CANNOT_SELECT_BATTLE_TARGET
=
332
EFFECT_CANNOT_SELECT_BATTLE_TARGET
=
332
EFFECT_CANNOT_SELECT_EFFECT_TARGET
=
333
--下面是诱发效果的诱发事件、时点 (如果是TYPE_SINGLE则自己发生以下事件后触发,如果TYPE_FIELD则场上任何卡发生以下事件都触发)
--下面是诱发效果的诱发事件、时点 (如果是TYPE_SINGLE则自己发生以下事件后触发,如果TYPE_FIELD则场上任何卡发生以下事件都触发)
EVENT_STARTUP
=
1000
--游戏开始时
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