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
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
MyCard
ygopro
Commits
467e4db9
Commit
467e4db9
authored
Jan 30, 2014
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
056c85f2
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
30 additions
and
21 deletions
+30
-21
script/c16825874.lua
script/c16825874.lua
+2
-2
script/c21768554.lua
script/c21768554.lua
+2
-1
script/c25774450.lua
script/c25774450.lua
+1
-2
script/c30312361.lua
script/c30312361.lua
+4
-5
script/c36405256.lua
script/c36405256.lua
+6
-2
script/c64605089.lua
script/c64605089.lua
+1
-1
script/c67957315.lua
script/c67957315.lua
+5
-5
script/c8198620.lua
script/c8198620.lua
+1
-1
script/c84298614.lua
script/c84298614.lua
+7
-1
script/c9952083.lua
script/c9952083.lua
+1
-1
No files found.
script/c16825874.lua
View file @
467e4db9
...
@@ -50,12 +50,12 @@ function c16825874.cop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -50,12 +50,12 @@ function c16825874.cop(e,tp,eg,ep,ev,re,r,rp)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e2
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e2
:
SetReset
(
RESET_EVENT
+
0x1f
c
0000
)
e2
:
SetReset
(
RESET_EVENT
+
0x1f
e
0000
)
c
:
GetReasonCard
():
RegisterEffect
(
e2
)
c
:
GetReasonCard
():
RegisterEffect
(
e2
)
--disable
--disable
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_DISABLE
)
e3
:
SetCode
(
EFFECT_DISABLE
)
e3
:
SetReset
(
RESET_EVENT
+
0x1f
c
0000
)
e3
:
SetReset
(
RESET_EVENT
+
0x1f
e
0000
)
c
:
GetReasonCard
():
RegisterEffect
(
e3
)
c
:
GetReasonCard
():
RegisterEffect
(
e3
)
end
end
script/c21768554.lua
View file @
467e4db9
...
@@ -36,9 +36,10 @@ function c21768554.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -36,9 +36,10 @@ function c21768554.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c21768554
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
and
Duel
.
IsExistingTarget
(
c21768554
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
ft
>
3
then
ft
=
3
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONTROL
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONTROL
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c21768554
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
ft
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c21768554
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
ft
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_CONTROL
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_CONTROL
,
g
,
g
:
GetCount
()
,
0
,
0
)
end
end
function
c21768554
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c21768554
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
script/c25774450.lua
View file @
467e4db9
...
@@ -26,8 +26,7 @@ function c25774450.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -26,8 +26,7 @@ function c25774450.activate(e,tp,eg,ep,ev,re,r,rp)
local
ex2
,
cg
=
Duel
.
GetOperationInfo
(
0
,
CATEGORY_CONTROL
)
local
ex2
,
cg
=
Duel
.
GetOperationInfo
(
0
,
CATEGORY_CONTROL
)
local
dc
=
dg
:
GetFirst
()
local
dc
=
dg
:
GetFirst
()
local
cc
=
cg
:
GetFirst
()
local
cc
=
cg
:
GetFirst
()
if
dc
:
IsRelateToEffect
(
e
)
and
cc
:
IsRelateToEffect
(
e
)
then
if
dc
:
IsRelateToEffect
(
e
)
and
cc
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
dc
,
REASON_EFFECT
)
~=
0
then
Duel
.
Destroy
(
dc
,
REASON_EFFECT
)
if
not
Duel
.
GetControl
(
cc
,
1
-
tp
,
0
,
0
)
and
not
cc
:
IsImmuneToEffect
(
e
)
and
cc
:
IsAbleToChangeControler
()
then
if
not
Duel
.
GetControl
(
cc
,
1
-
tp
,
0
,
0
)
and
not
cc
:
IsImmuneToEffect
(
e
)
and
cc
:
IsAbleToChangeControler
()
then
Duel
.
Destroy
(
cc
,
REASON_EFFECT
)
Duel
.
Destroy
(
cc
,
REASON_EFFECT
)
end
end
...
...
script/c30312361.lua
View file @
467e4db9
...
@@ -34,21 +34,20 @@ function c30312361.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -34,21 +34,20 @@ function c30312361.operation(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
~=
1
then
return
end
if
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
~=
1
then
return
end
local
code
=
tc
:
GetOriginalCode
()
local
code
=
tc
:
GetOriginalCode
()
local
ba
=
tc
:
GetBaseAttack
()
local
ba
=
tc
:
GetBaseAttack
()
local
reset_flag
=
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
c
:
CopyEffect
(
code
,
reset_flag
,
1
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
reset_flag
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
)
e1
:
SetCode
(
EFFECT_CHANGE_CODE
)
e1
:
SetCode
(
EFFECT_CHANGE_CODE
)
e1
:
SetValue
(
code
)
e1
:
SetValue
(
code
)
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
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetReset
(
reset_flag
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
)
e2
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e2
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e2
:
SetValue
(
ba
)
e2
:
SetValue
(
ba
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
c
:
CopyEffect
(
code
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
,
1
)
end
end
end
end
script/c36405256.lua
View file @
467e4db9
...
@@ -7,6 +7,7 @@ function c36405256.initial_effect(c)
...
@@ -7,6 +7,7 @@ function c36405256.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_CHAIN_UNIQUE
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_CHAIN_UNIQUE
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetCost
(
c36405256
.
spcost
)
e1
:
SetTarget
(
c36405256
.
sptg
)
e1
:
SetTarget
(
c36405256
.
sptg
)
e1
:
SetOperation
(
c36405256
.
spop
)
e1
:
SetOperation
(
c36405256
.
spop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
@@ -15,16 +16,19 @@ function c36405256.initial_effect(c)
...
@@ -15,16 +16,19 @@ function c36405256.initial_effect(c)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c36405256
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
36405256
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
36405256
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
c36405256
.
filter
(
c
,
e
,
tp
)
function
c36405256
.
filter
(
c
,
e
,
tp
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c36405256
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c36405256
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c36405256
.
filter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c36405256
.
filter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
36405256
)
==
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsLocation
(
LOCATION_MZONE
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
e
:
GetHandler
():
IsFaceup
(
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c36405256
.
filter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c36405256
.
filter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
RegisterFlagEffect
(
tp
,
36405256
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
function
c36405256
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c36405256
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
...
...
script/c64605089.lua
View file @
467e4db9
...
@@ -34,7 +34,7 @@ function c64605089.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -34,7 +34,7 @@ function c64605089.operation(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
at
=
Duel
.
GetAttacker
()
local
at
=
Duel
.
GetAttacker
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
and
at
:
IsFaceup
()
and
at
:
GetAttack
()
<
c
:
GetDefence
()
then
and
at
:
IsFaceup
()
and
at
:
IsRelateToBattle
()
and
at
:
GetAttack
()
<
c
:
GetDefence
()
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Destroy
(
at
,
REASON_EFFECT
)
Duel
.
Destroy
(
at
,
REASON_EFFECT
)
end
end
...
...
script/c67957315.lua
View file @
467e4db9
...
@@ -8,7 +8,6 @@ function c67957315.initial_effect(c)
...
@@ -8,7 +8,6 @@ function c67957315.initial_effect(c)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetHintTiming
(
TIMING_BATTLE_PHASE
)
e1
:
SetHintTiming
(
TIMING_BATTLE_PHASE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
c67957315
.
adcon
)
e1
:
SetCondition
(
c67957315
.
adcon
)
e1
:
SetCost
(
c67957315
.
adcost
)
e1
:
SetCost
(
c67957315
.
adcost
)
e1
:
SetOperation
(
c67957315
.
adop
)
e1
:
SetOperation
(
c67957315
.
adop
)
...
@@ -16,13 +15,14 @@ function c67957315.initial_effect(c)
...
@@ -16,13 +15,14 @@ function c67957315.initial_effect(c)
end
end
function
c67957315
.
adcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c67957315
.
adcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
and
Duel
.
GetCurrentChain
()
==
0
return
Duel
.
GetTurnPlayer
()
==
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
and
Duel
.
GetCurrentChain
()
==
0
and
(
e
:
GetHandler
()
==
Duel
.
GetAttacker
()
or
e
:
GetHandler
()
==
Duel
.
GetAttackTarget
())
end
end
function
c67957315
.
cfilter
(
c
)
function
c67957315
.
cfilter
(
c
)
return
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsDiscardable
()
return
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsDiscardable
()
and
c
:
IsAbleToGraveAsCost
()
end
end
function
c67957315
.
adcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c67957315
.
adcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c67957315
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c67957315
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
e
:
SetLabel
(
Duel
.
DiscardHand
(
tp
,
c67957315
.
cfilter
,
1
,
99
,
REASON_COST
+
REASON_DISCARD
)
)
Duel
.
DiscardHand
(
tp
,
c67957315
.
cfilter
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
end
end
function
c67957315
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c67957315
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -30,8 +30,8 @@ function c67957315.adop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -30,8 +30,8 @@ function c67957315.adop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
e
:
GetLabel
()
*
1000
)
e1
:
SetValue
(
1000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
+
RESET_PHASE
+
PHASE_
END
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
+
RESET_PHASE
+
PHASE_
BATTLE
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_UPDATE_DEFENCE
)
e2
:
SetCode
(
EFFECT_UPDATE_DEFENCE
)
...
...
script/c8198620.lua
View file @
467e4db9
...
@@ -35,7 +35,7 @@ function c8198620.splimit(e,se,sp,st)
...
@@ -35,7 +35,7 @@ function c8198620.splimit(e,se,sp,st)
end
end
function
c8198620
.
attg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c8198620
.
attg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
bc
=
e
:
GetHandler
():
GetBattleTarget
()
local
bc
=
e
:
GetHandler
():
GetBattleTarget
()
if
chk
==
0
then
return
bc
and
bc
:
IsRelateToBattle
()
and
bc
:
GetAttack
()
>
0
end
if
chk
==
0
then
return
bc
and
bc
:
IsRelateToBattle
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
end
end
...
...
script/c84298614.lua
View file @
467e4db9
...
@@ -6,6 +6,7 @@ function c84298614.initial_effect(c)
...
@@ -6,6 +6,7 @@ function c84298614.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e1
:
SetTarget
(
c84298614
.
target
)
e1
:
SetTarget
(
c84298614
.
target
)
e1
:
SetOperation
(
c84298614
.
operation
)
e1
:
SetOperation
(
c84298614
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
@@ -32,13 +33,15 @@ end
...
@@ -32,13 +33,15 @@ end
function
c84298614
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c84298614
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
c
:
SetCardTarget
(
tc
)
c
:
SetCardTarget
(
tc
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_OWNER_RELATE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
100
)
e1
:
SetValue
(
100
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetCondition
(
c84298614
.
rcon
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_UPDATE_DEFENCE
)
e2
:
SetCode
(
EFFECT_UPDATE_DEFENCE
)
...
@@ -49,6 +52,9 @@ function c84298614.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -49,6 +52,9 @@ function c84298614.operation(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterEffect
(
e3
)
tc
:
RegisterEffect
(
e3
)
end
end
end
end
function
c84298614
.
rcon
(
e
)
return
e
:
GetOwner
():
IsHasCardTarget
(
e
:
GetHandler
())
end
function
c84298614
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c84298614
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetHandler
():
GetFirstCardTarget
()
local
tc
=
e
:
GetHandler
():
GetFirstCardTarget
()
return
tc
and
eg
:
IsContains
(
tc
)
and
tc
:
IsReason
(
REASON_DESTROY
)
return
tc
and
eg
:
IsContains
(
tc
)
and
tc
:
IsReason
(
REASON_DESTROY
)
...
...
script/c9952083.lua
View file @
467e4db9
...
@@ -9,7 +9,7 @@ function c9952083.initial_effect(c)
...
@@ -9,7 +9,7 @@ function c9952083.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c9952083
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c9952083
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentChain
()
>
1
and
Duel
.
CheckChainUniqueness
()
return
Duel
.
GetCurrentChain
()
>
1
and
Duel
.
CheckChainUniqueness
()
and
Duel
.
GetTurnPlayer
()
==
tp
end
end
function
c9952083
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c9952083
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment