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
f9930816
Commit
f9930816
authored
Sep 24, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
0d8e42a8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
27 deletions
+21
-27
c18486927.lua
c18486927.lua
+5
-5
c23171610.lua
c23171610.lua
+1
-6
c44874522.lua
c44874522.lua
+13
-13
c81269231.lua
c81269231.lua
+2
-3
No files found.
c18486927.lua
View file @
f9930816
...
...
@@ -25,11 +25,11 @@ end
function
c18486927
.
dectg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CARDTYPE
)
Duel
.
SetTargetParam
(
Duel
.
SelectOption
(
tp
,
70
,
71
,
72
))
e
:
SetLabel
(
Duel
.
SelectOption
(
tp
,
70
,
71
,
72
))
end
function
c18486927
.
decop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
opt
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PARAM
)
local
opt
=
e
:
GetLabel
(
)
local
ct
=
nil
if
opt
==
0
then
ct
=
TYPE_MONSTER
...
...
@@ -52,8 +52,8 @@ function c18486927.decop(e,tp,eg,ep,ev,re,r,rp)
end
function
c18486927
.
actlimit
(
e
,
re
,
tp
)
local
ct
=
e
:
GetLabel
()
return
re
:
IsActiveType
(
ct
)
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
and
(
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
re
:
IsActiveType
(
TYPE_MONSTER
)
)
return
re
:
IsActiveType
(
ct
)
and
(
ct
==
TYPE_MONSTER
or
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
)
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
function
c18486927
.
actcon
(
e
)
local
tc
=
Duel
.
GetAttacker
()
...
...
@@ -75,7 +75,7 @@ end
function
c18486927
.
nameop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ac
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PARAM
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
...
...
c23171610.lua
View file @
f9930816
...
...
@@ -20,14 +20,9 @@ function c23171610.filter(c)
end
function
c23171610
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c23171610
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
c23171610
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
Duel
.
SetTargetCard
(
g
)
end
function
c23171610
.
filter2
(
c
,
e
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsRelateToEffect
(
e
)
and
not
c
:
IsImmuneToEffect
(
e
)
end
function
c23171610
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
sg
=
Duel
.
GetMatchingGroup
(
c23171610
.
filter
2
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
e
)
local
sg
=
Duel
.
GetMatchingGroup
(
c23171610
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
c
=
e
:
GetHandler
()
local
fid
=
c
:
GetFieldID
()
local
tc
=
sg
:
GetFirst
()
...
...
c44874522.lua
View file @
f9930816
...
...
@@ -31,19 +31,6 @@ function c44874522.initial_effect(c)
e4
:
SetOperation
(
c44874522
.
operation
)
c
:
RegisterEffect
(
e4
)
end
function
c44874522
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c44874522
.
aclimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c44874522
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
(
re
:
IsActiveType
(
TYPE_MONSTER
)
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
))
end
function
c44874522
.
valcheck
(
e
,
c
)
local
g
=
c
:
GetMaterial
()
local
flag
=
0
...
...
@@ -77,6 +64,19 @@ function c44874522.regop(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterEffect
(
e2
)
end
end
function
c44874522
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c44874522
.
aclimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c44874522
.
aclimit
(
e
,
re
,
tp
)
return
(
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
re
:
IsActiveType
(
TYPE_MONSTER
))
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
function
c44874522
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
and
e
:
GetHandler
():
IsRelateToBattle
()
end
...
...
c81269231.lua
View file @
f9930816
...
...
@@ -64,12 +64,11 @@ function c81269231.regop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c81269231
.
rmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToBattle
()
then
return
false
end
local
t
=
nil
if
ev
==
0
then
t
=
Duel
.
GetAttackTarget
()
else
t
=
Duel
.
GetAttacker
()
end
e
:
SetLabelObject
(
t
)
return
t
and
t
:
IsRelateToBattle
()
return
t
and
t
:
IsRelateToBattle
()
and
e
:
GetHandler
():
IsStatus
(
STATUS_OPPO_BATTLE
)
end
function
c81269231
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetLabelObject
():
IsAbleToRemove
()
end
...
...
@@ -82,7 +81,7 @@ function c81269231.rmop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c81269231
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
(
re
:
IsActiveType
(
TYPE_MONSTER
)
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
)
return
(
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
re
:
IsActiveType
(
TYPE_MONSTER
))
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
function
c81269231
.
actcon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
...
...
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