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
88e397d7
Commit
88e397d7
authored
Nov 08, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
c0b06eb5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
16 deletions
+10
-16
expansions/script/c12004022.lua
expansions/script/c12004022.lua
+1
-1
expansions/script/c12004023.lua
expansions/script/c12004023.lua
+1
-1
expansions/script/c12008008.lua
expansions/script/c12008008.lua
+2
-11
expansions/script/c81022046.lua
expansions/script/c81022046.lua
+3
-2
expansions/script/c81022047.lua
expansions/script/c81022047.lua
+3
-1
No files found.
expansions/script/c12004022.lua
View file @
88e397d7
...
...
@@ -46,7 +46,7 @@ function c12004022.initial_effect(c)
c
:
RegisterEffect
(
e6
)
end
function
cm
.
mfilter
(
c
)
return
c
:
IsRace
(
RACE_MACHINE
)
and
not
c
:
GetOriginalRace
(
RACE_MACHINE
)
return
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
GetOriginalRace
()
~=
RACE_MACHINE
end
function
c12004022
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
re
:
GetHandler
():
IsLocation
(
LOCATION_MZONE
)
...
...
expansions/script/c12004023.lua
View file @
88e397d7
...
...
@@ -99,7 +99,7 @@ function c12004023.fsfilter2(c)
end
function
c12004023
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
g
=
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
e
:
GetHandler
())
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
e
:
GetHandler
())
if
g
:
GetCount
()
>
0
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
end
...
...
expansions/script/c12008008.lua
View file @
88e397d7
...
...
@@ -45,19 +45,10 @@ function c12008008.initial_effect(c)
e5
:
SetTarget
(
c12008008
.
target
)
e5
:
SetOperation
(
c12008008
.
operation
)
c
:
RegisterEffect
(
e5
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetCode
(
EVENT_PRE_BATTLE_DAMAGE
)
e5
:
SetCondition
(
c12008008
.
condition
)
e5
:
SetOperation
(
c12008008
.
damop
)
c
:
RegisterEffect
(
e5
)
end
function
c12008008
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeBattleDamage
(
ep
,
ev
*
2
)
end
function
c12008008
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetLP
(
0
)
<
Duel
.
GetLP
(
1
)
local
tp
=
e
:
GetHandler
()
return
Duel
.
GetLP
(
tp
)
<
Duel
.
GetLP
(
1
-
tp
)
end
function
c12008008
.
filter
(
c
,
lp
)
return
c
:
IsFacedown
()
or
(
c
:
IsFaceup
()
and
c
:
GetAttack
()
>
0
and
c
:
GetAttack
()
<=
lp
)
...
...
expansions/script/c81022046.lua
View file @
88e397d7
...
...
@@ -50,12 +50,13 @@ function cm.efcon(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
efop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
g
=
eg
:
Filter
(
Card
.
IsType
,
1
,
nil
,
TYPE_PENDULUM
)
local
rc
=
g
:
GetFirst
()
local
g
=
eg
:
Filter
(
Card
.
IsType
,
nil
,
TYPE_PENDULUM
)
local
rc
=
g
:
GetFirst
()
if
not
rc
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetValue
(
cm
.
atkval
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
...
...
expansions/script/c81022047.lua
View file @
88e397d7
...
...
@@ -69,13 +69,15 @@ function cm.efcon(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
efop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
g
=
eg
:
Filter
(
Card
.
IsType
,
1
,
nil
,
TYPE_PENDULUM
)
local
g
=
eg
:
Filter
(
Card
.
IsType
,
nil
,
TYPE_PENDULUM
)
local
rc
=
g
:
GetFirst
()
if
not
rc
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetValue
(
cm
.
immval
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
rc
:
RegisterEffect
(
e1
,
true
)
...
...
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