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
alstroemeria-silentlove
ygopro-222DIY-cards
Commits
bdfbd4c8
Commit
bdfbd4c8
authored
Nov 21, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace c22100000.lua
parent
859234fa
Pipeline
#31252
passed with stages
in 33 minutes and 13 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
4 deletions
+22
-4
expansions/script/c22100000.lua
expansions/script/c22100000.lua
+22
-4
No files found.
expansions/script/c22100000.lua
View file @
bdfbd4c8
...
...
@@ -46,6 +46,19 @@ function cm.initial_effect(c)
e3
:
SetCountLimit
(
1
,
m
+
EFFECT_COUNT_CODE_DUEL
)
e3
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e3
)
--atk&def
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e5
:
SetRange
(
LOCATION_PZONE
)
e5
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e5
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e5
:
SetValue
(
cm
.
atkval1
)
c
:
RegisterEffect
(
e5
)
local
e6
=
e5
:
Clone
()
e6
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
e6
:
SetValue
(
cm
.
defval1
)
c
:
RegisterEffect
(
e6
)
end
function
cm
.
atkval
(
e
,
c
)
local
atk
=
c
:
GetAttack
()
...
...
@@ -53,11 +66,16 @@ function cm.atkval(e,c)
return
atk
end
function
cm
.
defval
(
e
,
c
)
local
atk
=
c
:
GetDefense
()
if
c
:
GetControler
()
~=
e
:
GetHandlerPlayer
()
then
atk
=-
atk
/
2
end
local
def
=
c
:
GetDefense
()
if
c
:
GetControler
()
~=
e
:
GetHandlerPlayer
()
then
def
=-
def
/
2
end
return
atk
end
function
cm
.
atkval1
(
e
,
c
)
return
math.ceil
(
-
c
:
GetAttack
()
/
2
)
end
function
cm
.
defval1
(
e
,
c
)
return
math.ceil
(
-
c
:
GetDefense
()
/
2
)
end
function
cm
.
attr
(
g
)
return
g
:
GetClassCount
(
Card
.
GetAttribute
)
==
5
and
g
:
GetClassCount
(
Card
.
GetOriginalRace
)
==
1
end
...
...
@@ -79,7 +97,7 @@ function cm.hspcon(e,c)
end
return
res
and
g
:
GetClassCount
(
Card
.
GetAttribute
)
>=
5
end
function
cm
.
hspop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
cm
.
hspop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
g
=
Duel
.
GetReleaseGroup
(
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
...
...
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