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
YGOPRO-520DIY
ygopro
Commits
e991cff9
Commit
e991cff9
authored
Oct 18, 2012
by
Fluorohydride
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #301 from VanillaSalt/patch31
fix
parents
c31c17bb
34920520
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
10 deletions
+15
-10
script/c11052544.lua
script/c11052544.lua
+1
-1
script/c22359980.lua
script/c22359980.lua
+6
-0
script/c31615285.lua
script/c31615285.lua
+1
-2
script/c54974237.lua
script/c54974237.lua
+2
-2
script/c56339050.lua
script/c56339050.lua
+3
-3
script/c63571750.lua
script/c63571750.lua
+1
-1
script/c70902743.lua
script/c70902743.lua
+1
-1
No files found.
script/c11052544.lua
View file @
e991cff9
...
...
@@ -29,7 +29,7 @@ end
function
c11052544
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
c11052544
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c11052544
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
e
:
GetHandler
())
if
g
:
GetCount
()
>
ct
then
if
g
:
GetCount
()
>
=
ct
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
sg
=
g
:
Select
(
tp
,
ct
,
ct
,
nil
)
Duel
.
HintSelection
(
sg
)
...
...
script/c22359980.lua
View file @
e991cff9
...
...
@@ -3,7 +3,10 @@ function c22359980.initial_effect(c)
--activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMING_DAMAGE_STEP
)
e1
:
SetCondition
(
c22359980
.
condition
)
e1
:
SetTarget
(
c22359980
.
target
)
e1
:
SetOperation
(
c22359980
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -38,6 +41,9 @@ function c22359980.initial_effect(c)
e4
:
SetOperation
(
c22359980
.
mtop
)
c
:
RegisterEffect
(
e4
)
end
function
c22359980
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DAMAGE
or
not
Duel
.
IsDamageCalculated
()
end
function
c22359980
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
e
:
GetLabelObject
():
Clear
()
...
...
script/c31615285.lua
View file @
e991cff9
...
...
@@ -5,7 +5,6 @@ function c31615285.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
aux
.
FALSE
)
c
:
RegisterEffect
(
e1
)
--disable spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -21,5 +20,5 @@ function c31615285.filter(c)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_PLANT
)
end
function
c31615285
.
dscon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
c31615285
.
filter
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
())
return
Duel
.
IsExistingMatchingCard
(
c31615285
.
filter
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
e
:
GetHandler
())
end
script/c54974237.lua
View file @
e991cff9
...
...
@@ -29,12 +29,12 @@ function c54974237.target(e,tp,eg,ep,ev,re,r,rp,chk)
local
ty
=
TYPE_SPELL
if
ac
==
1
then
ty
=
TYPE_TRAP
end
e
:
SetLabel
(
ty
)
local
g
=
Duel
.
GetMatchingGroup
(
c54974237
.
tgfilter
,
tp
,
0
,
LOCATION_
SZONE
,
nil
,
ty
)
local
g
=
Duel
.
GetMatchingGroup
(
c54974237
.
tgfilter
,
tp
,
0
,
LOCATION_
ONFIELD
,
nil
,
ty
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
c54974237
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ty
=
e
:
GetLabel
()
local
conf
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_
SZONE
+
LOCATION_HAND
)
local
conf
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_
ONFIELD
+
LOCATION_HAND
)
if
conf
:
GetCount
()
>
0
then
Duel
.
ConfirmCards
(
tp
,
conf
)
local
dg
=
conf
:
Filter
(
Card
.
IsType
,
nil
,
ty
)
...
...
script/c56339050.lua
View file @
e991cff9
...
...
@@ -30,7 +30,7 @@ function c56339050.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
e
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_DAMAGE
)
e
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
Duel
.
SetTargetCard
(
tc
)
local
dam
=
tc
:
GetAttack
()
local
dam
=
tc
:
GetAttack
()
/
2
Duel
.
SetTargetParam
(
dam
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
tc
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
dam
)
...
...
@@ -44,7 +44,7 @@ end
function
c56339050
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsAttackable
()
then
local
atk
=
tc
:
GetAttack
()
local
atk
=
tc
:
GetAttack
()
/
2
if
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
then
Duel
.
Damage
(
1
-
tp
,
atk
,
REASON_EFFECT
)
end
...
...
@@ -63,7 +63,7 @@ function c56339050.target2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
56339050
)
==
0
and
tc
:
IsOnField
()
and
tc
:
IsCanBeEffectTarget
(
e
)
and
tc
:
IsDestructable
()
end
Duel
.
SetTargetCard
(
tc
)
local
dam
=
tc
:
GetAttack
()
local
dam
=
tc
:
GetAttack
()
/
2
Duel
.
SetTargetParam
(
dam
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
tc
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
dam
)
...
...
script/c63571750.lua
View file @
e991cff9
...
...
@@ -24,7 +24,7 @@ function c63571750.activate(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
63571750
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_
O
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_
F
)
e1
:
SetCode
(
EVENT_TO_HAND
)
e1
:
SetCondition
(
c63571750
.
thcon
)
e1
:
SetTarget
(
c63571750
.
thtg
)
...
...
script/c70902743.lua
View file @
e991cff9
...
...
@@ -43,7 +43,7 @@ function c70902743.operation1(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
function
c70902743
.
filter2
(
c
)
return
c
:
GetAttackedCount
()
==
0
and
c
:
IsDestructable
()
return
c
:
GetAttack
Announc
edCount
()
==
0
and
c
:
IsDestructable
()
end
function
c70902743
.
condition2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
tp
==
Duel
.
GetTurnPlayer
()
...
...
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