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
3
Merge Requests
3
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
9501129f
Commit
9501129f
authored
Jun 29, 2021
by
mercury233
Committed by
GitHub
Jun 29, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Duck Dummy (#1670)
parent
4251f035
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
6 deletions
+30
-6
c27744077.lua
c27744077.lua
+10
-2
c39622156.lua
c39622156.lua
+10
-2
c43803845.lua
c43803845.lua
+10
-2
No files found.
c27744077.lua
View file @
9501129f
...
@@ -17,8 +17,16 @@ function c27744077.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -17,8 +17,16 @@ function c27744077.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_IGNORE_BATTLE_TARGET
)
e1
:
SetCode
(
EFFECT_IGNORE_BATTLE_TARGET
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetValue
(
aux
.
imval1
)
e1
:
SetValue
(
c27744077
.
imval
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
e1
:
Clone
()
e2
:
SetProperty
(
0
)
e2
:
SetValue
(
0
)
Duel
.
RegisterEffect
(
e2
,
tp
)
e1
:
SetLabelObject
(
e2
)
end
function
c27744077
.
imval
(
e
,
c
)
return
not
c
:
IsImmuneToEffect
(
e
:
GetLabelObject
())
end
end
c39622156.lua
View file @
9501129f
...
@@ -52,11 +52,19 @@ function c39622156.daop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -52,11 +52,19 @@ function c39622156.daop(e,tp,eg,ep,ev,re,r,rp)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetCode
(
EFFECT_IGNORE_BATTLE_TARGET
)
e3
:
SetCode
(
EFFECT_IGNORE_BATTLE_TARGET
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e3
:
SetValue
(
aux
.
imval1
)
e3
:
SetValue
(
c39622156
.
imval
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_BATTLE
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_BATTLE
)
Duel
.
RegisterEffect
(
e3
,
tp
)
Duel
.
RegisterEffect
(
e3
,
tp
)
local
e4
=
e3
:
Clone
()
e4
:
SetProperty
(
0
)
e4
:
SetValue
(
0
)
Duel
.
RegisterEffect
(
e4
,
tp
)
e3
:
SetLabelObject
(
e4
)
end
function
c39622156
.
imval
(
e
,
c
)
return
not
c
:
IsImmuneToEffect
(
e
:
GetLabelObject
())
end
end
function
c39622156
.
atkcon
(
e
)
function
c39622156
.
atkcon
(
e
)
return
Duel
.
GetFlagEffect
(
e
:
GetHandlerPlayer
(),
39622156
)
~=
0
return
Duel
.
GetFlagEffect
(
e
:
GetHandlerPlayer
(),
39622156
)
~=
0
...
...
c43803845.lua
View file @
9501129f
...
@@ -17,10 +17,18 @@ function c43803845.initial_effect(c)
...
@@ -17,10 +17,18 @@ function c43803845.initial_effect(c)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_IGNORE_BATTLE_TARGET
)
e3
:
SetCode
(
EFFECT_IGNORE_BATTLE_TARGET
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e3
:
SetCondition
(
aux
.
IsDualState
)
e3
:
SetCondition
(
aux
.
IsDualState
)
e3
:
SetValue
(
aux
.
imval1
)
e3
:
SetValue
(
c43803845
.
imval
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
local
e4
=
e3
:
Clone
()
e4
:
SetProperty
(
0
)
e4
:
SetValue
(
0
)
c
:
RegisterEffect
(
e4
)
e3
:
SetLabelObject
(
e4
)
end
function
c43803845
.
imval
(
e
,
c
)
return
not
c
:
IsImmuneToEffect
(
e
:
GetLabelObject
())
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