Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
P
pre-release-database-cdb
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
yks
pre-release-database-cdb
Commits
c4d6ab2f
Commit
c4d6ab2f
authored
Nov 13, 2023
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix script/c101204052.lua :
https://github.com/Fluorohydride/ygopro-pre-script/pull/1233
parent
655857be
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
script/c101203029.lua
script/c101203029.lua
+14
-5
script/c101204052.lua
script/c101204052.lua
+1
-0
No files found.
script/c101203029.lua
View file @
c4d6ab2f
--ゴブリン降下部隊
--ゴブリン降下部隊
--Scripted by Gong'E
local
s
,
id
,
o
=
GetID
()
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
function
s
.
initial_effect
(
c
)
--disable
--disable
...
@@ -9,7 +10,6 @@ function s.initial_effect(c)
...
@@ -9,7 +10,6 @@ function s.initial_effect(c)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetLabelObject
(
e0
)
e1
:
SetCondition
(
s
.
discon
)
e1
:
SetCondition
(
s
.
discon
)
e1
:
SetTarget
(
s
.
distg
)
e1
:
SetTarget
(
s
.
distg
)
e1
:
SetOperation
(
s
.
disop
)
e1
:
SetOperation
(
s
.
disop
)
...
@@ -47,7 +47,7 @@ function s.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -47,7 +47,7 @@ function s.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
s
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsDefensePos
()
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsDefensePos
()
or
not
c
:
IsCanChangePosition
()
then
return
end
Duel
.
ChangePosition
(
c
,
POS_FACEUP_DEFENSE
,
POS_FACEDOWN_DEFENSE
,
0
,
0
)
Duel
.
ChangePosition
(
c
,
POS_FACEUP_DEFENSE
,
POS_FACEDOWN_DEFENSE
,
0
,
0
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsFaceup
()
and
c
:
IsDefensePos
()
and
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
if
c
:
IsFaceup
()
and
c
:
IsDefensePos
()
and
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
...
@@ -76,7 +76,16 @@ end
...
@@ -76,7 +76,16 @@ end
function
s
.
rcon
(
e
)
function
s
.
rcon
(
e
)
return
e
:
GetOwner
():
IsHasCardTarget
(
e
:
GetHandler
())
return
e
:
GetOwner
():
IsHasCardTarget
(
e
:
GetHandler
())
end
end
--cancel target
function
s
.
recon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousPosition
(
POS_DEFENSE
)
and
c
:
IsFaceup
()
and
c
:
IsAttackPos
()
end
function
s
.
reop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
c
:
GetFirstCardTarget
()
Card
.
CancelCardTarget
(
c
,
tc
)
end
--to hand
--to hand
function
s
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
Card
.
IsControler
,
1
,
nil
,
1
-
tp
)
return
eg
:
IsExists
(
Card
.
IsControler
,
1
,
nil
,
1
-
tp
)
...
...
script/c101204052.lua
View file @
c4d6ab2f
...
@@ -63,6 +63,7 @@ function s.baop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -63,6 +63,7 @@ function s.baop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_SKIP_BP
)
e1
:
SetCode
(
EFFECT_SKIP_BP
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
1
)
e1
:
SetTargetRange
(
1
,
1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
RegisterEffect
(
e1
,
Duel
.
GetTurnPlayer
())
Duel
.
RegisterEffect
(
e1
,
Duel
.
GetTurnPlayer
())
end
end
end
end
\ No newline at end of file
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