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
f69098b4
Commit
f69098b4
authored
Oct 25, 2015
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
2d9c45be
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
16 deletions
+13
-16
c24573625.lua
c24573625.lua
+1
-1
c41128647.lua
c41128647.lua
+1
-1
c41767843.lua
c41767843.lua
+2
-2
c53724621.lua
c53724621.lua
+9
-12
No files found.
c24573625.lua
View file @
f69098b4
...
@@ -70,5 +70,5 @@ function c24573625.atkcon2(e)
...
@@ -70,5 +70,5 @@ function c24573625.atkcon2(e)
return
e
:
GetHandler
():
IsDirectAttacked
()
return
e
:
GetHandler
():
IsDirectAttacked
()
end
end
function
c24573625
.
tglimit
(
e
,
re
,
c
)
function
c24573625
.
tglimit
(
e
,
re
,
c
)
return
c
:
Is
Location
(
LOCATION_MZONE
)
and
c
~=
e
:
GetHandler
()
and
c
:
IsSetCard
(
0xab
)
return
c
:
Is
Faceup
()
and
c
:
IsSetCard
(
0x2b
)
and
c
~=
e
:
GetHandler
(
)
end
end
c41128647.lua
View file @
f69098b4
...
@@ -32,7 +32,7 @@ function c41128647.aclimit(e,re,tp)
...
@@ -32,7 +32,7 @@ function c41128647.aclimit(e,re,tp)
return
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
return
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
end
function
c41128647
.
cfilter
(
c
,
tp
)
function
c41128647
.
cfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0xd8
)
and
c
:
IsControler
(
tp
)
return
c
:
Is
Faceup
()
and
c
:
Is
SetCard
(
0xd8
)
and
c
:
IsControler
(
tp
)
end
end
function
c41128647
.
actcon
(
e
)
function
c41128647
.
actcon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
local
tp
=
e
:
GetHandlerPlayer
()
...
...
c41767843.lua
View file @
f69098b4
...
@@ -16,8 +16,8 @@ function c41767843.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -16,8 +16,8 @@ function c41767843.condition(e,tp,eg,ep,ev,re,r,rp)
local
a
=
Duel
.
GetAttacker
()
local
a
=
Duel
.
GetAttacker
()
local
d
=
Duel
.
GetAttackTarget
()
local
d
=
Duel
.
GetAttackTarget
()
if
not
d
then
return
false
end
if
not
d
then
return
false
end
if
a
:
IsControler
(
1
-
tp
)
then
a
=
d
end
if
a
:
IsControler
(
1
-
tp
)
then
a
,
d
=
d
,
a
end
return
a
:
IsSetCard
(
0x9b
)
and
a
:
IsRelateToBattle
()
return
a
:
IsSetCard
(
0x9b
)
and
a
:
IsRelateToBattle
()
and
(
d
:
GetAttack
()
>
0
or
d
:
GetDefence
()
>
0
)
end
end
function
c41767843
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c41767843
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
...
...
c53724621.lua
View file @
f69098b4
...
@@ -7,36 +7,33 @@ function c53724621.initial_effect(c)
...
@@ -7,36 +7,33 @@ function c53724621.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--
--
draw
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_DRAW
)
e2
:
SetCategory
(
CATEGORY_DRAW
)
e2
:
SetType
(
EFFECT_TYPE_
QUICK
_O
)
e2
:
SetType
(
EFFECT_TYPE_
FIELD
+
EFFECT_TYPE_TRIGGER
_O
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetCode
(
EVENT_CHAIN
_SOLV
ING
)
e2
:
SetRange
(
LOCATION_PZONE
)
e2
:
SetRange
(
LOCATION_PZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCountLimit
(
1
,
53724621
)
e2
:
SetCountLimit
(
1
,
53724621
)
e2
:
SetCondition
(
c53724621
.
drcon
)
e2
:
SetCondition
(
c53724621
.
drcon
)
e2
:
SetTarget
(
c53724621
.
drtg
)
e2
:
SetTarget
(
c53724621
.
drtg
)
e2
:
SetOperation
(
c53724621
.
drop
)
e2
:
SetOperation
(
c53724621
.
drop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--
--
scale
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCountLimit
(
1
)
e3
:
SetTarget
(
c53724621
.
target
)
e3
:
SetTarget
(
c53724621
.
target
)
e3
:
SetOperation
(
c53724621
.
activate
)
e3
:
SetOperation
(
c53724621
.
operation
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c53724621
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c53724621
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
rp
==
tp
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_PENDULUM
)
return
rp
==
tp
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_PENDULUM
)
and
re
:
GetHandler
():
IsSetCard
(
0x9f
)
end
end
function
c53724621
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c53724621
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
tc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
13
-
seq
)
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
tc
and
tc
:
IsSetCard
(
0x9f
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
end
function
c53724621
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c53724621
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -52,7 +49,7 @@ function c53724621.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -52,7 +49,7 @@ function c53724621.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
c53724621
.
filter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c53724621
.
filter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
1
,
nil
)
end
end
function
c53724621
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c53724621
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
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