Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
wyykak
ygopro
Commits
a4c70a25
Commit
a4c70a25
authored
Aug 04, 2012
by
Fluorohydride
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #183 from VanillaSalt/patch18
fix script
parents
82ec05c8
1154ff2e
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
20 additions
and
15 deletions
+20
-15
script/c131182.lua
script/c131182.lua
+1
-1
script/c21843307.lua
script/c21843307.lua
+3
-2
script/c25123082.lua
script/c25123082.lua
+2
-2
script/c25262697.lua
script/c25262697.lua
+4
-3
script/c26931058.lua
script/c26931058.lua
+1
-1
script/c57139487.lua
script/c57139487.lua
+1
-1
script/c68815401.lua
script/c68815401.lua
+1
-0
script/c73417207.lua
script/c73417207.lua
+2
-1
script/c78663366.lua
script/c78663366.lua
+1
-1
script/c90219263.lua
script/c90219263.lua
+3
-2
script/c91468551.lua
script/c91468551.lua
+1
-1
No files found.
script/c131182.lua
View file @
a4c70a25
...
...
@@ -82,7 +82,7 @@ function c131182.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c131182
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
bit
.
band
(
r
,
REASON_BATTLE
)
and
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
function
c131182
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsDestructable
()
end
...
...
script/c21843307.lua
View file @
a4c70a25
...
...
@@ -29,12 +29,13 @@ function c21843307.activate(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
ec
:
GetCode
(),
0
,
0x11
,
0
,
0
,
ec
:
GetLevel
(),
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
)
then
return
end
c
:
AddTrapMonsterAttribute
(
true
,
ATTRIBUTE_LIGHT
,
RACE_WARRIOR
,
ec
:
GetLevel
(),
0
,
0
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonsterBlock
()
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_CODE
)
e1
:
SetValue
(
ec
:
GetCode
())
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e1
)
Duel
.
SpecialSummonComplete
()
c
:
TrapMonsterBlock
()
end
script/c25123082.lua
View file @
a4c70a25
...
...
@@ -48,8 +48,8 @@ function c25123082.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c25123082
.
shcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
g
:
GetFirs
t
()
return
tc
==
e
:
GetLabelObject
(
)
and
tc
:
GetFlagEffect
(
25123082
)
~=
0
local
tc
=
e
:
GetLabelObjec
t
()
return
eg
:
IsContains
(
tc
)
and
tc
:
GetFlagEffect
(
25123082
)
~=
0
end
function
c25123082
.
shfilter
(
c
)
return
c
:
IsSetCard
(
0x106e
)
and
c
:
IsType
(
TYPE_SPELL
)
and
c
:
IsAbleToHand
()
...
...
script/c25262697.lua
View file @
a4c70a25
...
...
@@ -5,23 +5,24 @@ function c25262697.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
25262697
,
0
))
e1
:
SetCategory
(
CATEGORY_POSITION
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e1
:
SetCondition
(
c25262697
.
poscon
)
e1
:
SetTarget
(
c25262697
.
postg
)
e1
:
SetOperation
(
c25262697
.
posop
)
c
:
RegisterEffect
(
e1
)
end
function
c25262697
.
poscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c25262697
.
poscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetEnvironment
()
==
47355498
end
function
c25262697
.
postg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
GetControler
()
~=
tp
and
chkc
:
GetLocation
()
==
LOCATION_MZONE
and
chkc
:
IsFaceup
()
end
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsFaceup
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_POSCHANGE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
g
,
1
,
0
,
0
)
end
function
c25262697
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c25262697
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
ChangePosition
(
tc
,
POS_FACEUP_DEFENCE
,
0
,
POS_FACEUP_ATTACK
,
0
)
...
...
script/c26931058.lua
View file @
a4c70a25
...
...
@@ -21,7 +21,7 @@ function c26931058.filter3(c,e,tp)
end
function
c26931058
.
eftg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
local
b1
=
Duel
.
IsExistingMatchingCard
(
c26931058
.
filter1
,
tp
,
LOCATION_MZONE
,
0
,
2
,
nil
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
local
b1
=
Duel
.
IsExistingMatchingCard
(
c26931058
.
filter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
local
b2
=
Duel
.
IsExistingMatchingCard
(
c26931058
.
filter3
,
tp
,
LOCATION_SZONE
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
b1
or
b2
end
local
op
=
0
...
...
script/c57139487.lua
View file @
a4c70a25
...
...
@@ -25,7 +25,7 @@ function c57139487.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
c57139487
.
efilter
(
c
,
e
)
return
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
return
c
:
IsFaceup
()
and
c
:
Is
AttackBelow
(
1000
)
and
c
:
Is
RelateToEffect
(
e
)
end
function
c57139487
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
...
...
script/c68815401.lua
View file @
a4c70a25
...
...
@@ -43,6 +43,7 @@ function c68815401.activate(e,tp,eg,ep,ev,re,r,rp)
local
dg2
=
Duel
.
GetMatchingGroup
(
Card
.
IsDestructable
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
if
Duel
.
Destroy
(
dg2
,
REASON_EFFECT
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
68815402
,
0
,
0x4011
,
1000
,
1000
,
3
,
RACE_PYRO
,
ATTRIBUTE_FIRE
)
then
Duel
.
BreakEffect
()
local
token
=
Duel
.
CreateToken
(
tp
,
68815402
)
Duel
.
SpecialSummon
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_ATTACK
)
end
...
...
script/c73417207.lua
View file @
a4c70a25
...
...
@@ -23,7 +23,8 @@ function c73417207.target(e,syncard,f,minc,maxc)
end
function
c73417207
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
syncard
,
f
,
minc
,
maxc
)
local
lv
=
syncard
:
GetLevel
()
-
e
:
GetHandler
():
GetLevel
()
local
g
=
Duel
.
GetMatchingGroup
(
c73417207
.
synfilter
,
syncard
:
GetControler
(),
LOCATION_HAND
,
0
,
c
,
syncard
,
f
)
local
g
=
Duel
.
GetMatchingGroup
(
c73417207
.
filter
,
syncard
:
GetControler
(),
LOCATION_HAND
,
0
,
c
,
syncard
,
f
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SMATERIAL
)
local
sg
=
g
:
SelectWithSumEqual
(
tp
,
Card
.
GetSynchroLevel
,
lv
,
2
,
2
,
syncard
)
Duel
.
SetSynchroMaterial
(
sg
)
end
script/c78663366.lua
View file @
a4c70a25
...
...
@@ -18,7 +18,7 @@ function c78663366.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c78663366
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
Remove
(
c
,
nil
,
REASON_EFFECT
+
REASON_TEMPORARY
)
~=
0
then
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsControler
(
tp
)
and
Duel
.
Remove
(
c
,
nil
,
REASON_EFFECT
+
REASON_TEMPORARY
)
~=
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
...
...
script/c90219263.lua
View file @
a4c70a25
...
...
@@ -14,14 +14,15 @@ function c90219263.cfilter(c)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
76812113
)
end
function
c90219263
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c90219263
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c90219263
.
cfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
function
c90219263
.
filter
(
c
,
e
,
tp
)
local
code
=
c
:
GetCode
()
return
(
code
==
76812113
or
code
==
12206212
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
end
function
c90219263
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c90219263
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c90219263
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
)
end
function
c90219263
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c91468551.lua
View file @
a4c70a25
...
...
@@ -16,5 +16,5 @@ function c91468551.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c91468551
.
atktg
(
e
,
c
)
return
bit
.
band
(
c
:
GetSummonType
(),
SUMMON_TYPE_SPECIAL
)
and
c
:
IsPreviousLocation
(
LOCATION_GRAVE
)
return
bit
.
band
(
c
:
GetSummonType
(),
SUMMON_TYPE_SPECIAL
)
~=
0
and
c
:
IsPreviousLocation
(
LOCATION_GRAVE
)
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