Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
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
Commits
b5693acb
Commit
b5693acb
authored
Sep 28, 2015
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
741b50f0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
9 deletions
+11
-9
c70913714.lua
c70913714.lua
+4
-0
c73130445.lua
c73130445.lua
+2
-2
c81907872.lua
c81907872.lua
+5
-7
No files found.
c70913714.lua
View file @
b5693acb
...
...
@@ -56,12 +56,16 @@ function c70913714.eqop(e,tp,eg,ep,ev,re,r,rp)
e4
:
SetCategory
(
CATEGORY_CONTROL
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e4
:
SetCode
(
EVENT_LEAVE_FIELD
)
e4
:
SetCondition
(
c70913714
.
ctcon
)
e4
:
SetTarget
(
c70913714
.
cttg
)
e4
:
SetOperation
(
c70913714
.
ctop
)
e4
:
SetReset
(
RESET_EVENT
+
0x1020000
)
c
:
RegisterEffect
(
e4
)
end
end
function
c70913714
.
ctcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
IsReason
(
REASON_LOST_TARGET
)
end
function
c70913714
.
cttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
ec
=
e
:
GetHandler
():
GetPreviousEquipTarget
()
...
...
c73130445.lua
View file @
b5693acb
...
...
@@ -44,10 +44,10 @@ function c73130445.desop(e,tp,eg,ep,ev,re,r,rp)
end
function
c73130445
.
cfilter
(
c
,
tp
)
return
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
(
c
:
IsReason
(
REASON_EFFECT
)
or
(
c
:
IsReason
(
REASON_BATTLE
)
and
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)))
and
c
:
GetReasonPlayer
()
~=
tp
and
(
c
:
IsReason
(
REASON_EFFECT
)
or
(
c
:
IsReason
(
REASON_BATTLE
)
and
c
==
Duel
.
GetAttackTarget
(
)))
end
function
c73130445
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
rp
~=
tp
and
eg
:
IsExists
(
c73130445
.
cfilter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c73130445
.
cfilter
,
1
,
nil
,
tp
)
end
function
c73130445
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x9f
)
...
...
c81907872.lua
View file @
b5693acb
...
...
@@ -46,15 +46,13 @@ function c81907872.posop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ChangePosition
(
c
,
POS_FACEDOWN_DEFENCE
)
end
end
function
c81907872
.
cfilter1
(
c
,
tp
)
return
c
:
IsControler
(
tp
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
IsSetCard
(
0x8d
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsPreviousLocation
(
LOCATION_SZONE
)
end
function
c81907872
.
cfilter2
(
c
)
return
c
:
IsReason
(
REASON_BATTLE
)
and
c
:
IsStatus
(
STATUS_OPPO_BATTLE
)
and
c
==
Duel
.
GetAttackTarget
()
function
c81907872
.
cfilter
(
c
,
tp
)
return
c
:
IsControler
(
tp
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
GetReasonPlayer
()
~=
tp
and
c
:
IsSetCard
(
0x8d
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
(
c
:
IsReason
(
REASON_EFFECT
)
or
(
c
:
IsReason
(
REASON_BATTLE
)
and
c
==
Duel
.
GetAttackTarget
()))
end
function
c81907872
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
(
rp
~=
tp
and
eg
:
IsExists
(
c81907872
.
cfilter1
,
1
,
nil
,
tp
))
or
eg
:
IsExists
(
c81907872
.
cfilter2
,
1
,
nil
)
return
eg
:
IsExists
(
c81907872
.
cfilter
,
1
,
nil
,
tp
)
end
function
c81907872
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
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