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
Nguyễn Anh Kiệt
ygopro-222DIY-cards
Commits
1ad00278
Commit
1ad00278
authored
Aug 31, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
byd
parent
db80d0fc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
12 deletions
+13
-12
expansions/script/c79250006.lua
expansions/script/c79250006.lua
+8
-11
expansions/script/c79250009.lua
expansions/script/c79250009.lua
+5
-1
No files found.
expansions/script/c79250006.lua
View file @
1ad00278
...
...
@@ -69,18 +69,15 @@ function s.rctg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
ev
)
end
function
s
.
rcop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
Duel
.
Recover
(
tp
,
ev
,
REASON_EFFECT
)
local
cg
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
tc
=
cg
:
GetFirst
()
while
tc
do
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e1
:
SetValue
(
1
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
2
)
e1
:
SetOwnerPlayer
(
tp
)
tc
:
RegisterEffect
(
e1
)
tc
=
cg
:
GetNext
()
end
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
s
.
gfcon
(
e
)
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c79250009.lua
View file @
1ad00278
...
...
@@ -25,6 +25,7 @@ function s.initial_effect(c)
e2
:
SetCode
(
EFFECT_CANNOT_DIRECT_ATTACK
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e2
:
SetTarget
(
s
.
antarget
)
e2
:
SetCondition
(
s
.
effcon
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -72,6 +73,9 @@ end
function
s
.
effcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
Duel
.
IsExistingMatchingCard
(
s
.
filter1
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
function
s
.
antarget
(
e
,
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
end
function
s
.
atkval
(
e
,
c
)
local
cont
=
c
:
GetControler
()
return
math.abs
((
Duel
.
GetLP
(
cont
)
-
Duel
.
GetLP
(
1
-
cont
))
/
2
)
...
...
@@ -83,7 +87,7 @@ function s.becon(e,tp,eg,ep,ev,re,r,rp,chk)
return
Duel
.
IsExistingMatchingCard
(
s
.
filter3
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
function
s
.
pfilter
(
c
,
e
,
tp
)
return
c
.
setcard
==
"Abnormality"
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
.
setcard
==
"Abnormality"
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsType
(
TYPE_FUSION
)
end
function
s
.
damval
(
e
,
re
,
val
,
r
,
rp
,
rc
)
return
math.floor
(
val
/
2
)
...
...
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