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
cb903fe8
Commit
cb903fe8
authored
Nov 21, 2012
by
Fluorohydride
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #340 from VanillaSalt/patch40
fix
parents
91bd2ec9
04986cc0
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
75 additions
and
51 deletions
+75
-51
ocgcore/processor.cpp
ocgcore/processor.cpp
+4
-12
script/c12469386.lua
script/c12469386.lua
+2
-1
script/c12940613.lua
script/c12940613.lua
+20
-17
script/c15894048.lua
script/c15894048.lua
+11
-0
script/c38369349.lua
script/c38369349.lua
+4
-0
script/c39823987.lua
script/c39823987.lua
+1
-1
script/c41442341.lua
script/c41442341.lua
+1
-1
script/c44125452.lua
script/c44125452.lua
+1
-1
script/c52158283.lua
script/c52158283.lua
+6
-7
script/c53183600.lua
script/c53183600.lua
+4
-0
script/c65458948.lua
script/c65458948.lua
+4
-0
script/c66818682.lua
script/c66818682.lua
+2
-2
script/c67159705.lua
script/c67159705.lua
+2
-1
script/c74298287.lua
script/c74298287.lua
+1
-1
script/c75014062.lua
script/c75014062.lua
+1
-1
script/c75132317.lua
script/c75132317.lua
+2
-1
script/c87774234.lua
script/c87774234.lua
+1
-1
script/c89258906.lua
script/c89258906.lua
+1
-1
script/c90020065.lua
script/c90020065.lua
+1
-1
script/c90960358.lua
script/c90960358.lua
+4
-0
script/c93599951.lua
script/c93599951.lua
+1
-1
script/c97403510.lua
script/c97403510.lua
+1
-1
No files found.
ocgcore/processor.cpp
View file @
cb903fe8
...
@@ -2552,21 +2552,13 @@ int32 field::process_battle_command(uint16 step) {
...
@@ -2552,21 +2552,13 @@ int32 field::process_battle_command(uint16 step) {
if(core.select_cards.size() == 0 && pcard->operation_param == 0)
if(core.select_cards.size() == 0 && pcard->operation_param == 0)
continue;
continue;
core.attackable_cards.push_back(pcard);
core.attackable_cards.push_back(pcard);
if
(
pcard
->
is_affected_by_effect
(
EFFECT_FIRST_ATTACK
))
{
if(pcard->is_affected_by_effect(EFFECT_FIRST_ATTACK))
if
(
first_attack
.
size
())
{
first_attack.push_back(pcard);
first_attack
.
clear
();
must_attack
.
clear
();
core
.
attackable_cards
.
clear
();
break
;
}
else
{
core
.
attackable_cards
.
clear
();
core
.
attackable_cards
.
push_back
(
pcard
);
first_attack
.
push_back
(
pcard
);
}
}
if(pcard->is_affected_by_effect(EFFECT_MUST_ATTACK))
if(pcard->is_affected_by_effect(EFFECT_MUST_ATTACK))
must_attack.push_back(pcard);
must_attack.push_back(pcard);
}
}
if(first_attack.size())
core.attackable_cards = first_attack;
}
}
core.to_m2 = TRUE;
core.to_m2 = TRUE;
core.to_ep = TRUE;
core.to_ep = TRUE;
...
...
script/c12469386.lua
View file @
cb903fe8
...
@@ -20,7 +20,8 @@ function c12469386.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -20,7 +20,8 @@ function c12469386.spcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c12469386
.
filter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c12469386
.
filter
,
1
,
nil
,
tp
)
end
end
function
c12469386
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c12469386
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c12469386
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c12469386
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c12940613.lua
View file @
cb903fe8
--
リミッター解除
--
マドルチェ·マナー
function
c12940613
.
initial_effect
(
c
)
function
c12940613
.
initial_effect
(
c
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_TODECK
)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_TODECK
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetProperty
(
EFFECT_FLAG_
CARD_TARGET
+
EFFECT_FLAG_
DAMAGE_STEP
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
TIMING_DAMAGE_STEP
)
e1
:
SetHintTiming
(
TIMING_DAMAGE_STEP
)
e1
:
SetCondition
(
c12940613
.
condition
)
e1
:
SetCondition
(
c12940613
.
condition
)
e1
:
SetCost
(
c12940613
.
cost
)
e1
:
SetTarget
(
c12940613
.
target
)
e1
:
SetTarget
(
c12940613
.
target
)
e1
:
SetOperation
(
c12940613
.
activate
)
e1
:
SetOperation
(
c12940613
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
@@ -16,27 +15,30 @@ end
...
@@ -16,27 +15,30 @@ end
function
c12940613
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c12940613
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DAMAGE
or
not
Duel
.
IsDamageCalculated
()
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DAMAGE
or
not
Duel
.
IsDamageCalculated
()
end
end
function
c12940613
.
cfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x71
)
and
c
:
IsAbleToDeckAsCost
()
end
function
c12940613
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c12940613
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c12940613
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_COST
)
end
function
c12940613
.
filter
(
c
)
function
c12940613
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x71
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x71
)
end
end
function
c12940613
.
t
arget
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c12940613
.
t
dfilter1
(
c
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c12940613
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x71
)
and
c
:
IsAbleToDeck
()
end
end
function
c12940613
.
tdfilter
(
c
)
function
c12940613
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c12940613
.
tdfilter1
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c12940613
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingTarget
(
c12940613
.
tdfilter1
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c12940613
.
tdfilter1
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
1
,
0
,
0
)
end
function
c12940613
.
tdfilter2
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeck
()
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeck
()
end
end
function
c12940613
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c12940613
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoDeck
(
tc
,
nil
,
2
,
REASON_EFFECT
)
end
local
g
=
Duel
.
GetMatchingGroup
(
c12940613
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c12940613
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
tc
=
g
:
GetFirst
()
tc
=
g
:
GetFirst
()
if
not
tc
then
return
end
if
not
tc
then
return
end
while
tc
do
while
tc
do
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
@@ -50,8 +52,9 @@ function c12940613.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -50,8 +52,9 @@ function c12940613.activate(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
tc
=
g
:
GetNext
()
tc
=
g
:
GetNext
()
end
end
local
dg
=
Duel
.
GetMatchingGroup
(
c12940613
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
dg
=
Duel
.
GetMatchingGroup
(
c12940613
.
tdfilter
2
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
if
dg
:
GetCount
()
~=
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
12940613
,
0
))
then
if
dg
:
GetCount
()
~=
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
12940613
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
SendtoDeck
(
dg
:
Select
(
tp
,
1
,
1
,
nil
),
nil
,
2
,
REASON_EFFECT
)
Duel
.
SendtoDeck
(
dg
:
Select
(
tp
,
1
,
1
,
nil
),
nil
,
2
,
REASON_EFFECT
)
end
end
...
...
script/c15894048.lua
View file @
cb903fe8
...
@@ -4,14 +4,25 @@ function c15894048.initial_effect(c)
...
@@ -4,14 +4,25 @@ function c15894048.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_FIRST_ATTACK
)
e1
:
SetCode
(
EFFECT_FIRST_ATTACK
)
e1
:
SetCondition
(
c15894048
.
facon
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_MUST_ATTACK
)
e2
:
SetCode
(
EFFECT_MUST_ATTACK
)
e2
:
SetCondition
(
c15894048
.
facon
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_ATTACK_ALL
)
e3
:
SetCode
(
EFFECT_ATTACK_ALL
)
e3
:
SetCondition
(
c15894048
.
facon
)
e3
:
SetValue
(
1
)
e3
:
SetValue
(
1
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c15894048
.
filter
(
c
)
return
c
:
GetAttackAnnouncedCount
()
>
0
end
function
c15894048
.
facon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
return
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
>
0
and
not
Duel
.
IsExistingMatchingCard
(
c15894048
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
())
end
script/c38369349.lua
View file @
cb903fe8
...
@@ -6,6 +6,7 @@ function c38369349.initial_effect(c)
...
@@ -6,6 +6,7 @@ function c38369349.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
c38369349
.
splimit
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--special summon
--special summon
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
@@ -58,6 +59,9 @@ function c38369349.initial_effect(c)
...
@@ -58,6 +59,9 @@ function c38369349.initial_effect(c)
e8
:
SetOperation
(
c38369349
.
atop
)
e8
:
SetOperation
(
c38369349
.
atop
)
c
:
RegisterEffect
(
e8
)
c
:
RegisterEffect
(
e8
)
end
end
function
c38369349
.
splimit
(
e
,
se
,
sp
,
st
,
spos
,
tgp
)
return
Duel
.
IsExistingMatchingCard
(
c38369349
.
cfilter
,
tgp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
function
c38369349
.
cfilter
(
c
)
function
c38369349
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
15259703
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
15259703
)
end
end
...
...
script/c39823987.lua
View file @
cb903fe8
...
@@ -88,6 +88,6 @@ end
...
@@ -88,6 +88,6 @@ end
function
c39823987
.
spop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c39823987
.
spop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
tru
e
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
fals
e
,
false
,
POS_FACEUP
)
end
end
end
end
script/c41442341.lua
View file @
cb903fe8
...
@@ -14,7 +14,7 @@ function c41442341.initial_effect(c)
...
@@ -14,7 +14,7 @@ function c41442341.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c41442341
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c41442341
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
e
:
GetHandler
():
GetSummonType
(),
SUMMON_TYPE_ADVANCE
)
~=
0
return
bit
.
band
(
e
:
GetHandler
():
GetSummonType
(),
SUMMON_TYPE_ADVANCE
)
==
SUMMON_TYPE_ADVANCE
end
end
function
c41442341
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c41442341
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
2000
)
end
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
2000
)
end
...
...
script/c44125452.lua
View file @
cb903fe8
...
@@ -16,7 +16,7 @@ function c44125452.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -16,7 +16,7 @@ function c44125452.condition(e,tp,eg,ep,ev,re,r,rp)
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_DECK
)
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_DECK
)
end
end
function
c44125452
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c44125452
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
...
...
script/c52158283.lua
View file @
cb903fe8
--
ADチェンジャー
--
先史遺産コロッサル·ヘッド
function
c52158283
.
initial_effect
(
c
)
function
c52158283
.
initial_effect
(
c
)
--adchange
--adchange
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
@@ -17,7 +17,7 @@ function c52158283.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -17,7 +17,7 @@ function c52158283.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
end
end
function
c52158283
.
filter
(
c
)
function
c52158283
.
filter
(
c
)
return
c
:
Is
Position
(
POS_ATTACK
)
and
c
:
IsLevelAbove
(
3
)
return
c
:
Is
AttackPos
(
)
and
c
:
IsLevelAbove
(
3
)
end
end
function
c52158283
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c52158283
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c52158283
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c52158283
.
filter
(
chkc
)
end
...
@@ -30,14 +30,13 @@ function c52158283.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -30,14 +30,13 @@ function c52158283.operation(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsAttackPos
()
then
if
tc
:
IsAttackPos
()
then
local
opt
=
0
local
pos
=
0
if
tc
:
IsCanTurnSet
()
then
if
tc
:
IsCanTurnSet
()
then
opt
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
52158283
,
1
),
aux
.
Stringid
(
52158283
,
2
)
)
pos
=
Duel
.
SelectPosition
(
tp
,
tc
,
POS_DEFENCE
)
else
else
opt
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
52158283
,
1
)
)
pos
=
Duel
.
SelectPosition
(
tp
,
tc
,
POS_FACEUP_DEFENCE
)
end
end
if
opt
==
0
then
Duel
.
ChangePosition
(
tc
,
POS_FACEUP_DEFENCE
)
Duel
.
ChangePosition
(
tc
,
pos
)
else
Duel
.
ChangePosition
(
tc
,
POS_FACEDOWN_DEFENCE
)
end
else
else
Duel
.
ChangePosition
(
tc
,
0
,
0
,
POS_FACEDOWN_DEFENCE
,
POS_FACEUP_DEFENCE
)
Duel
.
ChangePosition
(
tc
,
0
,
0
,
POS_FACEDOWN_DEFENCE
,
POS_FACEUP_DEFENCE
)
end
end
...
...
script/c53183600.lua
View file @
cb903fe8
...
@@ -6,6 +6,7 @@ function c53183600.initial_effect(c)
...
@@ -6,6 +6,7 @@ function c53183600.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
c53183600
.
splimit
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--special summon
--special summon
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
@@ -58,6 +59,9 @@ function c53183600.initial_effect(c)
...
@@ -58,6 +59,9 @@ function c53183600.initial_effect(c)
e8
:
SetOperation
(
c53183600
.
atop
)
e8
:
SetOperation
(
c53183600
.
atop
)
c
:
RegisterEffect
(
e8
)
c
:
RegisterEffect
(
e8
)
end
end
function
c53183600
.
splimit
(
e
,
se
,
sp
,
st
,
spos
,
tgp
)
return
Duel
.
IsExistingMatchingCard
(
c53183600
.
cfilter
,
tgp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
function
c53183600
.
cfilter
(
c
)
function
c53183600
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
15259703
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
15259703
)
end
end
...
...
script/c65458948.lua
View file @
cb903fe8
...
@@ -6,6 +6,7 @@ function c65458948.initial_effect(c)
...
@@ -6,6 +6,7 @@ function c65458948.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
c65458948
.
splimit
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--special summon
--special summon
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
@@ -58,6 +59,9 @@ function c65458948.initial_effect(c)
...
@@ -58,6 +59,9 @@ function c65458948.initial_effect(c)
e8
:
SetOperation
(
c65458948
.
atop
)
e8
:
SetOperation
(
c65458948
.
atop
)
c
:
RegisterEffect
(
e8
)
c
:
RegisterEffect
(
e8
)
end
end
function
c65458948
.
splimit
(
e
,
se
,
sp
,
st
,
spos
,
tgp
)
return
Duel
.
IsExistingMatchingCard
(
c65458948
.
cfilter
,
tgp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
function
c65458948
.
cfilter
(
c
)
function
c65458948
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
15259703
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
15259703
)
end
end
...
...
script/c66818682.lua
View file @
cb903fe8
...
@@ -40,7 +40,7 @@ function c66818682.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -40,7 +40,7 @@ function c66818682.spcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
end
end
function
c66818682
.
spfilter
(
c
,
e
,
tp
)
function
c66818682
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
39823987
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
tru
e
,
false
)
return
c
:
IsCode
(
39823987
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
fals
e
,
false
)
end
end
function
c66818682
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c66818682
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c66818682
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c66818682
.
spfilter
(
chkc
,
e
,
tp
)
end
...
@@ -53,6 +53,6 @@ end
...
@@ -53,6 +53,6 @@ end
function
c66818682
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c66818682
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
tru
e
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
fals
e
,
false
,
POS_FACEUP
)
end
end
end
end
script/c67159705.lua
View file @
cb903fe8
...
@@ -26,6 +26,7 @@ function c67159705.initial_effect(c)
...
@@ -26,6 +26,7 @@ function c67159705.initial_effect(c)
e3
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e3
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e3
:
SetCode
(
EFFECT_DESTROY_SUBSTITUTE
)
e3
:
SetCode
(
EFFECT_DESTROY_SUBSTITUTE
)
e3
:
SetCondition
(
c67159705
.
uncon
)
e3
:
SetCondition
(
c67159705
.
uncon
)
e3
:
SetValue
(
1
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--eqlimit
--eqlimit
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
...
@@ -100,7 +101,7 @@ function c67159705.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -100,7 +101,7 @@ function c67159705.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
and
Duel
.
IsExistingTarget
(
c67159705
.
desfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
and
Duel
.
IsExistingTarget
(
c67159705
.
desfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c67159705
.
desfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c67159705
.
desfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_
SPECIAL_SUMMON
,
e
:
GetHandler
()
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_
DESTROY
,
g
,
1
,
0
,
0
)
end
end
function
c67159705
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c67159705
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
script/c74298287.lua
View file @
cb903fe8
...
@@ -37,7 +37,7 @@ function c74298287.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -37,7 +37,7 @@ function c74298287.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
RegisterFlagEffect
(
tp
,
74298287
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
74298287
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
function
c74298287
.
sptg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c74298287
.
sptg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
...
...
script/c75014062.lua
View file @
cb903fe8
...
@@ -21,7 +21,7 @@ end
...
@@ -21,7 +21,7 @@ end
function
c75014062
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c75014062
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
c75014062
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsOnField
()
and
c75014062
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c75014062
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c75014062
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
75014062
,
0
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
75014062
,
1
))
local
g
=
Duel
.
SelectTarget
(
tp
,
c75014062
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c75014062
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
nil
,
1
,
0
,
0x3001
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
nil
,
1
,
0
,
0x3001
)
end
end
...
...
script/c75132317.lua
View file @
cb903fe8
...
@@ -36,7 +36,8 @@ function c75132317.filter(c)
...
@@ -36,7 +36,8 @@ function c75132317.filter(c)
return
c
:
IsSetCard
(
0x7c
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsSSetable
()
return
c
:
IsSetCard
(
0x7c
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsSSetable
()
end
end
function
c75132317
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c75132317
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
e
:
GetHandler
():
IsFaceup
()
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c75132317
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
and
Duel
.
IsExistingMatchingCard
(
c75132317
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
end
end
function
c75132317
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c75132317
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c87774234.lua
View file @
cb903fe8
...
@@ -16,7 +16,7 @@ function c87774234.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -16,7 +16,7 @@ function c87774234.condition(e,tp,eg,ep,ev,re,r,rp)
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_DECK
)
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_DECK
)
end
end
function
c87774234
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c87774234
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
...
...
script/c89258906.lua
View file @
cb903fe8
...
@@ -27,7 +27,7 @@ function c89258906.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -27,7 +27,7 @@ function c89258906.condition(e,tp,eg,ep,ev,re,r,rp)
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_DECK
)
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_DECK
)
end
end
function
c89258906
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c89258906
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
...
...
script/c90020065.lua
View file @
cb903fe8
...
@@ -39,7 +39,7 @@ function c90020065.destg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -39,7 +39,7 @@ function c90020065.destg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c90020065
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c90020065
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsDestructable
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsDestructable
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
dam
=
g
:
GetSum
(
Card
.
GetAttack
)
local
dam
=
g
:
GetSum
(
Card
.
GetAttack
)
/
2
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
dam
,
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
dam
,
REASON_EFFECT
)
end
end
script/c90960358.lua
View file @
cb903fe8
...
@@ -6,6 +6,7 @@ function c90960358.initial_effect(c)
...
@@ -6,6 +6,7 @@ function c90960358.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
c90960358
.
splimit
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--special summon
--special summon
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
@@ -59,6 +60,9 @@ function c90960358.initial_effect(c)
...
@@ -59,6 +60,9 @@ function c90960358.initial_effect(c)
e8
:
SetValue
(
c90960358
.
val
)
e8
:
SetValue
(
c90960358
.
val
)
c
:
RegisterEffect
(
e8
)
c
:
RegisterEffect
(
e8
)
end
end
function
c90960358
.
splimit
(
e
,
se
,
sp
,
st
,
spos
,
tgp
)
return
Duel
.
IsExistingMatchingCard
(
c90960358
.
cfilter
,
tgp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
function
c90960358
.
cfilter
(
c
)
function
c90960358
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
15259703
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
15259703
)
end
end
...
...
script/c93599951.lua
View file @
cb903fe8
...
@@ -28,6 +28,6 @@ function c93599951.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -28,6 +28,6 @@ function c93599951.activate(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsDefencePos
()
then
if
tc
:
IsDefencePos
()
then
Duel
.
ChangePosition
(
tc
,
POS_FACEUP_ATTACK
)
Duel
.
ChangePosition
(
tc
,
POS_FACEUP_ATTACK
)
end
end
Duel
.
Chang
eAttacker
(
tc
)
Duel
.
Replac
eAttacker
(
tc
)
end
end
end
end
script/c97403510.lua
View file @
cb903fe8
...
@@ -73,7 +73,7 @@ function c97403510.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -73,7 +73,7 @@ function c97403510.spcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
and
e
:
GetHandler
():
GetOverlayCount
()
>
0
return
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
and
e
:
GetHandler
():
GetOverlayCount
()
>
0
end
end
function
c97403510
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c97403510
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
...
...
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