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
5
Merge Requests
5
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
a8c93e9e
Commit
a8c93e9e
authored
Mar 03, 2025
by
HertzPrime
Committed by
GitHub
Mar 03, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 毒蛇の怨念 (#2861)
parent
6dfda75d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
23 deletions
+13
-23
c1683982.lua
c1683982.lua
+13
-23
No files found.
c1683982.lua
View file @
a8c93e9e
...
@@ -18,28 +18,21 @@ function c1683982.initial_effect(c)
...
@@ -18,28 +18,21 @@ function c1683982.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--SpecialSummon
--SpecialSummon
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetDescription
(
aux
.
Stringid
(
1683982
,
1
))
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCode
(
EVENT_DESTROYED
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetCode
(
EVENT_BATTLE_DESTROYED
)
e3
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
+
EFFECT_FLAG_DELAY
)
e3
:
SetCondition
(
c1683982
.
regcon
)
e3
:
SetCountLimit
(
1
,
1683982
)
e3
:
SetOperation
(
c1683982
.
regop
)
e3
:
SetCondition
(
c1683982
.
spcon
)
e3
:
SetTarget
(
c1683982
.
sptg
)
e3
:
SetOperation
(
c1683982
.
spop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
local
e4
=
e3
:
Clone
()
local
e4
=
e3
:
Clone
()
e4
:
SetCode
(
EVENT_TO_GRAVE
)
e4
:
SetCode
(
EVENT_TO_GRAVE
)
e4
:
SetCondition
(
c1683982
.
reg
con2
)
e4
:
SetCondition
(
c1683982
.
sp
con2
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetDescription
(
aux
.
Stringid
(
1683982
,
1
))
e5
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e5
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e5
:
SetCode
(
EVENT_CUSTOM
+
1683982
)
e5
:
SetRange
(
LOCATION_SZONE
)
e5
:
SetCountLimit
(
1
,
1683982
)
e5
:
SetTarget
(
c1683982
.
sptg
)
e5
:
SetOperation
(
c1683982
.
spop
)
c
:
RegisterEffect
(
e5
)
--return to grave
--return to grave
local
e6
=
Effect
.
CreateEffect
(
c
)
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetDescription
(
aux
.
Stringid
(
1683982
,
2
))
e6
:
SetDescription
(
aux
.
Stringid
(
1683982
,
2
))
...
@@ -57,21 +50,18 @@ function c1683982.atktg(e,c)
...
@@ -57,21 +50,18 @@ function c1683982.atktg(e,c)
return
not
c
:
IsRace
(
RACE_REPTILE
)
return
not
c
:
IsRace
(
RACE_REPTILE
)
end
end
function
c1683982
.
cfilter
(
c
,
tp
)
function
c1683982
.
cfilter
(
c
,
tp
)
return
c
:
IsPreviousControler
(
tp
)
and
c
:
Is
PreviousLocation
(
LOCATION_MZON
E
)
and
c
:
GetPreviousRaceOnField
()
&
RACE_REPTILE
~=
0
return
c
:
IsPreviousControler
(
tp
)
and
c
:
Is
Reason
(
REASON_BATTL
E
)
and
c
:
GetPreviousRaceOnField
()
&
RACE_REPTILE
~=
0
end
end
function
c1683982
.
reg
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c1683982
.
sp
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c1683982
.
cfilter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c1683982
.
cfilter
,
1
,
nil
,
tp
)
end
end
function
c1683982
.
cfilter2
(
c
,
tp
)
function
c1683982
.
cfilter2
(
c
,
tp
)
return
not
c
:
IsReason
(
REASON_BATTLE
)
and
c
:
IsPreviousControler
(
tp
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
return
not
c
:
IsReason
(
REASON_BATTLE
)
and
c
:
IsPreviousControler
(
tp
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
GetPreviousRaceOnField
()
&
RACE_REPTILE
~=
0
and
c
:
IsRace
(
RACE_REPTILE
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
c
:
GetPreviousRaceOnField
()
&
RACE_REPTILE
~=
0
and
c
:
IsRace
(
RACE_REPTILE
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
end
end
function
c1683982
.
reg
con2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c1683982
.
sp
con2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c1683982
.
cfilter2
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c1683982
.
cfilter2
,
1
,
nil
,
tp
)
end
end
function
c1683982
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
RaiseSingleEvent
(
e
:
GetHandler
(),
EVENT_CUSTOM
+
1683982
,
e
,
0
,
tp
,
0
,
0
)
end
function
c1683982
.
spfilter
(
c
,
e
,
tp
)
function
c1683982
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsRace
(
RACE_REPTILE
)
and
c
:
IsLevelBelow
(
4
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsRace
(
RACE_REPTILE
)
and
c
:
IsLevelBelow
(
4
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
...
...
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