Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-pre-data
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
MyCard
ygopro-pre-data
Commits
1087fdd5
Commit
1087fdd5
authored
Sep 27, 2021
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
5baa5d7d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
script/c100200202.lua
script/c100200202.lua
+3
-3
script/c100200203.lua
script/c100200203.lua
+1
-1
script/c100281063.lua
script/c100281063.lua
+1
-1
No files found.
script/c100200202.lua
View file @
1087fdd5
...
@@ -7,14 +7,13 @@ function c100200202.initial_effect(c)
...
@@ -7,14 +7,13 @@ function c100200202.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTarget
(
c100200202
.
atktg
)
e1
:
SetTarget
(
c100200202
.
atktg
)
e1
:
SetOperation
(
c100200202
.
atkop
)
e1
:
SetOperation
(
c100200202
.
atkop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--DEF DOWN
--DEF DOWN
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
100200202
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
100200202
,
1
))
e2
:
SetCategory
(
CATEGORY_DEFCHANGE
)
e2
:
SetCategory
(
CATEGORY_DE
STROY
+
CATEGORY_DE
FCHANGE
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
...
@@ -63,13 +62,14 @@ function c100200202.desop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -63,13 +62,14 @@ function c100200202.desop(e,tp,eg,ep,ev,re,r,rp)
end
end
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
local
atk
=
c
:
GetAttack
()
local
atk
=
c
:
GetAttack
()
local
def
=
tc
:
GetDefense
()
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
e2
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
e2
:
SetValue
(
-
atk
)
e2
:
SetValue
(
-
atk
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
if
tc
:
IsDefense
(
0
)
then
if
def
~=
0
and
tc
:
IsDefense
(
0
)
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
end
...
...
script/c100200203.lua
View file @
1087fdd5
...
@@ -7,7 +7,7 @@ function c100200203.initial_effect(c)
...
@@ -7,7 +7,7 @@ function c100200203.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCode
(
EVENT_TO_GRAVE
)
e1
:
SetCode
(
EVENT_TO_GRAVE
)
e1
:
SetCountLimit
(
1
,
100200203
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCountLimit
(
1
,
100200203
)
e1
:
SetCondition
(
c100200203
.
tkcon
)
e1
:
SetCondition
(
c100200203
.
tkcon
)
e1
:
SetTarget
(
c100200203
.
tktg
)
e1
:
SetTarget
(
c100200203
.
tktg
)
e1
:
SetOperation
(
c100200203
.
tkop
)
e1
:
SetOperation
(
c100200203
.
tkop
)
...
...
script/c100281063.lua
View file @
1087fdd5
...
@@ -76,7 +76,7 @@ function c100281063.atkcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -76,7 +76,7 @@ function c100281063.atkcon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c100281063
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100281063
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
,
at
=
Duel
.
GetBattleMonster
(
tp
)
local
a
,
at
=
Duel
.
GetBattleMonster
(
tp
)
if
not
a
:
IsRelateToBattle
()
or
a
:
IsFacedown
()
or
not
at
:
IsRelateToBattle
()
or
at
:
IsFacedown
()
then
return
end
if
not
a
or
not
d
or
not
a
:
IsRelateToBattle
()
or
a
:
IsFacedown
()
or
not
at
:
IsRelateToBattle
()
or
at
:
IsFacedown
()
then
return
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
...
...
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