Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
3
Merge Requests
3
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
MyCard
ygopro-scripts-888
Commits
8b17365d
Commit
8b17365d
authored
Mar 29, 2021
by
Chrono-Genex
Committed by
GitHub
Mar 29, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix (#1595)
parent
a0c4d69c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
70 deletions
+62
-70
c24857466.lua
c24857466.lua
+62
-70
No files found.
c24857466.lua
View file @
8b17365d
...
@@ -18,39 +18,14 @@ function c24857466.initial_effect(c)
...
@@ -18,39 +18,14 @@ function c24857466.initial_effect(c)
e3
:
SetTarget
(
c24857466
.
hsptg
)
e3
:
SetTarget
(
c24857466
.
hsptg
)
e3
:
SetOperation
(
c24857466
.
hspop
)
e3
:
SetOperation
(
c24857466
.
hspop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--
spell:damage
--
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
24857466
,
1
))
e4
:
SetDescription
(
aux
.
Stringid
(
24857466
,
1
))
e4
:
SetCategory
(
CATEGORY_DAMAGE
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e4
:
SetCode
(
EVENT_CUSTOM
+
24857466
)
e4
:
SetCode
(
EVENT_CUSTOM
+
24857466
)
e4
:
SetCondition
(
c24857466
.
damcon
)
e4
:
SetTarget
(
c24857466
.
target
)
e4
:
SetTarget
(
c24857466
.
damtg
)
e4
:
SetOperation
(
c24857466
.
operation
)
e4
:
SetOperation
(
c24857466
.
damop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
--trap:Destroy
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetDescription
(
aux
.
Stringid
(
24857466
,
2
))
e5
:
SetCategory
(
CATEGORY_DESTROY
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e5
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e5
:
SetCode
(
EVENT_CUSTOM
+
24857466
)
e5
:
SetCondition
(
c24857466
.
descon
)
e5
:
SetTarget
(
c24857466
.
destg
)
e5
:
SetOperation
(
c24857466
.
desop
)
c
:
RegisterEffect
(
e5
)
--monster:spsummon
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetDescription
(
aux
.
Stringid
(
24857466
,
3
))
e6
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e6
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e6
:
SetCode
(
EVENT_CUSTOM
+
24857466
)
e6
:
SetCondition
(
c24857466
.
spcon
)
e6
:
SetTarget
(
c24857466
.
sptg
)
e6
:
SetOperation
(
c24857466
.
spop
)
c
:
RegisterEffect
(
e6
)
end
end
function
c24857466
.
chop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c24857466
.
chop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -66,7 +41,7 @@ function c24857466.chop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -66,7 +41,7 @@ function c24857466.chop(e,tp,eg,ep,ev,re,r,rp)
e
:
SetLabelObject
(
de
)
e
:
SetLabelObject
(
de
)
c
:
SetFlagEffectLabel
(
24857466
,
ty
)
c
:
SetFlagEffectLabel
(
24857466
,
ty
)
else
else
c
:
SetFlagEffectLabel
(
24857466
,
bit
.
bor
(
flag
,
ty
)
)
c
:
SetFlagEffectLabel
(
24857466
,
flag
|
ty
)
end
end
end
end
end
end
...
@@ -93,51 +68,68 @@ function c24857466.hspop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -93,51 +68,68 @@ function c24857466.hspop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RaiseSingleEvent
(
c
,
EVENT_CUSTOM
+
24857466
,
e
,
0
,
0
,
tp
,
tpe
)
Duel
.
RaiseSingleEvent
(
c
,
EVENT_CUSTOM
+
24857466
,
e
,
0
,
0
,
tp
,
tpe
)
end
end
end
end
function
c24857466
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
r
p
)
function
c24857466
.
spfilter
(
c
,
e
,
t
p
)
return
bit
.
band
(
ev
,
TYPE_SPELL
)
~=
0
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c24857466
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c24857466
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
if
ev
&
TYPE_TRAP
+
TYPE_MONSTER
~=
0
then
e
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
else
e
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
end
local
cat
=
0
if
ev
&
TYPE_SPELL
~=
0
then
cat
=
cat
|
CATEGORY_DAMAGE
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetParam
(
1500
)
Duel
.
SetTargetParam
(
1500
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
1500
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
1500
)
end
end
function
c24857466
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
ev
&
TYPE_TRAP
~=
0
then
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
cat
=
cat
|
CATEGORY_DESTROY
Duel
.
Damage
(
p
,
d
,
REASON_EFFECT
)
end
function
c24857466
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
ev
,
TYPE_TRAP
)
~=
0
end
function
c24857466
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsOnField
()
end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
if
g1
:
GetCount
()
>
0
then
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g1
,
1
,
0
,
0
)
function
c24857466
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
end
end
end
function
c24857466
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
ev
&
TYPE_MONSTER
~=
0
then
return
bit
.
band
(
ev
,
TYPE_MONSTER
)
~=
0
cat
=
cat
|
CATEGORY_SPECIAL_SUMMON
end
function
c24857466
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c24857466
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c24857466
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c24857466
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
c24857466
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
if
g2
:
GetCount
()
>
0
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g2
,
1
,
0
,
0
)
end
end
e
:
SetCategory
(
cat
)
e
:
SetLabel
(
ev
)
end
end
function
c24857466
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c24857466
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
typ
=
e
:
GetLabel
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
local
res
=
0
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
if
typ
&
TYPE_SPELL
~=
0
then
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
res
=
Duel
.
Damage
(
p
,
d
,
REASON_EFFECT
)
end
if
typ
&
TYPE_TRAP
~=
0
then
local
ex1
,
g1
=
Duel
.
GetOperationInfo
(
0
,
CATEGORY_DESTROY
)
if
g1
then
local
tc1
=
g1
:
GetFirst
()
if
tc1
:
IsRelateToEffect
(
e
)
then
if
res
~=
0
then
Duel
.
BreakEffect
()
end
res
=
Duel
.
Destroy
(
tc1
,
REASON_EFFECT
)
end
end
end
if
typ
&
TYPE_MONSTER
~=
0
then
local
ex2
,
g2
=
Duel
.
GetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
)
if
g2
then
local
tc2
=
g2
:
GetFirst
()
if
tc2
:
IsRelateToEffect
(
e
)
then
if
res
~=
0
then
Duel
.
BreakEffect
()
end
Duel
.
SpecialSummon
(
tc2
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
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