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
51442f48
Commit
51442f48
authored
Oct 22, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EFFECT_DISCARD_COST_CHANGE
parent
38e537b6
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
16 additions
and
12 deletions
+16
-12
c29735721.lua
c29735721.lua
+1
-1
c49010598.lua
c49010598.lua
+1
-1
c55256016.lua
c55256016.lua
+1
-1
c56993276.lua
c56993276.lua
+1
-1
c58851034.lua
c58851034.lua
+1
-1
c77414722.lua
c77414722.lua
+1
-1
c98301564.lua
c98301564.lua
+8
-5
c98956134.lua
c98956134.lua
+1
-1
constant.lua
constant.lua
+1
-0
No files found.
c29735721.lua
View file @
51442f48
...
...
@@ -15,7 +15,7 @@ function c29735721.condition(e,tp,eg,ep,ev,re,r,rp)
return
re
:
IsActiveType
(
TYPE_SPELL
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
Duel
.
IsChainNegatable
(
ev
)
end
function
c29735721
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
98301564
)
then
return
true
end
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_DISCARD_COST_CHANGE
)
then
return
true
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
2
,
e
:
GetHandler
())
end
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
2
,
2
,
REASON_COST
+
REASON_DISCARD
)
end
...
...
c49010598.lua
View file @
51442f48
...
...
@@ -15,7 +15,7 @@ function c49010598.condition(e,tp,eg,ep,ev,re,r,rp)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainNegatable
(
ev
)
end
function
c49010598
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
98301564
)
then
return
true
end
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_DISCARD_COST_CHANGE
)
then
return
true
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
end
...
...
c55256016.lua
View file @
51442f48
...
...
@@ -21,7 +21,7 @@ function c55256016.condition(e,tp,eg,ep,ev,re,r,rp)
return
ex
and
tg
~=
nil
and
tc
+
tg
:
FilterCount
(
c55256016
.
cfilter
,
nil
)
-
tg
:
GetCount
()
>
0
end
function
c55256016
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
98301564
)
then
return
true
end
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_DISCARD_COST_CHANGE
)
then
return
true
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
end
...
...
c56993276.lua
View file @
51442f48
...
...
@@ -21,7 +21,7 @@ function c56993276.cfilter(c)
return
c
:
IsSetCard
(
0xe
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsDiscardable
()
end
function
c56993276
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
98301564
)
then
return
true
end
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_DISCARD_COST_CHANGE
)
then
return
true
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c56993276
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
DiscardHand
(
tp
,
c56993276
.
cfilter
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
,
nil
)
end
...
...
c58851034.lua
View file @
51442f48
...
...
@@ -18,7 +18,7 @@ function c58851034.cfilter(c)
return
c
:
IsType
(
TYPE_SPELL
)
and
c
:
IsDiscardable
()
end
function
c58851034
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
98301564
)
then
return
true
end
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_DISCARD_COST_CHANGE
)
then
return
true
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c58851034
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
DiscardHand
(
tp
,
c58851034
.
cfilter
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
,
nil
)
end
...
...
c77414722.lua
View file @
51442f48
...
...
@@ -15,7 +15,7 @@ function c77414722.condition(e,tp,eg,ep,ev,re,r,rp)
return
re
:
IsActiveType
(
TYPE_SPELL
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
Duel
.
IsChainNegatable
(
ev
)
end
function
c77414722
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
98301564
)
then
return
true
end
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_DISCARD_COST_CHANGE
)
then
return
true
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
end
...
...
c98301564.lua
View file @
51442f48
...
...
@@ -7,11 +7,6 @@ function c98301564.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
c
:
RegisterEffect
(
e1
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
c
:
RegisterEffect
(
e1
)
--Cost Change
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
@@ -21,6 +16,14 @@ function c98301564.initial_effect(c)
e2
:
SetTargetRange
(
1
,
0
)
e2
:
SetValue
(
c98301564
.
costchange
)
c
:
RegisterEffect
(
e2
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_DISCARD_COST_CHANGE
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetRange
(
LOCATION_PZONE
)
e2
:
SetTargetRange
(
1
,
0
)
c
:
RegisterEffect
(
e2
)
--search
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCode
(
EVENT_DESTROYED
)
...
...
c98956134.lua
View file @
51442f48
...
...
@@ -17,7 +17,7 @@ function c98956134.condition(e,tp,eg,ep,ev,re,r,rp)
return
ex
and
tg
~=
nil
and
tc
+
tg
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_MZONE
)
-
tg
:
GetCount
()
>
0
end
function
c98956134
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
98301564
)
then
return
true
end
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_DISCARD_COST_CHANGE
)
then
return
true
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
end
...
...
constant.lua
View file @
51442f48
...
...
@@ -481,6 +481,7 @@ EFFECT_ADD_SETCODE =334 --规则上视为「XX」字段
EFFECT_NO_EFFECT_DAMAGE
=
335
--玩家已受到"效果傷害變成0"的效果影響
EFFECT_UNSUMMONABLE_CARD
=
336
--不能通常召唤的怪獸
EFFECT_DISABLE_CHAIN_FIELD
=
337
--連鎖串中場上發動的效果無效(Duel.NegateRelatedChain())
EFFECT_DISCARD_COST_CHANGE
=
338
--反制陷阱捨棄手牌的代價改變(解放之阿里阿德涅)
--下面是诱发效果的诱发事件、时点 (如果是TYPE_SINGLE则自己发生以下事件后触发,如果TYPE_FIELD则场上任何卡发生以下事件都触发)
EVENT_STARTUP
=
1000
--游戏开始时
...
...
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