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
MobiusMei
ygopro
Commits
57ab359d
Commit
57ab359d
authored
Dec 26, 2012
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
97d5f3ec
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
69 additions
and
52 deletions
+69
-52
script/c24696097.lua
script/c24696097.lua
+3
-1
script/c27770341.lua
script/c27770341.lua
+5
-15
script/c34487429.lua
script/c34487429.lua
+1
-1
script/c35762283.lua
script/c35762283.lua
+1
-1
script/c4179255.lua
script/c4179255.lua
+3
-2
script/c41925941.lua
script/c41925941.lua
+9
-2
script/c4756629.lua
script/c4756629.lua
+3
-3
script/c56286179.lua
script/c56286179.lua
+5
-5
script/c58641905.lua
script/c58641905.lua
+1
-1
script/c74117290.lua
script/c74117290.lua
+1
-5
script/c78358521.lua
script/c78358521.lua
+3
-3
script/c83108603.lua
script/c83108603.lua
+5
-5
script/c8483333.lua
script/c8483333.lua
+25
-6
script/c97396380.lua
script/c97396380.lua
+1
-1
script/c97489701.lua
script/c97489701.lua
+3
-1
No files found.
script/c24696097.lua
View file @
57ab359d
...
...
@@ -29,6 +29,7 @@ function c24696097.initial_effect(c)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
24696097
,
2
))
e3
:
SetType
(
EFFECT_TYPE_TRIGGER_O
+
EFFECT_TYPE_FIELD
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
)
...
...
@@ -86,7 +87,8 @@ end
function
c24696097
.
dacon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetAttacker
():
GetControler
()
~=
tp
end
function
c24696097
.
datg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c24696097
.
datg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
==
Duel
.
GetAttacker
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
Duel
.
GetAttacker
():
IsCanBeEffectTarget
(
e
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
end
Duel
.
SetTargetCard
(
Duel
.
GetAttacker
())
...
...
script/c27770341.lua
View file @
57ab359d
...
...
@@ -42,25 +42,15 @@ function c27770341.addcount(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c27770341
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
7
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetRange
(
0xff
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetCountLimit
(
1
)
e1
:
SetTarget
(
c27770341
.
drtarget
)
e1
:
SetOperation
(
c27770341
.
droperation
)
c
:
RegisterEffect
(
e1
)
end
function
c27770341
.
drtarget
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
c27770341
[
tp
])
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
c27770341
[
tp
])
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c27770341
.
droperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
)
Duel
.
Draw
(
p
,
c27770341
[
tp
],
REASON_EFFECT
)
Duel
.
Hint
(
HINT_CARD
,
0
,
27770341
)
Duel
.
Draw
(
t
p
,
c27770341
[
tp
],
REASON_EFFECT
)
end
script/c34487429.lua
View file @
57ab359d
...
...
@@ -96,7 +96,7 @@ function c34487429.drcon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
IsExistingMatchingCard
(
c34487429
.
filter1
,
tp
,
LOCATION_SZONE
,
0
,
4
,
nil
)
end
function
c34487429
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
0
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
...
...
script/c35762283.lua
View file @
57ab359d
...
...
@@ -38,7 +38,7 @@ function c35762283.drcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c35762283
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
0
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
...
...
script/c4179255.lua
View file @
57ab359d
...
...
@@ -16,8 +16,9 @@ function c4179255.initial_effect(c)
e1
:
SetTarget
(
c4179255
.
drtg
)
e1
:
SetOperation
(
c4179255
.
drop
)
c
:
RegisterEffect
(
e1
)
--
equip change
--
destroy
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_DESTROY
)
e2
:
SetDescription
(
aux
.
Stringid
(
4179255
,
1
))
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
...
...
@@ -67,7 +68,7 @@ end
function
c4179255
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsPosition
(
POS_FACEUP_ATTACK
)
and
c4179255
.
check
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsPosition
(
POS_FACEUP_ATTACK
)
and
c4179255
.
check
()
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
end
script/c41925941.lua
View file @
57ab359d
...
...
@@ -6,9 +6,10 @@ function c41925941.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
TIMING_DAMAGE_CAL
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e1
:
SetProperty
(
EFFECT_FLAG_
CARD_TARGET
+
EFFECT_FLAG_
DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e1
:
SetCondition
(
c41925941
.
condition
)
e1
:
SetCost
(
c41925941
.
cost
)
e1
:
SetTarget
(
c41925941
.
target
)
e1
:
SetOperation
(
c41925941
.
operation
)
c
:
RegisterEffect
(
e1
)
end
...
...
@@ -22,7 +23,7 @@ function c41925941.condition(e,tp,eg,ep,ev,re,r,rp)
return
d
and
a
:
IsRace
(
RACE_FIEND
)
and
a
:
IsRelateToBattle
()
and
d
:
IsFaceup
()
and
d
:
IsRelateToBattle
()
else
e
:
SetLabelObject
(
a
)
return
a
and
a
:
IsFaceup
()
and
a
:
IsRace
(
RACE_FIEND
)
and
a
:
IsRelateToBattle
()
return
d
and
d
:
IsFaceup
()
and
d
:
IsRace
(
RACE_FIEND
)
and
d
:
IsRelateToBattle
()
and
a
:
IsFaceup
(
)
and
a
:
IsRelateToBattle
()
end
end
function
c41925941
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
@@ -42,6 +43,12 @@ function c41925941.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
PayLPCost
(
tp
,
cost
)
e
:
SetLabel
(
cost
)
end
function
c41925941
.
target
(
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
:
IsCanBeEffectTarget
(
e
)
end
Duel
.
SetTargetCard
(
tc
)
end
function
c41925941
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
bc
=
e
:
GetLabelObject
()
local
val
=
e
:
GetLabel
()
...
...
script/c4756629.lua
View file @
57ab359d
...
...
@@ -30,7 +30,7 @@ function c4756629.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
c4756629
.
rmfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0xa
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemove
()
return
c
:
IsSetCard
(
0xa
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemove
AsCost
()
and
Duel
.
IsExistingTarget
(
c4756629
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
c
)
end
function
c4756629
.
filter
(
c
)
...
...
@@ -41,7 +41,7 @@ function c4756629.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
and
Duel
.
IsExistingMatchingCard
(
c4756629
.
rmfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c4756629
.
rmfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
tp
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_
EFFEC
T
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_
COS
T
)
Duel
.
RegisterFlagEffect
(
tp
,
4756629
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
c4756629
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
@@ -104,7 +104,7 @@ function c4756629.decop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterFlagEffect
(
tp
,
4756630
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
c4756629
.
econ
(
e
)
return
Duel
.
GetFlagEffect
(
tp
,
4756631
)
~=
0
return
Duel
.
GetFlagEffect
(
e
:
GetHandlerPlayer
()
,
4756631
)
~=
0
end
function
c4756629
.
rfilter
(
e
,
c
)
return
c
:
IsSetCard
(
0xa
)
...
...
script/c56286179.lua
View file @
57ab359d
...
...
@@ -13,8 +13,8 @@ function c56286179.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
56286179
,
0
))
e2
:
SetCategory
(
CATEGORY_DRAW
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e2
:
SetCode
(
EVENT_DAMAGE
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetCode
(
EVENT_
BATTLE_
DAMAGE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCondition
(
c56286179
.
drcon
)
...
...
@@ -26,13 +26,13 @@ function c56286179.ptg(e,c)
return
c
:
IsRace
(
RACE_WARRIOR
)
end
function
c56286179
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
r
~=
REASON_BATTLE
or
ep
==
tp
then
return
false
end
if
ep
==
tp
then
return
false
end
local
a
=
Duel
.
GetAttacker
()
local
d
=
Duel
.
GetAttackTarget
()
return
d
and
d
:
IsDefencePos
()
and
a
:
GetControler
()
==
tp
and
a
:
IsRace
(
RACE_WARRIOR
)
return
d
and
d
:
IsDefencePos
()
and
a
:
IsControler
(
tp
)
and
a
:
IsRace
(
RACE_WARRIOR
)
end
function
c56286179
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
0
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
...
...
script/c58641905.lua
View file @
57ab359d
...
...
@@ -22,7 +22,7 @@ function c58641905.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CHANGE_DAMAGE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTargetRange
(
1
,
1
)
e1
:
SetLabel
(
cid
)
e1
:
SetValue
(
c58641905
.
refcon
)
e1
:
SetReset
(
RESET_CHAIN
)
...
...
script/c74117290.lua
View file @
57ab359d
...
...
@@ -10,11 +10,7 @@ function c74117290.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c74117290
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
local
d1
=
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
local
d2
=
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_DECK
)
return
d1
>
0
and
d2
>
0
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
Duel
.
IsPlayerCanDraw
(
1
-
tp
,
1
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
nil
,
0
,
PLAYER_ALL
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
PLAYER_ALL
,
1
)
end
...
...
script/c78358521.lua
View file @
57ab359d
...
...
@@ -30,7 +30,7 @@ function c78358521.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
c78358521
.
rmfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0x53
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemove
()
return
c
:
IsSetCard
(
0x53
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemove
AsCost
()
and
Duel
.
IsExistingTarget
(
c78358521
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
c
)
end
function
c78358521
.
filter
(
c
)
...
...
@@ -41,7 +41,7 @@ function c78358521.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
and
Duel
.
IsExistingMatchingCard
(
c78358521
.
rmfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c78358521
.
rmfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
tp
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_
EFFEC
T
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_
COS
T
)
Duel
.
RegisterFlagEffect
(
tp
,
78358521
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
c78358521
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
@@ -104,7 +104,7 @@ function c78358521.decop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterFlagEffect
(
tp
,
78358522
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
c78358521
.
econ
(
e
)
return
Duel
.
GetFlagEffect
(
tp
,
78358523
)
~=
0
return
Duel
.
GetFlagEffect
(
e
:
GetHandlerPlayer
()
,
78358523
)
~=
0
end
function
c78358521
.
rfilter
(
e
,
c
)
return
c
:
IsSetCard
(
0x53
)
...
...
script/c83108603.lua
View file @
57ab359d
...
...
@@ -25,18 +25,18 @@ function c83108603.initial_effect(c)
e3
:
SetOperation
(
c83108603
.
matop
)
c
:
RegisterEffect
(
e3
)
end
function
c83108603
.
xyzfilter
(
c
)
function
c83108603
.
xyzfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_XYZ
)
and
Duel
.
IsExistingMatchingCard
(
c83108603
.
matfilter
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
0
,
1
,
c
)
end
function
c83108603
.
matfilter
(
c
)
return
(
c
:
IsLocation
(
LOCATION_HAND
)
or
c
:
IsFaceup
())
and
c
:
IsSetCard
(
0x107d
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
function
c83108603
.
mattg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c83108603
.
xyzfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c83108603
.
xyzfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c83108603
.
matfilter
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
0
,
1
,
nil
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c83108603
.
xyzfilter
(
chkc
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c83108603
.
xyzfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c83108603
.
xyzfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c83108603
.
xyzfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
)
end
function
c83108603
.
matop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
...
...
script/c8483333.lua
View file @
57ab359d
...
...
@@ -40,14 +40,33 @@ end
function
c8483333
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
ft
<=
0
then
return
end
local
g
=
e
:
GetHandler
():
GetMaterial
():
Filter
(
c8483333
.
spfilter
,
nil
,
e
,
tp
,
e
:
GetHandler
())
local
c
=
e
:
GetHandler
()
local
g
=
c
:
GetMaterial
():
Filter
(
c8483333
.
spfilter
,
nil
,
e
,
tp
,
c
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
<=
ft
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
else
if
g
:
GetCount
()
>
ft
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
g
:
Select
(
tp
,
ft
,
ft
,
nil
)
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
g
=
g
:
Select
(
tp
,
ft
,
ft
,
nil
)
end
local
tc
=
g
:
GetFirst
()
while
tc
do
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK_ANNOUNCE
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_DISABLE
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
tc
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
tc
:
RegisterEffect
(
e3
)
tc
=
g
:
GetNext
()
end
Duel
.
SpecialSummonComplete
()
end
end
script/c97396380.lua
View file @
57ab359d
...
...
@@ -25,7 +25,7 @@ function c97396380.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
c97396380
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_D
ESTROY
,
nil
,
0
,
1
-
tp
,
500
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_D
AMAGE
,
nil
,
0
,
1
-
tp
,
500
)
end
end
function
c97396380
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c97489701.lua
View file @
57ab359d
...
...
@@ -32,6 +32,7 @@ function c97489701.initial_effect(c)
e4
:
SetDescription
(
aux
.
Stringid
(
97489701
,
0
))
e4
:
SetCategory
(
CATEGORY_REMOVE
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e4
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCondition
(
c97489701
.
nacon
)
...
...
@@ -136,7 +137,8 @@ end
function
c97489701
.
nacon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetAttacker
():
GetControler
()
~=
tp
end
function
c97489701
.
natg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c97489701
.
natg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
==
Duel
.
GetAttacker
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
Duel
.
GetAttacker
():
IsCanBeEffectTarget
(
e
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
end
Duel
.
SetTargetCard
(
Duel
.
GetAttacker
())
...
...
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