Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
Soulgamer
ygopro-222DIY-cards
Commits
6869bd0b
Commit
6869bd0b
authored
Sep 07, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndyd
parent
f7a35bb4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
23 deletions
+37
-23
expansions/script/c19500043.lua
expansions/script/c19500043.lua
+36
-23
expansions/script/c9310037.lua
expansions/script/c9310037.lua
+1
-0
No files found.
expansions/script/c19500043.lua
View file @
6869bd0b
...
...
@@ -36,8 +36,8 @@ function c19500043.initial_effect(c)
e4
:
SetDescription
(
aux
.
Stringid
(
19500043
,
2
))
e4
:
SetCategory
(
CATEGORY_TODECK
+
CATEGORY_DESTROY
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetCode
(
EVENT_BATTLE_DESTROYING
)
e4
:
SetCondition
(
aux
.
bdo
con
)
e4
:
SetCode
(
(
EVENT_BATTLE_DESTROYING
)
or
(
EVENT_BATTLED
)
)
e4
:
SetCondition
(
c19500043
.
xyz
con
)
e4
:
SetTarget
(
c19500043
.
tdtg
)
e4
:
SetOperation
(
c19500043
.
tdop
)
c
:
RegisterEffect
(
e4
)
...
...
@@ -109,7 +109,7 @@ function c19500043.thop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetValue
(
des
t
*
700
)
e1
:
SetValue
(
c
t
*
700
)
c
:
RegisterEffect
(
e1
)
--pierce
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
@@ -117,7 +117,7 @@ function c19500043.thop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetCode
(
EFFECT_PIERCE
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e2
)
end
--
end
-- if ct>1 then
--extra attack
-- local e3=Effect.CreateEffect(c)
...
...
@@ -126,11 +126,11 @@ function c19500043.thop(e,tp,eg,ep,ev,re,r,rp)
-- e3:SetValue(dest)
-- c:RegisterEffect(e3)
-- end
if
ct
==
3
then
--if ct>0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISABLE
)
local
dis
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NegateAnyFilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
des
t
,
nil
)
local
tc
=
dis
:
GetFirst
()
while
tc
do
local
dis
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
disfilter1
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
c
t
,
nil
)
local
sg
=
Group
.
CreateGroup
()
for
tc
in
aux
.
Next
(
dis
)
do
--disable
Duel
.
NegateRelatedChain
(
tc
,
RESET_TURN_SET
)
local
e4
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -151,28 +151,42 @@ function c19500043.thop(e,tp,eg,ep,ev,re,r,rp)
e6
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e6
)
end
end
Duel
.
BreakEffect
()
for
tc
in
aux
.
Next
(
dis
)
do
--battle damage
if
tc
:
IsType
(
TYPE_MONSTER
)
then
if
tc
:
IsType
(
TYPE_MONSTER
)
and
tc
:
IsFaceup
()
then
local
atk1
=
tc
:
GetAttack
()
local
atk2
=
c
:
GetAttack
()
local
dam
=
atk2
-
atk1
local
desg
=
tc
local
p
=
1
-
tp
if
atk1
>
atk2
then
dam
=
atk1
-
atk2
desg
=
c
p
=
tp
elseif
atk1
==
atk2
then
desg
=
Group
.
FromCards
(
tc
,
c
)
local
def
=
tc
:
GetDefense
()
local
dam1
=
atk2
-
def
local
dam2
=
atk2
-
atk1
Duel
.
BreakEffect
()
if
true
then
if
dam2
>
0
then
Duel
.
Damage
(
1
-
tp
,
dam2
,
REASON_BATTLE
)
Duel
.
Destroy
(
tc
,
REASON_BATTLE
)
elseif
dam2
==
0
then
local
desg
=
Group
.
FromCards
(
tc
,
c
)
Duel
.
Destroy
(
desg
,
REASON_BATTLE
)
else
Duel
.
Damage
(
tp
,
-
dam2
,
REASON_BATTLE
)
Duel
.
Destroy
(
c
,
REASON_BATTLE
)
return
end
end
Duel
.
Destroy
(
desg
,
REASON_BATTLE
)
Duel
.
Damage
(
p
,
dam
,
REASON_BATTLE
)
end
tc
=
dis
:
GetNext
()
end
end
end
end
function
c19500043
.
xyzcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
c
:
GetBattleTarget
()
if
not
c
:
IsRelateToBattle
()
then
return
false
end
e
:
SetLabelObject
(
tc
)
return
tc
:
IsType
(
TYPE_MONSTER
)
and
tc
:
IsReason
((
REASON_BATTLE
)
or
(
EVENT_BATTLED
))
and
tc
:
IsCanOverlay
()
end
function
c19500043
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
c19500043
[
0
]
==
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
nil
)
...
...
@@ -192,5 +206,4 @@ function c19500043.tdop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
end
\ No newline at end of file
expansions/script/c9310037.lua
View file @
6869bd0b
...
...
@@ -12,6 +12,7 @@ function c9310037.initial_effect(c)
--act limit
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e0
:
SetCode
(
EVENT_CHAINING
)
e0
:
SetRange
(
LOCATION_ONFIELD
)
e0
:
SetOperation
(
c9310037
.
chainop
)
...
...
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