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
4d86d051
Commit
4d86d051
authored
Nov 27, 2023
by
a597449807
Committed by
GitHub
Nov 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 魂食神龍ドレイン・ドラゴン (#2201)
修复未正规出场的魂食神龙吸灵龙被除外的场合下能被科技属长柄刀爆破炮手特殊召唤的问题
parent
d1ca03ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
18 deletions
+27
-18
c55735315.lua
c55735315.lua
+27
-18
No files found.
c55735315.lua
View file @
4d86d051
...
...
@@ -7,24 +7,33 @@ function c55735315.initial_effect(c)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
c55735315
.
splimit
)
c
:
RegisterEffect
(
e1
)
--atkup
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
55735315
,
0
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
local
e2
=
e1
:
Clone
()
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetCondition
(
c55735315
.
atkcon
)
e2
:
SetOperation
(
c55735315
.
atkop
)
e2
:
SetOperation
(
c55735315
.
spop
)
c
:
RegisterEffect
(
e2
)
--
--
atkup
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_CANNOT_DIRECT_ATTACK
)
e3
:
SetDescription
(
aux
.
Stringid
(
55735315
,
0
))
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetCondition
(
c55735315
.
atkcon
)
e3
:
SetOperation
(
c55735315
.
atkop
)
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
function
c55735315
.
splimit
(
e
,
se
,
sp
,
st
)
local
sc
=
se
:
GetHandler
()
return
sc
:
IsType
(
TYPE_XYZ
)
and
sc
:
IsRace
(
RACE_DRAGON
)
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
)
return
Duel
.
GetLP
(
tp
)
<
Duel
.
GetLP
(
1
-
tp
)
end
...
...
@@ -38,15 +47,15 @@ function c55735315.atkop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
)
c
:
RegisterEffect
(
e1
)
end
local
e
2
=
Effect
.
CreateEffect
(
c
)
e
2
:
SetType
(
EFFECT_TYPE_FIELD
)
e
2
:
SetCode
(
EFFECT_CHANGE_DAMAGE
)
e
2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e
2
:
SetTargetRange
(
0
,
1
)
e
2
:
SetValue
(
0
)
e
2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e
2
,
tp
)
local
e3
=
e
2
:
Clone
()
local
e
3
=
Effect
.
CreateEffect
(
c
)
e
3
:
SetType
(
EFFECT_TYPE_FIELD
)
e
3
:
SetCode
(
EFFECT_CHANGE_DAMAGE
)
e
3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e
3
:
SetTargetRange
(
0
,
1
)
e
3
:
SetValue
(
0
)
e
3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e
3
,
tp
)
local
e3
=
e
3
:
Clone
()
e3
:
SetCode
(
EFFECT_NO_EFFECT_DAMAGE
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
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