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
0c1e91f5
Commit
0c1e91f5
authored
Dec 17, 2015
by
salix5
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #174 from nekrozar/patch-2
fix Sylvan
parents
e359e643
cf790f67
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
24 additions
and
36 deletions
+24
-36
c10530913.lua
c10530913.lua
+2
-3
c10753491.lua
c10753491.lua
+2
-3
c11682713.lua
c11682713.lua
+2
-3
c20579538.lua
c20579538.lua
+2
-3
c25824484.lua
c25824484.lua
+1
-2
c36046926.lua
c36046926.lua
+2
-3
c47077318.lua
c47077318.lua
+1
-2
c47741109.lua
c47741109.lua
+2
-2
c62434031.lua
c62434031.lua
+2
-3
c63257623.lua
c63257623.lua
+2
-3
c73136204.lua
c73136204.lua
+2
-3
c99429730.lua
c99429730.lua
+2
-3
c99641328.lua
c99641328.lua
+2
-3
No files found.
c10530913.lua
View file @
0c1e91f5
...
...
@@ -25,7 +25,7 @@ function c10530913.initial_effect(c)
e3
:
SetDescription
(
aux
.
Stringid
(
10530913
,
2
))
e3
:
SetCategory
(
CATEGORY_TOHAND
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_
DAMAGE_STEP
+
EFFECT_FLAG_
CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e3
:
SetCode
(
EVENT_TO_GRAVE
)
e3
:
SetCondition
(
c10530913
.
thcon
)
e3
:
SetTarget
(
c10530913
.
thtg
)
...
...
@@ -65,8 +65,7 @@ function c10530913.operation(e,tp,eg,ep,ev,re,r,rp)
end
function
c10530913
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
))
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
)
end
function
c10530913
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x90
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
...
...
c10753491.lua
View file @
0c1e91f5
...
...
@@ -14,7 +14,7 @@ function c10753491.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
10753491
,
2
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_D
AMAGE_STEP
+
EFFECT_FLAG_D
ELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetCountLimit
(
1
,
10753491
)
e2
:
SetCondition
(
c10753491
.
spcon
)
...
...
@@ -52,8 +52,7 @@ function c10753491.operation(e,tp,eg,ep,ev,re,r,rp)
end
function
c10753491
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
))
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
)
end
function
c10753491
.
filter
(
c
,
e
,
tp
)
return
c
:
GetLevel
()
==
1
and
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
c11682713.lua
View file @
0c1e91f5
...
...
@@ -14,7 +14,7 @@ function c11682713.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
11682713
,
1
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetProperty
(
EFFECT_FLAG_D
AMAGE_STEP
+
EFFECT_FLAG_D
ELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCondition
(
c11682713
.
tdcon
)
e2
:
SetTarget
(
c11682713
.
tdtg
)
e2
:
SetOperation
(
c11682713
.
tdop
)
...
...
@@ -37,8 +37,7 @@ function c11682713.operation(e,tp,eg,ep,ev,re,r,rp)
end
function
c11682713
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
))
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
)
end
function
c11682713
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
end
...
...
c20579538.lua
View file @
0c1e91f5
...
...
@@ -15,7 +15,7 @@ function c20579538.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
20579538
,
1
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_
DAMAGE_STEP
+
EFFECT_FLAG_
CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetCountLimit
(
1
,
20579539
)
e2
:
SetCondition
(
c20579538
.
spcon
)
...
...
@@ -50,8 +50,7 @@ function c20579538.operation(e,tp,eg,ep,ev,re,r,rp)
end
function
c20579538
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
))
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
)
end
function
c20579538
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
c25824484.lua
View file @
0c1e91f5
...
...
@@ -36,8 +36,7 @@ function c25824484.operation(e,tp,eg,ep,ev,re,r,rp)
end
function
c25824484
.
sdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
))
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
)
end
function
c25824484
.
sdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
...
...
c36046926.lua
View file @
0c1e91f5
...
...
@@ -15,7 +15,7 @@ function c36046926.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
36046926
,
2
))
e2
:
SetCategory
(
CATEGORY_DESTROY
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_
DAMAGE_STEP
+
EFFECT_FLAG_
CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetCondition
(
c36046926
.
descon
)
e2
:
SetTarget
(
c36046926
.
destg
)
...
...
@@ -52,8 +52,7 @@ function c36046926.operation(e,tp,eg,ep,ev,re,r,rp)
end
function
c36046926
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
))
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
)
end
function
c36046926
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsDestructable
()
end
...
...
c47077318.lua
View file @
0c1e91f5
...
...
@@ -43,8 +43,7 @@ function c47077318.operation(e,tp,eg,ep,ev,re,r,rp)
end
function
c47077318
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
))
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
)
end
function
c47077318
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_PLANT
)
...
...
c47741109.lua
View file @
0c1e91f5
...
...
@@ -5,7 +5,7 @@ function c47741109.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
47741109
,
0
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_TO_GRAVE
)
e1
:
SetProperty
(
EFFECT_FLAG_D
AMAGE_STEP
+
EFFECT_FLAG_D
ELAY
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCondition
(
c47741109
.
condition
)
e1
:
SetTarget
(
c47741109
.
target
)
e1
:
SetOperation
(
c47741109
.
operation
)
...
...
@@ -14,7 +14,7 @@ end
function
c47741109
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_HAND
+
LOCATION_ONFIELD
)
or
(
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
)
))
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
))
end
function
c47741109
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
1
)
end
...
...
c62434031.lua
View file @
0c1e91f5
...
...
@@ -14,7 +14,7 @@ function c62434031.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
62434031
,
1
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetProperty
(
EFFECT_FLAG_D
AMAGE_STEP
+
EFFECT_FLAG_D
ELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCondition
(
c62434031
.
tdcon
)
e2
:
SetTarget
(
c62434031
.
tdtg
)
e2
:
SetOperation
(
c62434031
.
tdop
)
...
...
@@ -37,8 +37,7 @@ function c62434031.operation(e,tp,eg,ep,ev,re,r,rp)
end
function
c62434031
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
))
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
)
end
function
c62434031
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsSetCard
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
0x90
)
end
...
...
c63257623.lua
View file @
0c1e91f5
...
...
@@ -17,7 +17,7 @@ function c63257623.initial_effect(c)
e3
:
SetDescription
(
aux
.
Stringid
(
63257623
,
1
))
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_
DAMAGE_STEP
+
EFFECT_FLAG_
CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e3
:
SetCode
(
EVENT_TO_GRAVE
)
e3
:
SetCountLimit
(
1
,
63257623
)
e3
:
SetCondition
(
c63257623
.
spcon
)
...
...
@@ -42,8 +42,7 @@ function c63257623.operation(e,tp,eg,ep,ev,re,r,rp)
end
function
c63257623
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
))
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
)
end
function
c63257623
.
filter
(
c
,
e
,
tp
)
return
c
:
IsLevelBelow
(
4
)
and
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
c73136204.lua
View file @
0c1e91f5
...
...
@@ -15,7 +15,7 @@ function c73136204.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
73136204
,
2
))
e2
:
SetCategory
(
CATEGORY_TODECK
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_
DAMAGE_STEP
+
EFFECT_FLAG_
CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetCondition
(
c73136204
.
tdcon
)
e2
:
SetTarget
(
c73136204
.
tdtg
)
...
...
@@ -49,8 +49,7 @@ function c73136204.operation(e,tp,eg,ep,ev,re,r,rp)
end
function
c73136204
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
))
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
)
end
function
c73136204
.
filter
(
c
)
return
c
:
IsSetCard
(
0x90
)
and
not
c
:
IsCode
(
73136204
)
and
c
:
IsAbleToDeck
()
...
...
c99429730.lua
View file @
0c1e91f5
...
...
@@ -15,7 +15,7 @@ function c99429730.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
99429730
,
2
))
e2
:
SetCategory
(
CATEGORY_TODECK
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_
DAMAGE_STEP
+
EFFECT_FLAG_
CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetCondition
(
c99429730
.
tdcon
)
e2
:
SetTarget
(
c99429730
.
tdtg
)
...
...
@@ -52,8 +52,7 @@ function c99429730.operation(e,tp,eg,ep,ev,re,r,rp)
end
function
c99429730
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
))
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
)
end
function
c99429730
.
filter
(
c
)
return
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsAbleToDeck
()
...
...
c99641328.lua
View file @
0c1e91f5
...
...
@@ -15,7 +15,7 @@ function c99641328.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
99641328
,
2
))
e2
:
SetCategory
(
CATEGORY_DESTROY
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_
DAMAGE_STEP
+
EFFECT_FLAG_
CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetCondition
(
c99641328
.
descon
)
e2
:
SetTarget
(
c99641328
.
destg
)
...
...
@@ -52,8 +52,7 @@ function c99641328.operation(e,tp,eg,ep,ev,re,r,rp)
end
function
c99641328
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
))
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
(
c
:
IsReason
(
REASON_REVEAL
)
or
c
:
GetPreviousPosition
()
==
POS_FACEUP_DEFENCE
)
end
function
c99641328
.
desfilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsDestructable
()
...
...
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