Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
4
Merge Requests
4
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-scripts-888
Commits
e270bdb9
Commit
e270bdb9
authored
Nov 27, 2023
by
Chen Bill
Committed by
GitHub
Nov 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "fix 魂食神龍ドレイン・ドラゴン (#2201)" (#2235)
This reverts commit
4d86d051
.
parent
b7a6fba0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
27 deletions
+18
-27
c55735315.lua
c55735315.lua
+18
-27
No files found.
c55735315.lua
View file @
e270bdb9
...
@@ -7,33 +7,24 @@ function c55735315.initial_effect(c)
...
@@ -7,33 +7,24 @@ function c55735315.initial_effect(c)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
c55735315
.
splimit
)
e1
:
SetValue
(
c55735315
.
splimit
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
--atkup
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
55735315
,
0
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetOperation
(
c55735315
.
spop
)
e2
:
SetCondition
(
c55735315
.
atkcon
)
e2
:
SetOperation
(
c55735315
.
atkop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--
atkup
--
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
55735315
,
0
))
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetCode
(
EFFECT_CANNOT_DIRECT_ATTACK
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetCondition
(
c55735315
.
atkcon
)
e3
:
SetOperation
(
c55735315
.
atkop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--cannot attack
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetCode
(
EFFECT_CANNOT_DIRECT_ATTACK
)
c
:
RegisterEffect
(
e4
)
end
end
function
c55735315
.
splimit
(
e
,
se
,
sp
,
st
)
function
c55735315
.
splimit
(
e
,
se
,
sp
,
st
)
local
sc
=
se
:
GetHandler
()
local
sc
=
se
:
GetHandler
()
return
sc
:
IsType
(
TYPE_XYZ
)
and
sc
:
IsRace
(
RACE_DRAGON
)
return
sc
:
IsType
(
TYPE_XYZ
)
and
sc
:
IsRace
(
RACE_DRAGON
)
end
end
function
c55735315
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
c
:
SetStatus
(
STATUS_PROC_COMPLETE
,
true
)
end
function
c55735315
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c55735315
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetLP
(
tp
)
<
Duel
.
GetLP
(
1
-
tp
)
return
Duel
.
GetLP
(
tp
)
<
Duel
.
GetLP
(
1
-
tp
)
end
end
...
@@ -47,15 +38,15 @@ function c55735315.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -47,15 +38,15 @@ function c55735315.atkop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
local
e
3
=
Effect
.
CreateEffect
(
c
)
local
e
2
=
Effect
.
CreateEffect
(
c
)
e
3
:
SetType
(
EFFECT_TYPE_FIELD
)
e
2
:
SetType
(
EFFECT_TYPE_FIELD
)
e
3
:
SetCode
(
EFFECT_CHANGE_DAMAGE
)
e
2
:
SetCode
(
EFFECT_CHANGE_DAMAGE
)
e
3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e
2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e
3
:
SetTargetRange
(
0
,
1
)
e
2
:
SetTargetRange
(
0
,
1
)
e
3
:
SetValue
(
0
)
e
2
:
SetValue
(
0
)
e
3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e
2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e
3
,
tp
)
Duel
.
RegisterEffect
(
e
2
,
tp
)
local
e3
=
e
3
:
Clone
()
local
e3
=
e
2
:
Clone
()
e3
:
SetCode
(
EFFECT_NO_EFFECT_DAMAGE
)
e3
:
SetCode
(
EFFECT_NO_EFFECT_DAMAGE
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e3
,
tp
)
Duel
.
RegisterEffect
(
e3
,
tp
)
...
...
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