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
267bb33c
Commit
267bb33c
authored
Apr 26, 2015
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
d589bd45
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
86 additions
and
50 deletions
+86
-50
script/c17086528.lua
script/c17086528.lua
+3
-11
script/c30079770.lua
script/c30079770.lua
+5
-4
script/c31292357.lua
script/c31292357.lua
+9
-9
script/c32146097.lua
script/c32146097.lua
+1
-1
script/c4081665.lua
script/c4081665.lua
+1
-0
script/c44481227.lua
script/c44481227.lua
+1
-0
script/c4807253.lua
script/c4807253.lua
+7
-3
script/c67696066.lua
script/c67696066.lua
+3
-2
script/c68819554.lua
script/c68819554.lua
+1
-0
script/c70479321.lua
script/c70479321.lua
+14
-7
script/c71692913.lua
script/c71692913.lua
+16
-5
script/c7864030.lua
script/c7864030.lua
+1
-0
script/c79531196.lua
script/c79531196.lua
+20
-2
script/c79757784.lua
script/c79757784.lua
+4
-6
No files found.
script/c17086528.lua
View file @
267bb33c
...
@@ -30,10 +30,8 @@ function c17086528.initial_effect(c)
...
@@ -30,10 +30,8 @@ function c17086528.initial_effect(c)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
--damage 0
--damage 0
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
)
e5
:
SetCode
(
EVENT_PRE_BATTLE_DAMAGE
)
e5
:
SetCode
(
EFFECT_NO_BATTLE_DAMAGE
)
e5
:
SetCondition
(
c17086528
.
damcon
)
e5
:
SetOperation
(
c17086528
.
damop
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
--atk
--atk
local
e6
=
Effect
.
CreateEffect
(
c
)
local
e6
=
Effect
.
CreateEffect
(
c
)
...
@@ -48,7 +46,7 @@ function c17086528.initial_effect(c)
...
@@ -48,7 +46,7 @@ function c17086528.initial_effect(c)
end
end
function
c17086528
.
rkfilter
(
c
,
tp
)
function
c17086528
.
rkfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_XYZ
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_XYZ
)
and
Duel
.
IsExisting
MatchingCard
(
c17086528
.
lvfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
,
c
:
GetRank
())
and
Duel
.
IsExisting
Target
(
c17086528
.
lvfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
,
c
:
GetRank
())
end
end
function
c17086528
.
lvfilter
(
c
,
rk
)
function
c17086528
.
lvfilter
(
c
,
rk
)
return
c
:
IsFaceup
()
and
c
:
IsLevelAbove
(
5
)
and
c
:
GetLevel
()
~=
rk
return
c
:
IsFaceup
()
and
c
:
IsLevelAbove
(
5
)
and
c
:
GetLevel
()
~=
rk
...
@@ -80,12 +78,6 @@ function c17086528.slcon(e)
...
@@ -80,12 +78,6 @@ function c17086528.slcon(e)
local
tp
=
e
:
GetHandlerPlayer
()
local
tp
=
e
:
GetHandlerPlayer
()
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_ONFIELD
,
0
)
>
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_ONFIELD
)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_ONFIELD
,
0
)
>
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_ONFIELD
)
end
end
function
c17086528
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
end
function
c17086528
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeBattleDamage
(
ep
,
0
)
end
function
c17086528
.
atkfilter
(
c
,
atk
)
function
c17086528
.
atkfilter
(
c
,
atk
)
return
c
:
IsFaceup
()
and
c
:
GetAttack
()
~=
atk
return
c
:
IsFaceup
()
and
c
:
GetAttack
()
~=
atk
end
end
...
...
script/c30079770.lua
View file @
267bb33c
...
@@ -20,11 +20,12 @@ end
...
@@ -20,11 +20,12 @@ end
function
c30079770
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c30079770
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
local
atk
=
e
:
GetHandler
():
GetBaseAttack
()
local
atk
=
e
:
GetHandler
():
GetBaseAttack
()
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetParam
(
atk
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
atk
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
atk
)
end
end
function
c30079770
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c30079770
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
local
c
=
e
:
GetHandler
()
Duel
.
Damage
(
p
,
d
,
REASON_EFFECT
)
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
local
atk
=
c
:
GetBaseAttack
()
Duel
.
Damage
(
1
-
tp
,
atk
,
REASON_EFFECT
)
end
end
end
script/c31292357.lua
View file @
267bb33c
...
@@ -44,28 +44,28 @@ function c31292357.cttg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -44,28 +44,28 @@ function c31292357.cttg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c31292357
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c31292357
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
AddCounter
(
0x3036
,
1
)
then
if
c
:
IsRelateToEffect
(
e
)
and
c
:
AddCounter
(
0x3036
,
1
)
~=
0
then
if
c
:
GetCounter
(
0x3036
)
==
3
then
if
c
:
GetCounter
(
0x3036
)
==
3
then
Duel
.
RaiseSingleEvent
(
c
,
31292357
,
e
,
0
,
0
,
tp
,
0
)
Duel
.
RaiseSingleEvent
(
c
,
31292357
,
e
,
0
,
0
,
tp
,
0
)
end
end
local
re
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_EFFECT
)
local
cid
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_CHAIN_ID
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CHANGE_DAMAGE
)
e1
:
SetCode
(
EFFECT_CHANGE_DAMAGE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetLabel
Object
(
re
)
e1
:
SetLabel
(
cid
)
e1
:
SetValue
(
c31292357
.
damval
)
e1
:
SetValue
(
c31292357
.
damval
)
e1
:
SetReset
(
RESET_CHAIN
)
e1
:
SetReset
(
RESET_CHAIN
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
end
end
function
c31292357
.
damval
(
e
,
re
,
val
,
r
,
rp
,
rc
)
function
c31292357
.
damval
(
e
,
re
,
val
,
r
,
rp
,
rc
)
if
re
==
e
:
GetLabelObject
()
then
local
cc
=
Duel
.
GetCurrentChain
()
return
0
if
cc
==
0
or
bit
.
band
(
r
,
REASON_EFFECT
)
==
0
then
return
val
end
else
local
cid
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_CHAIN_ID
)
return
val
if
cid
~=
e
:
GetLabel
()
then
return
val
end
end
return
0
end
end
function
c31292357
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c31292357
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -73,7 +73,7 @@ function c31292357.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -73,7 +73,7 @@ function c31292357.atkop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e1
:
SetValue
(
3300
)
e1
:
SetValue
(
3300
)
e1
:
SetReset
(
RESET_EVENT
+
0x1f
e
0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1f
f
0000
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_SET_DEFENCE_FINAL
)
e2
:
SetCode
(
EFFECT_SET_DEFENCE_FINAL
)
...
...
script/c32146097.lua
View file @
267bb33c
...
@@ -16,7 +16,7 @@ function c32146097.drcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -16,7 +16,7 @@ function c32146097.drcon(e,tp,eg,ep,ev,re,r,rp)
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_ONFIELD
,
0
)
==
0
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_ONFIELD
,
0
)
==
0
end
end
function
c32146097
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c32146097
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
2
)
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
2
)
Duel
.
SetTargetParam
(
2
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
2
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
2
)
...
...
script/c4081665.lua
View file @
267bb33c
...
@@ -16,6 +16,7 @@ function c4081665.initial_effect(c)
...
@@ -16,6 +16,7 @@ function c4081665.initial_effect(c)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetCountLimit
(
1
,
4081665
)
e2
:
SetCondition
(
c4081665
.
damcon
)
e2
:
SetCondition
(
c4081665
.
damcon
)
e2
:
SetCost
(
c4081665
.
damcost
)
e2
:
SetCost
(
c4081665
.
damcost
)
e2
:
SetTarget
(
c4081665
.
damtg
)
e2
:
SetTarget
(
c4081665
.
damtg
)
...
...
script/c44481227.lua
View file @
267bb33c
...
@@ -42,6 +42,7 @@ function c44481227.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -42,6 +42,7 @@ function c44481227.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SelectTarget
(
tp
,
c44481227
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c44481227
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
end
function
c44481227
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c44481227
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
if
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
if
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
...
...
script/c4807253.lua
View file @
267bb33c
...
@@ -37,12 +37,13 @@ end
...
@@ -37,12 +37,13 @@ end
function
c4807253
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c4807253
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
local
cid
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_CHAIN_ID
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CHANGE_DAMAGE
)
e1
:
SetCode
(
EFFECT_CHANGE_DAMAGE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetLabel
Object
(
re
)
e1
:
SetLabel
(
cid
)
e1
:
SetValue
(
c4807253
.
damval
)
e1
:
SetValue
(
c4807253
.
damval
)
e1
:
SetReset
(
RESET_CHAIN
)
e1
:
SetReset
(
RESET_CHAIN
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
...
@@ -64,8 +65,11 @@ function c4807253.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -64,8 +65,11 @@ function c4807253.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
function
c4807253
.
damval
(
e
,
re
,
val
,
r
,
rp
,
rc
)
function
c4807253
.
damval
(
e
,
re
,
val
,
r
,
rp
,
rc
)
if
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
re
==
e
:
GetLabelObject
()
then
return
0
end
local
cc
=
Duel
.
GetCurrentChain
()
return
val
if
cc
==
0
or
bit
.
band
(
r
,
REASON_EFFECT
)
==
0
then
return
val
end
local
cid
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_CHAIN_ID
)
if
cid
~=
e
:
GetLabel
()
then
return
val
end
return
0
end
end
function
c4807253
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
function
c4807253
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
not
c
:
IsSetCard
(
0xc6
)
return
not
c
:
IsSetCard
(
0xc6
)
...
...
script/c67696066.lua
View file @
267bb33c
...
@@ -25,18 +25,19 @@ function c67696066.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -25,18 +25,19 @@ function c67696066.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c67696066
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c67696066
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
tp
,
1000
)
end
end
function
c67696066
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c67696066
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
_FINAL
)
e1
:
SetValue
(
0
)
e1
:
SetValue
(
0
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_SET_DEFENCE
)
e2
:
SetCode
(
EFFECT_SET_DEFENCE
_FINAL
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
...
...
script/c68819554.lua
View file @
267bb33c
...
@@ -26,6 +26,7 @@ function c68819554.initial_effect(c)
...
@@ -26,6 +26,7 @@ function c68819554.initial_effect(c)
e3
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e3
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetRange
(
LOCATION_GRAVE
)
e3
:
SetRange
(
LOCATION_GRAVE
)
e3
:
SetCountLimit
(
1
,
68819554
)
e3
:
SetCost
(
c68819554
.
thcost
)
e3
:
SetCost
(
c68819554
.
thcost
)
e3
:
SetTarget
(
c68819554
.
thtg
)
e3
:
SetTarget
(
c68819554
.
thtg
)
e3
:
SetOperation
(
c68819554
.
thop
)
e3
:
SetOperation
(
c68819554
.
thop
)
...
...
script/c70479321.lua
View file @
267bb33c
...
@@ -15,6 +15,7 @@ function c70479321.initial_effect(c)
...
@@ -15,6 +15,7 @@ function c70479321.initial_effect(c)
e2
:
SetRange
(
LOCATION_PZONE
)
e2
:
SetRange
(
LOCATION_PZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCondition
(
c70479321
.
atkcon
)
e2
:
SetTarget
(
c70479321
.
atktg
)
e2
:
SetTarget
(
c70479321
.
atktg
)
e2
:
SetOperation
(
c70479321
.
atkop
)
e2
:
SetOperation
(
c70479321
.
atkop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
...
@@ -38,14 +39,20 @@ function c70479321.initial_effect(c)
...
@@ -38,14 +39,20 @@ function c70479321.initial_effect(c)
e5
:
SetOperation
(
c70479321
.
atkop2
)
e5
:
SetOperation
(
c70479321
.
atkop2
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
function
c70479321
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c70479321
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
Duel
.
GetAttacker
()
local
d
=
Duel
.
GetAttackTarget
()
local
d
=
Duel
.
GetAttackTarget
()
if
d
and
not
d
:
IsControler
(
tp
)
then
if
d
and
a
:
GetControler
()
~=
d
:
GetControler
()
then
d
=
d
:
GetBattleTarget
()
if
a
:
IsControler
(
tp
)
then
e
:
SetLabelObject
(
a
)
end
else
e
:
SetLabelObject
(
d
)
end
if
chkc
then
return
chkc
==
d
end
return
true
if
chk
==
0
then
return
d
and
d
:
IsOnField
()
and
d
:
IsCanBeEffectTarget
()
end
else
return
false
end
Duel
.
SetTargetCard
(
d
)
end
function
c70479321
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
tc
=
e
:
GetLabelObject
()
if
chkc
then
return
chkc
==
tc
end
if
chk
==
0
then
return
tc
:
IsOnField
()
and
tc
:
IsCanBeEffectTarget
()
end
Duel
.
SetTargetCard
(
tc
)
end
end
function
c70479321
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c70479321
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
...
...
script/c71692913.lua
View file @
267bb33c
...
@@ -50,10 +50,10 @@ function c71692913.xyzop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -50,10 +50,10 @@ function c71692913.xyzop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c71692913
.
xyzlv
(
e
,
c
,
rc
)
function
c71692913
.
xyzlv
(
e
,
c
,
rc
)
return
bit
.
lshift
(
e
:
GetHandler
():
GetRank
(),
16
)
return
c
:
GetRank
(
)
end
end
function
c71692913
.
disfilter
(
c
)
function
c71692913
.
disfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
not
c
:
IsDisabled
(
)
return
aux
.
disfilter1
(
c
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
end
end
function
c71692913
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c71692913
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c71692913
.
disfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c71692913
.
disfilter
(
chkc
)
end
...
@@ -63,19 +63,30 @@ function c71692913.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -63,19 +63,30 @@ function c71692913.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
g
,
1
,
0
,
0
)
end
end
function
c71692913
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c71692913
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
(
)
and
tc
:
IsRelateToEffect
(
e
)
then
if
((
tc
:
IsFaceup
()
and
not
tc
:
IsDisabled
())
or
tc
:
IsType
(
TYPE_TRAPMONSTER
)
)
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
NegateRelatedChain
(
tc
,
RESET_TURN_SET
)
Duel
.
NegateRelatedChain
(
tc
,
RESET_TURN_SET
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
()
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
()
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetValue
(
RESET_TURN_SET
)
e2
:
SetValue
(
RESET_TURN_SET
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
if
tc
:
IsType
(
TYPE_TRAPMONSTER
)
then
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetCode
(
EFFECT_DISABLE_TRAPMONSTER
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
)
tc
:
RegisterEffect
(
e3
)
end
end
end
end
end
script/c7864030.lua
View file @
267bb33c
...
@@ -11,6 +11,7 @@ function c7864030.initial_effect(c)
...
@@ -11,6 +11,7 @@ function c7864030.initial_effect(c)
e1
:
SetTarget
(
c7864030
.
target1
)
e1
:
SetTarget
(
c7864030
.
target1
)
e1
:
SetOperation
(
c7864030
.
operation1
)
e1
:
SetOperation
(
c7864030
.
operation1
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--change battle target
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e2
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
...
...
script/c79531196.lua
View file @
267bb33c
...
@@ -32,17 +32,35 @@ function c79531196.tgop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -32,17 +32,35 @@ function c79531196.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c79531196
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c79531196
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
tc
and
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
~=
0
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
if
tc
and
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
~=
0
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
and
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_CODE
)
e1
:
SetCode
(
EFFECT_CHANGE_CODE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
tc
:
GetCode
())
e1
:
SetValue
(
tc
:
GetCode
())
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET
_END
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE
_END
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
79531196
,
0
))
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e2
:
SetLabelObject
(
e1
)
e2
:
SetOperation
(
c79531196
.
rstop
)
c
:
RegisterEffect
(
e2
)
end
end
end
end
function
c79531196
.
rstop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
e1
=
e
:
GetLabelObject
()
e1
:
Reset
()
Duel
.
HintSelection
(
Group
.
FromCards
(
c
))
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
end
function
c79531196
.
cfilter
(
c
)
function
c79531196
.
cfilter
(
c
)
return
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsAbleToRemoveAsCost
()
return
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsAbleToRemoveAsCost
()
end
end
...
...
script/c79757784.lua
View file @
267bb33c
...
@@ -50,19 +50,17 @@ function c79757784.damtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -50,19 +50,17 @@ function c79757784.damtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c79757784
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c79757784
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
c79757784
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c79757784
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
500
)
Duel
.
SetTargetParam
(
800
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
800
)
end
end
function
c79757784
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c79757784
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
not
tc
:
IsImmuneToEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
-
8
00
)
e1
:
SetValue
(
-
5
00
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
Duel
.
Damage
(
1
-
tp
,
8
00
,
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
5
00
,
REASON_EFFECT
)
end
end
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